/* ========================================
   航泰律师事务所 HIGHTIME LAW OFFICE SHANGHAI
   www.high-time.cn
   ======================================== */

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1542;
  --accent: #1565c0;
  --gold: #c9a84c;
  --bg: #f7f8fa;
  --bg-white: #ffffff;
  --text: #2c3e50;
  --text-light: #5a6a7e;
  --text-muted: #8e9aab;
  --border: #e2e6ed;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
  --max-width: 1200px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

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

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 700; color: var(--primary);
  letter-spacing: 1px; white-space: nowrap;
}
.header-logo img { height: 36px; }
.header-logo span { font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-drop {
  padding: 8px 14px; border-radius: 6px; font-size: 14px; color: var(--text); font-weight: 500;
  transition: all 0.2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { background: #eef1ff; color: var(--primary); }
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-switch a {
  padding: 4px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-muted); transition: all 0.2s;
}
.lang-switch a:hover, .lang-switch a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 70%, var(--accent) 100%);
  color: #fff; padding: 80px 0 64px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 3px; margin-bottom: 12px; }
.hero .subtitle { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.hero .subtitle-en { font-size: 15px; color: rgba(255,255,255,0.6); letter-spacing: 2px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tag {
  padding: 6px 16px; border: 1px solid rgba(255,255,255,0.25); border-radius: 20px;
  font-size: 13px; color: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.section-header p { font-size: 16px; color: var(--text-light); max-width: 640px; margin: 0 auto; }
.section-divider {
  width: 48px; height: 3px; background: var(--gold); margin: 16px auto 0; border-radius: 2px;
}

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff; padding: 56px 0 48px; text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 700; letter-spacing: 2px; }
.page-banner .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 8px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-banner .breadcrumb a:hover { color: #fff; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s; border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.card h4 { font-size: 15px; color: var(--accent); margin: 14px 0 8px; }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* Team card */
.team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.team-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.team-card h3 { font-size: 19px; color: var(--primary); margin-bottom: 4px; }
.team-card .role {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: #e8eaf6; padding: 3px 12px; border-radius: 12px; margin-bottom: 14px;
}
.team-card .info { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.team-card .info strong { color: var(--text); }
.team-card .langs { font-size: 12px; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Practice areas */
.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.practice-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: box-shadow 0.2s;
}
.practice-item:hover { box-shadow: var(--shadow); }
.practice-icon { font-size: 28px; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #eef1ff; border-radius: 10px; }
.practice-item h4 { font-size: 15px; color: var(--primary); margin-bottom: 6px; }
.practice-item p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Case list */
.case-list { list-style: none; }
.case-list li {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.case-list .case-title { font-size: 16px; font-weight: 600; color: var(--primary); }
.case-list .case-date { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.case-list .case-desc { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { font-size: 15px; }
.contact-info dt { font-weight: 600; color: var(--primary); margin-top: 14px; font-size: 13px; text-transform: uppercase; }
.contact-info dd { color: var(--text-light); margin-left: 0; }
.contact-map {
  background: #eef1ff; border-radius: var(--radius); min-height: 300px;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}

/* ===== About page ===== */
.about-content { max-width: 860px; margin: 0 auto; }
.about-content p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.stat-item { text-align: center; padding: 24px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-num { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 48px 0 24px;
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.footer p, .footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.4);
}

/* ===== Utilities ===== */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 6px; font-size: 14px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-logo { font-size: 16px; }
  .header-logo img { height: 28px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .lang-switch { margin-left: 0; margin-top: 8px; }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; letter-spacing: 1px; }
  .hero .subtitle { font-size: 15px; }

  .section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
  .cards, .team-cards, .practice-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-banner { padding: 36px 0 32px; }
  .page-banner h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 24px; }
  .hero-tags { gap: 6px; }
  .hero-tag { font-size: 11px; padding: 4px 12px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ===== Language-specific ===== */
[lang="ja"] body { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
