/* ===== 国际货代网全局样式 ===== */
:root {
  --primary: #0f3a66;
  --primary-light: #1a5ba6;
  --primary-dark: #0a2540;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --bg: #f8fafc;
  --bg-alt: #eef2f6;
  --white: #ffffff;
  --border: #dbe2e8;
  --shadow: rgba(15, 58, 102, 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--primary-dark); }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
h4 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; color: var(--text-light); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3.2rem 0 3rem;
  text-align: center;
  position: relative;
}
.site-header .container {
  max-width: 880px;
}
.site-header h1 {
  color: var(--white);
  font-size: 2.55rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}
.site-header p {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  max-width: 760px;
  margin: 0 auto;
}

.site-nav {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 58, 102, 0.08);
  box-shadow: 0 10px 28px rgba(15, 58, 102, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: transform 0.3s ease;
}
.nav-logo:hover {
  transform: translateY(-2px);
}
.logo-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  text-align: left;
}
.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}
.nav-menu li { margin: 0; position: relative; }
.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--accent) 100%);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(15, 58, 102, 0.06);
  color: var(--primary);
  transform: translateY(-1px);
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 58, 102, 0.12);
  border-radius: 12px;
  background: rgba(15, 58, 102, 0.05);
  font-size: 1.35rem;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}
.nav-toggle:hover {
  background: rgba(15, 58, 102, 0.1);
  color: var(--primary-dark);
}

.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  background: rgba(255,255,255,0.98);
  min-width: 220px;
  box-shadow: 0 18px 36px rgba(15, 58, 102, 0.14);
  border: 1px solid rgba(15, 58, 102, 0.08);
  border-radius: 16px;
  padding: 0.65rem;
  list-style: none;
  backdrop-filter: blur(12px);
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.98);
  border-left: 1px solid rgba(15, 58, 102, 0.08);
  border-top: 1px solid rgba(15, 58, 102, 0.08);
  transform: rotate(45deg);
}
.dropdown-menu a {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.86rem;
  border-radius: 10px;
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
  background: rgba(15, 58, 102, 0.06);
  transform: translateX(2px);
}

.breadcrumb {
  background: var(--bg-alt);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 0.3rem; }

.main-wrapper {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
.main-content { min-width: 0; }
.main-content h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.main-content h2 { font-size: 1.35rem; margin-top: 2rem; }
.main-content h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.main-content p { text-align: justify; }

.sidebar .widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}
.sidebar .widget h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-bottom: 0.6rem; padding-left: 0; }
.sidebar a { display: block; padding: 0.4rem 0; font-size: 0.9rem; border-bottom: 1px dashed var(--border); }
.sidebar a:hover { padding-left: 0.5rem; }

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 2rem 0;
}
.cta-box h3 { color: var(--white); margin-bottom: 0.5rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.cta-btn:hover { background: var(--accent-light); transform: translateY(-2px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: var(--transition);
  border-top: 3px solid var(--primary);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.feature-card h3 { color: var(--primary); margin-top: 0; font-size: 1.1rem; }
.feature-card p { font-size: 0.9rem; margin-bottom: 0; }

.intent-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 12px var(--shadow);
}
.intent-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.intent-heading h2 {
  margin: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.intent-heading p {
  max-width: 460px;
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
}
.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.intent-card {
  display: block;
  min-height: 118px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.intent-card:hover {
  border-color: var(--primary-light);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
}
.intent-card strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.intent-card span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}
.info-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
}
.info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}
.info-table tr:hover td { background: var(--bg); }

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.footer-grid h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .main-wrapper { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .nav-toggle { display: block; }
  .nav-logo {
    gap: 0.4rem;
  }
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  .logo-title {
    font-size: 1.2rem;
  }
  .logo-sub {
    font-size: 0.7rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 58, 102, 0.08);
    box-shadow: 0 16px 34px rgba(15, 58, 102, 0.14);
    gap: 0.4rem;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
  }
  .nav-menu > li > a::after {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
  }
  .dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    display: none;
    padding: 0.4rem;
    margin-top: 0.35rem;
    border-radius: 14px;
    background: rgba(15, 58, 102, 0.03);
    border: 1px solid rgba(15, 58, 102, 0.06);
    backdrop-filter: none;
  }
  .dropdown-menu::before { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .site-header h1 { font-size: 1.6rem; }
  .site-header p { font-size: 0.95rem; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 1.5rem 1rem; }
  .logo-icon {
    width: 24px;
    height: 24px;
  }
  .logo-title {
    font-size: 1.1rem;
  }
  .logo-sub {
    font-size: 0.6rem;
  }
}

