/* ============================================
   跨境哥·跨境医药OPC — 品牌风格系统
   ============================================ */

/* --- Variables --- */
:root {
  /* 品牌主色调：深海蓝+医药绿，体现专业可信+健康活力 */
  --navy-900: #0a1628;
  --navy-800: #0f1f3d;
  --navy-700: #162d5a;
  --navy-600: #1e3d7a;
  --navy-500: #2850a0;
  --teal-500: #0d9488;
  --teal-400: #14b8a6;
  --teal-300: #5eead4;
  --teal-100: #ccfbf1;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-100: #fef3c7;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;

  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cn);
  color: var(--slate-800);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-500);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--teal-400); }

img { max-width: 100%; height: auto; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-cn);
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--navy-600));
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-400), var(--navy-500));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--teal-500);
  border-color: var(--teal-500);
}
.btn-outline:hover {
  background: var(--teal-500);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline.light {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline.light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.navbar:hover {
  background: rgba(10, 22, 40, 0.96);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo-sub {
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--teal-300);
  margin-left: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-400);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(13, 148, 136, 0.15), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(40, 80, 160, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(217, 119, 6, 0.05), transparent 60%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 80px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 100px;
  color: var(--teal-300);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 32px;
  background: rgba(13, 148, 136, 0.08);
}
.hero-title {
  font-family: var(--font-cn);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title-accent {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-300);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}
.section-light {
  background: var(--white);
}
.section-dark {
  background: var(--navy-900);
}
.section-cta {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
}
.section-label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-label.light {
  color: var(--teal-300);
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-title.light {
  color: var(--white);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.section-desc.light {
  color: rgba(255,255,255,0.6);
}

/* --- Platform Image Banner --- */
.section-image-banner {
  padding: 0;
  background: var(--slate-50);
}
.platform-img {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* --- Gallery Grid (brand images on homepage) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}
.gallery-item-light {
  border: 1px solid var(--slate-100);
}
.gallery-item-light:hover {
  border-color: var(--teal-100);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
}
.gallery-item:hover {
  border-color: rgba(13, 148, 136, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.15);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid var(--slate-100);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--teal-100);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--slate-900);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* --- Advantages Grid --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.advantage-item {
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s;
}
.advantage-item:hover {
  border-color: rgba(13, 148, 136, 0.3);
  background: rgba(13, 148, 136, 0.05);
  transform: translateY(-2px);
}
.advantage-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(94, 234, 212, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}
.advantage-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.advantage-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* --- Models Grid --- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.model-card {
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid var(--slate-100);
  text-align: center;
  transition: all 0.3s ease;
}
.model-card:hover {
  border-color: var(--teal-100);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.08);
  transform: translateY(-4px);
}
.model-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.model-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--slate-900);
}
.model-card p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.6;
}
.cta-center {
  text-align: center;
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.footer-links h4, .footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--teal-300);
}
.footer-contact p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.3);
}
.footer-bottom a:hover {
  color: var(--teal-300);
}

/* --- Page Header (for subpages) --- */
.page-header {
  padding-top: 100px;
  padding-bottom: 60px;
  background: var(--navy-900);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(13, 148, 136, 0.1), transparent 70%);
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.page-header p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Content Section (subpages) --- */
.content-section {
  padding: 80px 0;
}
.content-card {
  padding: 40px;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  margin-bottom: 24px;
}
.content-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--slate-900);
}
.content-card p {
  color: var(--slate-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* --- About Hero inline layout --- */
.about-hero-inline {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-avatar {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.content-card ul {
  list-style: none;
  padding: 0;
}
.content-card ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--slate-600);
  line-height: 1.6;
}
.content-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal-500);
}

/* --- Qualification Cards --- */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.qual-card {
  padding: 32px;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}
.qual-card:hover {
  border-color: var(--teal-100);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.06);
}
.qual-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(40,80,160,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.qual-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.qual-card p {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* --- Qualification Detail Cards --- */
.qual-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.qual-detail:hover {
  border-color: var(--teal-100);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.06);
}
.qual-detail-reverse {
  direction: rtl;
}
.qual-detail-reverse .qual-detail-image,
.qual-detail-reverse .qual-detail-info {
  direction: ltr;
}
.qual-detail-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid var(--slate-100);
}
.qual-detail-info {
  padding: 8px 0;
}
.qual-detail-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(40,80,160,0.1));
  color: var(--teal-500);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.qual-detail-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy-800);
}
.qual-detail-info p {
  color: var(--slate-500);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* --- Qualification Extra (full article image) --- */
.qual-extra {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}
.qual-extra-header {
  text-align: center;
  margin-bottom: 24px;
}
.qual-extra-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.qual-extra-header p {
  color: var(--slate-500);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}
.qual-extra-image {
  text-align: center;
}
.qual-extra-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid var(--slate-100);
}

/* --- Contact Form --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--slate-500);
  margin-bottom: 24px;
  line-height: 1.7;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-item .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-item p {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin: 0;
}
.contact-form {
  padding: 32px;
  border: 1px solid var(--slate-100);
  border-radius: 12px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--slate-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-family: var(--font-cn);
  font-size: 0.9rem;
  color: var(--slate-800);
  transition: border-color 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: block; }

  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { display: none; }

  .features-grid, .advantages-grid, .models-grid, .qual-grid {
    grid-template-columns: 1fr;
  }
  .qual-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .qual-detail { grid-template-columns: 1fr; }
  .qual-detail-reverse { direction: ltr; }
  .about-hero-inline { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
