/* ═══════════════════════════════════════════
   瓦萌 Wameng - 宠物医疗网站
   品牌色: #E8782A 暖橙
   ═══════════════════════════════════════════ */

:root {
  --orange: #E8782A; --orange-dark: #C45D1A; --orange-light: #F5A623;
  --orange-bg: #FFF5EC; --orange-pale: #FFF9F4;
  --dark: #1A1A2E; --dark2: #16213E; --gray-900: #1E293B;
  --gray-700: #334155; --gray-500: #64748B; --gray-300: #CBD5E1;
  --gray-100: #F1F5F9; --gray-50: #F8FAFC;
  --white: #FFFFFF; --green: #10B981; --blue: #0284C7;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --radius: 12px; --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; color: var(--gray-700); line-height: 1.7; background: var(--white); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Navigation ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-100); transition: all 0.3s; }
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: var(--dark); }
.nav-logo span { color: var(--orange); }
.nav-logo .dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--gray-700); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.2s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--orange); color: var(--white) !important; padding: 10px 24px; border-radius: 50px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.nav-cta::after { display: none !important; }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--dark); }

/* ─── Hero ─── */
.hero { background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 50%, #1A1A2E 100%); min-height: 90vh; display: flex; align-items: center; padding-top: 72px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(circle at center, rgba(232,120,42,0.08) 0%, transparent 70%); }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--white), transparent); }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 80px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-text h1 { font-size: 52px; font-weight: 800; line-height: 1.15; color: var(--white); margin-bottom: 24px; }
.hero-text h1 span { color: var(--orange); }
.hero-text p { font-size: 18px; color: var(--gray-300); margin-bottom: 40px; max-width: 500px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: 15px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,120,42,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 40px; backdrop-filter: blur(20px); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 36px; font-weight: 800; color: var(--orange); }
.hero-stat .label { font-size: 13px; color: var(--gray-300); margin-top: 4px; }

/* ─── Sections ─── */
.section { padding: 100px 40px; }
.section-dark { background: var(--dark); color: var(--white); }
.section-gray { background: var(--gray-50); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 17px; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: var(--gray-300); }
.section-tag { display: inline-block; padding: 6px 16px; background: var(--orange-pale); color: var(--orange); border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; }

/* ─── Cards ─── */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; border: 1px solid var(--gray-100); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image { height: 220px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.card-tag { display: inline-block; padding: 4px 12px; background: var(--orange-bg); color: var(--orange); border-radius: 4px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 30px; }

/* ─── Solution Cards ─── */
.solution-card { background: var(--white); border-radius: var(--radius); padding: 40px 32px; border: 1px solid var(--gray-100); transition: all 0.3s; position: relative; }
.solution-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.solution-card .icon { width: 56px; height: 56px; background: var(--orange-bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.solution-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.solution-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }
.solution-card .arrow { margin-top: 16px; color: var(--orange); font-weight: 600; font-size: 14px; }

/* ─── Detail Pages ─── */
.page-hero { background: linear-gradient(135deg, var(--dark2), var(--dark)); padding: 140px 40px 80px; text-align: center; }
.page-hero h1 { font-size: 40px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { font-size: 17px; color: var(--gray-300); max-width: 600px; margin: 0 auto; }
.breadcrumb { color: var(--gray-500); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--orange-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── Product/Solution Detail ─── */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.detail-image { background: var(--gray-50); border-radius: var(--radius); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 80px; border: 1px solid var(--gray-100); }
.detail-info h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.detail-info .tagline { font-size: 16px; color: var(--orange); font-weight: 600; margin-bottom: 24px; }
.detail-info .desc { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 32px; }
.feature-list { display: grid; gap: 12px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.feature-item:last-child { border-bottom: none; }
.feature-item .check { width: 24px; height: 24px; background: var(--orange-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.feature-item span { font-size: 15px; color: var(--gray-700); }

/* ─── Specs Table ─── */
.specs-section { margin-top: 40px; }
.specs-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.specs-table td:first-child { font-weight: 600; color: var(--gray-700); width: 140px; }
.specs-table td:last-child { color: var(--gray-500); }
.specs-table tr:nth-child(even) { background: var(--gray-50); }

/* ─── AI Page ─── */
.ai-features { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.ai-feature { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--gray-100); text-align: center; transition: all 0.3s; }
.ai-feature:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); }
.ai-feature .icon { width: 64px; height: 64px; background: var(--orange-bg); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px; }
.ai-feature h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.ai-feature p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.ai-platform { background: linear-gradient(135deg, var(--dark2), var(--dark)); border-radius: var(--radius); padding: 60px; margin-top: 80px; text-align: center; }
.ai-platform h2 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.ai-platform h2 span { color: var(--orange); }
.ai-platform p { font-size: 16px; color: var(--gray-300); max-width: 700px; margin: 0 auto 40px; }
.ai-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.ai-stat .num { font-size: 40px; font-weight: 800; color: var(--orange); }
.ai-stat .label { font-size: 14px; color: var(--gray-300); margin-top: 4px; }

/* ─── Cooperation Page ─── */
.coop-model { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.coop-step { background: var(--white); border-radius: var(--radius); padding: 40px 32px; border: 1px solid var(--gray-100); text-align: center; position: relative; }
.coop-step .step-num { width: 48px; height: 48px; background: var(--orange); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 20px; }
.coop-step h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.coop-step p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.expansion-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.exp-bar { text-align: center; }
.exp-bar .year { font-size: 14px; font-weight: 600; color: var(--gray-500); margin-bottom: 8px; }
.exp-bar .bar { height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.exp-bar .bar-fill { height: 100%; background: var(--orange); border-radius: 4px; transition: width 1s; }
.exp-bar .num { font-size: 28px; font-weight: 800; color: var(--orange); }

/* ─── News ─── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); transition: all 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-image { height: 200px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.news-card-body { padding: 24px; }
.news-card-body .date { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.news-card-body h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.news-card-body p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ─── About ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { background: var(--gray-50); border-radius: var(--radius); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.about-text h2 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.about-text p { font-size: 15px; color: var(--gray-500); line-height: 1.8; margin-bottom: 16px; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.contact-item .icon { width: 40px; height: 40px; background: var(--orange-bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-item .label { font-size: 12px; color: var(--gray-500); }
.contact-item .value { font-size: 15px; color: var(--gray-700); font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--gray-100); border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; transition: border-color 0.2s; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; }
.success-msg { background: #ECFDF5; color: #065F46; padding: 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }

/* ─── Footer ─── */
.footer { background: var(--dark); color: var(--gray-300); padding: 60px 40px 30px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand h3 { font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand h3 span { color: var(--orange); }
.footer-brand p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; font-size: 14px; color: var(--gray-500); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { max-width: 1280px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 13px; color: var(--gray-500); }

/* ─── Back to top ─── */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--orange); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; opacity: 0; transition: opacity 0.3s; z-index: 999; border: none; box-shadow: 0 4px 12px rgba(232,120,42,0.3); }
.back-to-top.visible { opacity: 1; }

/* ─── Article Content ─── */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content p { font-size: 16px; line-height: 1.9; color: var(--gray-700); margin-bottom: 20px; }

/* ─── Related ─── */
.related-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--gray-100); }
.related-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; color: var(--dark); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .ai-features { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .coop-model { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 20px 40px; gap: 16px; border-bottom: 1px solid var(--gray-100); }
  .hero-text h1 { font-size: 36px; }
  .section { padding: 60px 20px; }
  .section-header h2 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4, .news-grid { grid-template-columns: 1fr; }
  .ai-features { grid-template-columns: 1fr; }
  .ai-stats { grid-template-columns: 1fr 1fr; }
  .expansion-bars { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 20px 60px; }
  .page-hero h1 { font-size: 28px; }
}