.article-list { display: grid; gap: 1rem; }
.article-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 6px var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.article-item img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.article-item h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.article-item p { margin: 0; font-size: 0.85rem; }

.tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.city-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  transition: var(--transition);
}
.city-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px var(--shadow); }
.city-card h4 { margin: 0.5rem 0 0; font-size: 1rem; }
.city-card p { margin: 0.25rem 0 0; font-size: 0.8rem; }

.faq-item { margin-bottom: 1.5rem; }
.faq-item h4 { color: var(--primary); cursor: pointer; padding: 0.75rem; background: var(--bg-alt); border-radius: var(--radius); }
.faq-item p { padding: 0.75rem; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); margin: 0; }

.hero-section {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero-text p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--primary); }
.hero-stat span { font-size: 0.8rem; color: var(--text-light); }

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { justify-content: center; }
}

.page-intro {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--primary);
}
.page-intro p { margin: 0; font-size: 1.05rem; }

.sitemap-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}
.sitemap-section h2 {
  margin-top: 0;
}
.sitemap-tools {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px var(--shadow);
}
.sitemap-tools label {
  display: block;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sitemap-tools input,
.quote-helper input,
.quote-helper select,
.quote-helper textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.sitemap-empty {
  margin: 1rem 0 0;
  color: var(--accent);
}
.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.sitemap-list li {
  padding: 0.85rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.sitemap-list li:last-child {
  border-bottom: 0;
}
.sitemap-list a {
  font-weight: 600;
}
.sitemap-list p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  text-align: left;
}

.quote-helper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 2px 12px var(--shadow);
}
.quote-helper h2 {
  margin-top: 0;
}
.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.quote-helper label {
  display: grid;
  gap: 0.35rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.quote-helper small {
  color: var(--text-light);
  font-weight: 400;
}
.quote-helper textarea {
  min-height: 118px;
  resize: vertical;
}
.quote-note {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}
.quote-note p {
  margin: 0;
  text-align: left;
}

/* ===== New Hero Banner Styles ===== */
.site-header.hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 2.5rem 0;
  position: relative;
}
.site-header.hero-banner h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.site-header.hero-banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  flex: 1;
  min-width: 220px;
}
.hero-feature-item svg {
  flex-shrink: 0;
  color: #a3c2e0;
}
.feature-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.feature-text strong {
  font-size: 1.1rem;
  font-weight: 600;
}
.feature-text span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ===== Welcome Card Styles ===== */
.page-intro.welcome-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-left: 6px solid var(--primary);
  background: var(--white);
  padding: 1.85rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(15, 58, 102, 0.08);
  margin-top: -1.25rem;
  position: relative;
  z-index: 10;
}
.welcome-icon {
  flex-shrink: 0;
  color: var(--primary-light);
  background: rgba(26, 91, 166, 0.05);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.welcome-text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}
@media (max-width: 768px) {
  .site-header {
    padding: 2.5rem 0 2.3rem;
  }
  .site-header h1 { font-size: 2rem; }
  .site-header p { font-size: 1rem; }
  .hero-features { gap: 1rem; }
  .hero-feature-item { min-width: 100%; }
  .page-intro.welcome-card { flex-direction: column; gap: 1rem; text-align: center; }
  .intent-heading { display: block; }
  .intent-heading h2 { margin-bottom: 0.5rem; }
}
