/* Hiyodo 徊游堂 — 公司官网设计系统 */

:root {
  --primary: #0D8A6F;
  --primary-dark: #0a6e58;
  --primary-light: #e8f5f1;
  --secondary: #1E3A5F;
  --accent: #F5A623;
  --text-heading: #1A1A2E;
  --text-body: #4A4A5A;
  --text-muted: #8A8A9A;
  --border-color: #E5E5EA;
  --bg-white: #FFFFFF;
  --bg-light: #F7F8FA;
  --bg-dark: #1A1A2E;
  --font-heading: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

.section { padding: 80px 0; }
.section-light { background-color: var(--bg-white); }
.section-alt { background-color: var(--bg-light); }
.section-dark {
  background-color: var(--bg-dark);
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 500; }
p { font-size: 1rem; line-height: 1.75; color: var(--text-body); }

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; color: var(--text-heading); }
.navbar-logo img { height: 36px; width: auto; }
.navbar-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
.navbar-nav > li { position: relative; }
.navbar-nav > li > a {
  color: var(--text-body); font-size: 0.875rem; font-weight: 500;
  padding: 8px 0; position: relative;
}
.navbar-nav > li > a:hover, .navbar-nav > li > a.active { color: var(--primary); }
.navbar-nav > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width var(--transition-base); border-radius: 1px;
}
.navbar-nav > li > a:hover::after, .navbar-nav > li > a.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle::after { content: ' ▾'; font-size: 0.7em; opacity: 0.6; }
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px 0; min-width: 200px;
  opacity: 0; visibility: hidden; transition: all var(--transition-base); list-style: none;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 20px; color: var(--text-body); font-size: 0.875rem; transition: all var(--transition-fast); white-space: nowrap; }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); }
.dropdown-menu .external::after { content: ' ↗'; font-size: 0.75em; opacity: 0.5; }

/* Mobile */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-heading); margin: 5px 0; transition: var(--transition-base); border-radius: 1px; }
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all var(--transition-base); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,138,111,0.3); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-body); border: 1px solid var(--border-color); }
.btn-ghost:hover { background: var(--bg-light); color: var(--text-heading); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d48d1a; color: #fff; }
.btn-sm { padding: 8px 20px; font-size: 0.75rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* Cards */
.card {
  background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 24px; transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Section header */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; color: var(--text-muted); }

/* Hero */
.hero { min-height: 80vh; display: flex; align-items: center; padding-top: var(--nav-height); background: var(--bg-light); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%;
  background: radial-gradient(ellipse, rgba(13,138,111,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero-title { font-size: 3rem; font-weight: 700; color: var(--text-heading); line-height: 1.15; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-body); line-height: 1.7; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1.125rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 24px; }
.stat-number { font-size: 2.25rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Service card */
.service-card { text-align: center; padding: 32px; }
.service-icon {
  width: 64px; height: 64px; background: var(--primary-light); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
  margin: 0 auto 20px;
}
.service-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Case card */
.case-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition-base); }
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.case-card-image { width: 100%; height: 220px; object-fit: cover; background: var(--bg-light); }
.case-card-content { padding: 24px; }
.case-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.case-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Team card */
.team-card { text-align: center; padding: 24px; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--border-color); transition: border-color var(--transition-base); }
.team-card:hover img { border-color: var(--primary); }
.team-card h3 { font-size: 1.125rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.875rem; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.team-card p { font-size: 0.875rem; color: var(--text-muted); }

/* Product card */
.product-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 32px; text-align: center; transition: all var(--transition-base); position: relative; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--primary); }
.product-card-icon { width: 72px; height: 72px; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; }
.product-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.product-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.product-card .badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; background: rgba(245,166,35,0.15); color: #d48d1a; margin-bottom: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-info-item .icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.875rem; color: var(--text-muted); }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-heading); margin-bottom: 8px; }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font-body); transition: all var(--transition-fast); background: var(--bg-white); color: var(--text-heading); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,138,111,0.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* CTA Section */
.cta-section { background: var(--secondary); color: #fff; padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; font-size: 2.25rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { background: var(--bg-dark); color: #fff; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-brand .logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 16px; }
.footer-brand .logo img { height: 32px; width: auto; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; }
.footer-column h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color var(--transition-fast); }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Page title */
.page-title { text-align: center; padding: calc(var(--nav-height) + 64px) 0 48px; background: var(--bg-light); }
.page-title h1 { font-size: 3rem; margin-bottom: 16px; }
.page-title p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-color); }

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.pt-4 { padding-top: 16px; }
.pt-8 { padding-top: 32px; }
.pb-4 { padding-bottom: 16px; }
.pb-8 { padding-bottom: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.max-w-md { max-width: 480px; }
.max-w-lg { max-width: 600px; }
.max-w-xl { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-white); box-shadow: 0 0 0 2px var(--primary); }
.timeline-item h4 { font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.timeline-item p { font-size: 0.875rem; color: var(--text-muted); }

/* Process steps */
.process-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.process-step { text-align: center; position: relative; }
.process-step .step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.process-step h4 { font-size: 0.875rem; margin-bottom: 4px; }
.process-step p { font-size: 0.75rem; color: var(--text-muted); }
@media (max-width: 768px) { .process-steps { grid-template-columns: repeat(3, 1fr); } }

/* Mobile menu */
.mobile-nav { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--bg-white); z-index: 999; padding: 24px; overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: 4px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1rem; color: var(--text-heading); font-weight: 500; border-bottom: 1px solid var(--border-color); }
.mobile-nav a.external::after { content: ' ↗'; font-size: 0.75em; opacity: 0.5; }
.mobile-nav .dropdown-toggle { display: none; }
.mobile-nav .dropdown-menu { display: block; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; }
.mobile-nav .dropdown-menu a { font-size: 0.875rem; color: var(--text-body); border: none; padding: 8px 0; }

/* Feature list */
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; }
.feature-list p { margin: 0; font-size: 0.875rem; color: var(--text-body); }

/* Pricing */
.pricing-card { text-align: center; padding: 32px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pricing-card .price { font-size: 2.5rem; font-weight: 700; color: var(--text-heading); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

/* Image placeholder */
.img-placeholder { background: var(--bg-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.875rem; }

/* Hero with image */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-split img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
@media (max-width: 768px) { .hero-split { grid-template-columns: 1fr; gap: 32px; } }

/* Values / Pillars */
.value-card { padding: 24px; border-left: 3px solid var(--primary); background: var(--bg-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.value-card h4 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
