/* ============================================================
   Amigo Global — shared styles
   团队提示：颜色、字体、间距统一改这里，不要在 HTML 里写 style。
   ============================================================ */

:root {
  --brand: #ff6a00;
  --brand-hover: #e55f00;
  --brand-tint: #fff5eb;
  --brand-soft: #ffe8d1;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-muted: #999;
  --border: #eee;
  --border-soft: #f0f0f0;
  --surface: #fff;
  --surface-alt: #fafafa;
  --surface-dark: #1a1a1a;
  --surface-darker: #0d0d0d;
  --max-width: 1280px;

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-family: var(--font-sans); color: var(--text); background: var(--surface); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--brand); }
html[lang="en"] em { font-style: italic; }

/* ---------- Navigation ---------- */
nav.top { position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-soft); z-index: 100; }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand span { color: var(--brand); }
.nav-links { display: flex; gap: 36px; font-size: 15px; }
.nav-links a { color: #444; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: flex; gap: 4px; font-size: 13px; align-items: center; }
.lang-toggle a { padding: 6px 12px; border-radius: 6px; color: var(--text-muted); cursor: pointer; }
.lang-toggle .lang-current { background: var(--brand-tint); color: var(--brand); font-weight: 600; cursor: default; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 0; background: transparent; border: none; cursor: pointer; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle:hover { background: var(--surface-alt); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { padding: 14px 28px; border-radius: 6px; font-size: 15px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; font-family: inherit; display: inline-block; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; border: 1px solid #ddd; color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Hero (homepage) ---------- */
.hero { width: 100%; padding: 100px 32px 80px; max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.hero > * { min-width: 0; }
.hero-eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.15em; color: var(--brand); font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; max-width: 100%; overflow-wrap: anywhere; }
.hero p { font-size: 18px; color: var(--text-soft); max-width: 540px; margin-bottom: 36px; overflow-wrap: anywhere; }
.btn-row { display: flex; gap: 16px; }
.hero-visual { width: 100%; max-width: 100%; aspect-ratio: 4/5; background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand) 100%); border-radius: 16px; position: relative; overflow: hidden; }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: 0.65; }

/* ---------- Stats strip ---------- */
.stats { background: var(--surface-alt); padding: 80px 32px; }
.stats-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-num { font-family: 'Inter', sans-serif; font-size: clamp(36px, 4vw, 56px); font-weight: 800; color: var(--brand); letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.stat-label { color: #666; font-size: 15px; }

/* ---------- Section base ---------- */
section.section { max-width: var(--max-width); margin: 0 auto; padding: 100px 32px; }
section.section.bleed { max-width: none; margin: 0; background: var(--surface-alt); padding-left: 0; padding-right: 0; }
section.section.bleed > .inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section-eyebrow { font-size: 13px; letter-spacing: 0.15em; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
.section h2, .page-hero h1, .mission h2, .cta-band h2, .values-inner h2, .form-section h2, .offices h2 { font-family: var(--font-serif); letter-spacing: -0.02em; }
.section h2 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 700; margin-bottom: 20px; max-width: 720px; }
.section .lead { font-size: 17px; color: var(--text-soft); max-width: 640px; margin-bottom: 56px; }

/* ---------- Business pillars ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.biz-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 36px; transition: all 0.3s; }
.biz-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,106,0,0.08); }
.biz-icon { min-width: 48px; width: auto; height: 48px; padding: 0 14px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 20px; font-weight: 700; white-space: nowrap; }
.biz-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.biz-card p { color: #666; font-size: 15px; }
.biz-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- News grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { display: flex; flex-direction: column; }
.news-img { aspect-ratio: 16/10; border-radius: 8px; background: #f0f0f0; margin-bottom: 20px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.05em; }
.news-meta span { color: var(--brand); font-weight: 600; }
.news-card h4 { font-size: 19px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.news-card p { color: #666; font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--surface-dark); color: white; padding: 80px 32px; }
.cta-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { font-size: 36px; font-weight: 700; }

/* ---------- Footer ---------- */
footer { background: var(--surface-darker); color: #999; padding: 64px 32px 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { font-size: 24px; font-weight: 800; color: white; margin-bottom: 16px; }
.footer-brand span { color: var(--brand); }
.footer-tagline { font-size: 14px; max-width: 320px; }
footer h5 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.05em; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer ul li a:hover { color: var(--brand); }
.footer-bottom { padding-top: 24px; border-top: 1px solid #222; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- About page hero & mission ---------- */
.page-hero { padding: 80px 32px 60px; max-width: var(--max-width); margin: 0 auto; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; letter-spacing: 0.05em; }
.breadcrumb span { color: var(--brand); }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.15; max-width: 900px; margin-bottom: 28px; }
.page-hero p { font-size: 19px; color: var(--text-soft); max-width: 720px; line-height: 1.7; }

.mission { background: var(--surface-alt); padding: 80px 32px; }
.mission-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.mission .label { font-size: 13px; letter-spacing: 0.15em; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
.mission h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.mission .copy p { font-size: 17px; color: #444; margin-bottom: 20px; line-height: 1.8; }
.mission .copy p:first-child::first-letter { font-family: var(--font-serif); font-size: 56px; font-weight: 700; color: var(--brand); float: left; line-height: 1; padding-right: 12px; padding-top: 4px; }

/* ---------- Timeline ---------- */
.timeline { margin-top: 60px; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--brand), #ffd0a8); }
.ti { position: relative; padding: 24px 0 24px 40px; display: grid; grid-template-columns: 120px 1fr; gap: 32px; }
.ti::before { content: ''; position: absolute; left: -40px; top: 32px; width: 18px; height: 18px; border-radius: 50%; background: white; border: 3px solid var(--brand); }
.ti-year { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.ti h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ti p { color: #666; font-size: 15px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.team-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.team-photo { aspect-ratio: 1; background: linear-gradient(135deg, var(--brand-soft), #ffb87a); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 64px; font-weight: 700; color: var(--brand); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 20px; }
.team-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.team-card .role { color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.team-card p { color: #666; font-size: 13px; line-height: 1.5; }

/* ---------- Values ---------- */
.values { background: var(--surface-dark); color: white; padding: 100px 32px; }
.values-inner { max-width: var(--max-width); margin: 0 auto; }
.values-inner .section-eyebrow { color: var(--brand); }
.values-inner h2 { color: white; font-size: 44px; font-weight: 700; max-width: 700px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 60px; }
.value-item { padding: 32px; border: 1px solid #2a2a2a; border-radius: 12px; transition: all 0.3s; }
.value-item:hover { border-color: var(--brand); background: #1f1f1f; }
.value-num { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: 0.1em; margin-bottom: 16px; }
.value-item h4 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.value-item p { color: #aaa; font-size: 15px; line-height: 1.7; }

/* ---------- Contact page ---------- */
.channels { max-width: var(--max-width); margin: 60px auto 0; padding: 0 32px 80px; }
.channels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.channel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; transition: all 0.3s; }
.channel-card:hover { border-color: var(--brand); box-shadow: 0 12px 32px rgba(255,106,0,0.06); }
.channel-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.channel-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.channel-card p { color: #666; font-size: 14px; margin-bottom: 16px; }
.channel-card a { color: var(--brand); font-weight: 600; font-size: 14px; }

.form-section { background: var(--surface-alt); padding: 100px 32px; }
.form-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.form-section .label { font-size: 13px; letter-spacing: 0.15em; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
.form-section h2 { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.form-section .lead { color: var(--text-soft); margin-bottom: 28px; }
.form-section ul { list-style: none; }
.form-section ul li { padding: 8px 0; color: #444; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.form-section ul li::before { content: '→'; color: var(--brand); font-weight: 700; }

form { background: var(--surface); padding: 36px; border-radius: 12px; border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: block; }
.field.full { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 15px; transition: border 0.2s; background: white; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 110px; resize: vertical; }
.submit { width: 100%; padding: 14px; background: var(--brand); color: white; border: none; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 8px; transition: background 0.2s; font-family: inherit; }
.submit:hover { background: var(--brand-hover); }
.submit:disabled { background: #ffb27a; cursor: not-allowed; }
.form-status { margin-top: 14px; padding: 10px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; display: none; }
.form-status[data-state="success"] { display: block; background: #ecfdf3; color: #0f7a3e; border: 1px solid #b6ebc7; }
.form-status[data-state="error"] { display: block; background: #fef2f2; color: #b32424; border: 1px solid #f3c2c2; }

.offices { max-width: var(--max-width); margin: 0 auto; padding: 100px 32px; }
.offices h2 { font-size: 40px; font-weight: 700; margin-bottom: 56px; }
.office-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.office { padding: 28px; border: 1px solid var(--border); border-radius: 12px; }
.office .city { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.office .country { font-size: 12px; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.office .addr { font-size: 14px; color: var(--text-soft); line-height: 1.7; margin-bottom: 12px; }
.office .tel { font-size: 13px; color: #888; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 60px 24px; }
  .stats-inner, .biz-grid, .news-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  nav.top.nav-open .nav-links { max-height: 80vh; padding: 8px 0; }
  .nav-links a {
    display: block; padding: 16px 32px; font-size: 16px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links a:last-child { border-bottom: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .mission-inner { grid-template-columns: 1fr; gap: 32px; }
  .team-grid, .channels-grid, .office-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nav-inner { padding: 14px 20px; }
  .brand { font-size: 20px; white-space: nowrap; }
  .lang-toggle { font-size: 12px; flex-shrink: 0; }
  .lang-toggle a { padding: 5px 8px; }
  .hero { width: calc(100% - 40px); padding: 48px 0 56px; gap: 32px; }
  .hero, .hero > *, .hero p, .btn-row, .hero-visual { max-width: 100%; }
  .hero h1, .page-hero h1 { font-size: 34px; line-height: 1.16; }
  .hero p, .page-hero p { font-size: 16px; }
  .hero-eyebrow, .section-eyebrow { letter-spacing: 0.12em; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; text-align: center; }
  .stats { padding: 40px 20px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat-num { font-size: 38px; margin-bottom: 6px; }
  .stat-label { font-size: 13px; }
  .biz-grid, .news-grid, .footer-grid, .team-grid, .channels-grid, .office-grid { grid-template-columns: 1fr; }
  section.section, .page-hero, .mission, .values, .form-section, .offices { padding-left: 20px; padding-right: 20px; }
  section.section.bleed > .inner { padding-left: 20px; padding-right: 20px; }
  .biz-card, .channel-card, form { padding: 24px; }
}
