/* ================================================
   宫理国际供应链 - 主样式表
   主色: 深蓝 #0A2463  辅色: 金黄 #F4A261
   ================================================ */

:root {
  --primary:       #0A2463;
  --primary-dark:  #061740;
  --primary-light: #1a3a7a;
  --accent:        #F4A261;
  --accent-dark:   #e08840;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --bg:            #f8faff;
  --bg-card:       #ffffff;
  --border:        #e2e8f0;
  --white:         #ffffff;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 20px rgba(10,36,99,.12);
  --shadow-lg:     0 8px 40px rgba(10,36,99,.18);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶部信息栏 ========== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-btn {
  background: var(--accent);
  color: var(--white) !important;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  transition: background var(--transition);
}
.topbar-btn:hover { background: var(--accent-dark); }

/* ========== 主导航 ========== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10,36,99,.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-img  { height: 52px; width: auto; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-cn {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}
.logo-en {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.main-nav > a,
.nav-dropdown > a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav > a:hover,
.nav-dropdown > a:hover,
.main-nav > a.active {
  background: var(--primary);
  color: var(--white);
}

/* 下拉菜单 */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  padding: 8px 0;
}
.dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--text);
  transition: all var(--transition);
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); padding-left: 26px; }
.nav-dropdown:hover .dropdown-menu { display: block; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
  margin-left: auto;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
}
.mobile-menu.open { display: flex; }

/* ========== 英雄区 ========== */
.hero {
  min-height: 560px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a5276 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(244,162,97,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-block;
  background: rgba(244,162,97,.25);
  border: 1px solid rgba(244,162,97,.5);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.hero-title span { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary   { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,162,97,.4); }
.btn-outline   { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-white-lg  { background: var(--white); color: var(--primary); padding: 15px 36px; font-size: 16px; }
.btn-white-lg:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

/* 英雄统计 */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--white);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 13px; opacity: .8; margin-top: 6px; }

/* ========== 通用板块样式 ========== */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: rgba(10,36,99,.08);
  color: var(--primary);
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.section-title span { color: var(--primary); }
.section-desc { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ========== 服务卡片 ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .sc-title,
.service-card:hover .sc-desc,
.service-card:hover .sc-feat li { color: var(--white); }
.service-card:hover .sc-icon { background: rgba(255,255,255,.15); }

.sc-icon {
  position: relative;
  width: 60px; height: 60px;
  background: rgba(10,36,99,.08);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.sc-content { position: relative; }
.sc-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); transition: color var(--transition); }
.sc-desc  { font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; transition: color var(--transition); line-height: 1.7; }
.sc-feat  { font-size: 12.5px; }
.sc-feat li { color: var(--text-muted); padding: 3px 0; transition: color var(--transition); }
.sc-feat li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

/* ========== 合作伙伴 ========== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition);
}
.partner-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); }
.partner-logo {
  height: 56px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.partner-logo-placeholder {
  height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.partner-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.partner-name-en { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; }
.partner-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

/* 四大快递特殊配色徽章 */
.badge-dhl  { background: #FFCC00; color: #d40511; }
.badge-ups  { background: #351c15; color: #ffd100; }
.badge-fedex{ background: #4d148c; color: #ff6600; }
.badge-tnt  { background: #ff6600; color: #ffffff; }
.courier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ========== 新闻动态 ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 48px;
}
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px; }
.news-category {
  display: inline-block;
  background: rgba(10,36,99,.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.news-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.news-summary { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.news-date { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ========== 优势板块 ========== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.adv-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.adv-icon { font-size: 48px; margin-bottom: 16px; }
.adv-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.adv-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h2 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta-text p  { color: rgba(255,255,255,.8); font-size: 15px; }

/* ========== 页脚 ========== */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo-text { font-size: 22px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
  transition: background var(--transition);
}
.social-icon:hover { background: var(--accent); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== 联系页面 ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.ci-icon {
  width: 48px; height: 48px;
  background: rgba(10,36,99,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ci-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ci-value { font-weight: 600; font-size: 15px; }

/* 询盘表单 */
.inquiry-form { background: var(--bg-card); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }

/* 消息提示 */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ========== 页面标题横幅 ========== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 56px 0;
  text-align: center;
  color: var(--white);
}
.page-banner h1 { font-size: 36px; font-weight: 900; margin-bottom: 10px; }
.page-banner p  { opacity: .8; font-size: 15px; }
.breadcrumb { font-size: 13px; opacity: .6; margin-top: 10px; }
.breadcrumb a:hover { opacity: 1; }

/* ========== 关于页面 ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 60px 40px;
  text-align: center;
}
.about-icon { font-size: 80px; margin-bottom: 20px; }
.about-values { margin-top: 32px; }
.about-value {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.av-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.av-title { font-weight: 700; margin-bottom: 4px; }
.av-desc  { font-size: 13px; color: var(--text-muted); }

/* ========== 服务详情页 ========== */
.service-detail { max-width: 900px; margin: 0 auto; }
.service-detail-header {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.sd-icon {
  width: 80px; height: 80px;
  background: rgba(10,36,99,.08);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}
.sd-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.sd-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.features-list { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-tag {
  background: rgba(10,36,99,.08);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ========== 通用卡片 ========== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .mobile-menu-btn ~ .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 48px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .service-detail-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
