/* ===== WCS Legal | 万重山律师事务所 ===== */
:root {
  --navy-deep: #0A1A2E;
  --navy: #0F2440;
  --navy-light: #1A3658;
  --gold: #B8963E;
  --gold-light: #D4B96A;
  --gold-dark: #8B6F2E;
  --green: #1A6B4A;
  --green-light: #2A8B63;
  --white: #FFFFFF;
  --cream: #FAF8F4;
  --warm-bg: #F5F1EB;
  --gray-50: #F7F6F4;
  --gray-100: #EBE8E2;
  --gray-200: #D4D0C8;
  --gray-300: #A8A49C;
  --gray-400: #827E76;
  --gray-500: #5C5852;
  --gray-600: #3D3A35;
  --gray-800: #23211E;
  --gray-900: #141210;
  --max-width: 1100px;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Songti SC', 'Noto Serif SC', 'STSong', 'Hiragino Mincho Pro', 'Yu Mincho', serif;
  --font-en: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --shadow-sm: 0 1px 3px rgba(10,26,46,0.06);
  --shadow-md: 0 4px 24px rgba(10,26,46,0.08);
  --shadow-lg: 0 12px 48px rgba(10,26,46,0.12);
  --radius: 8px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-600);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Language System ===== */
[data-lang] { display: none; }
[data-lang].active { display: revert; }
html[lang="zh-CN"] [data-lang="zh"].active,
html[lang="en"] [data-lang="en"].active,
html[lang="ja"] [data-lang="ja"].active { display: revert; }

/* ===== Header ===== */
.site-header {
  background: var(--navy-deep);
  padding: 0;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.5rem; display: flex;
  justify-content: space-between; align-items: center;
  height: 64px;
}
.site-logo {
  display: flex; align-items: baseline; gap: 0.5rem;
  text-decoration: none; line-height: 1;
}
.site-logo .logo-wcs {
  font-family: var(--font-en);
  font-size: 1.4rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.06em;
}
.site-logo .logo-divider {
  width: 1px; height: 20px; background: rgba(255,255,255,0.25);
  align-self: center;
}
.site-logo .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 400; color: var(--gray-200);
  letter-spacing: 0.12em; text-transform: uppercase;
}

.site-nav { display: flex; gap: 0.2rem; align-items: center; }
.site-nav a {
  color: var(--gray-200); text-decoration: none;
  padding: 0.4rem 0.9rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--navy-deep); background: var(--gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex; gap: 2px;
  margin-left: 1rem; padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.lang-switcher button {
  background: none; border: 1px solid transparent;
  color: var(--gray-300); cursor: pointer;
  padding: 0.25rem 0.45rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600;
  transition: all 0.2s; letter-spacing: 0.03em;
  font-family: var(--font-sans);
}
.lang-switcher button:hover { color: var(--gold-light); }
.lang-switcher button.active {
  color: var(--navy-deep); background: var(--gold);
  border-color: var(--gold);
}

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(165deg, #060F1C 0%, #0F2440 45%, #152E52 100%);
  color: var(--white); padding: 5rem 1.5rem 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 25% 30%, rgba(184,150,62,0.08) 0%, transparent 55%),
              radial-gradient(ellipse at 70% 65%, rgba(26,107,74,0.06) 0%, transparent 55%),
              radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: 0.04em; position: relative; margin-bottom: 0.3rem; }
.hero h1 .gold { color: var(--gold); }
.hero .hero-subtitle {
  font-size: 1.05rem; color: var(--gray-200); max-width: 650px;
  margin: 0 auto 2.2rem; line-height: 1.8; opacity: 0.88; position: relative;
}
.hero .hero-cta {
  display: inline-flex; gap: 1rem; position: relative; flex-wrap: wrap; justify-content: center;
}
.btn-primary {
  display: inline-block; background: var(--gold);
  color: var(--navy-deep); text-decoration: none;
  padding: 0.75rem 2rem; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem;
  transition: all 0.25s; border: 2px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; background: transparent;
  color: var(--white); text-decoration: none;
  padding: 0.75rem 2rem; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s; border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.hero .hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 3rem; position: relative; flex-wrap: wrap;
}
.hero .hero-stats .stat {
  text-align: center;
}
.hero .hero-stats .stat-num {
  font-size: 2rem; font-weight: 900; color: var(--gold);
  font-family: var(--font-en); letter-spacing: 0.02em;
}
.hero .hero-stats .stat-label {
  font-size: 0.78rem; color: var(--gray-300); margin-top: 0.15rem;
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-width); margin: 0 auto; padding: 4rem 1.5rem;
}
.section-header {
  text-align: center; margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 1.8rem; font-weight: 900; color: var(--navy-deep);
  letter-spacing: 0.03em; margin-bottom: 0.5rem;
}
.section-header .section-line {
  width: 48px; height: 3px; background: var(--gold);
  margin: 0 auto 1rem;
}
.section-header p {
  color: var(--gray-400); font-size: 0.95rem; max-width: 500px; margin: 0 auto;
}

/* ===== Service Cards ===== */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--white); padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--navy-deep), var(--green));
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent;
}
.service-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block;
}
.service-card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--navy-deep);
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.88rem; color: var(--gray-400); line-height: 1.7;
}

/* ===== About Section ===== */
.about-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.about-text h2 {
  font-size: 1.6rem; font-weight: 900; color: var(--navy-deep); margin-bottom: 1rem;
}
.about-text p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 1rem; line-height: 1.9; }
.about-image {
  background: url('/images/cambodia-flag.png') center/cover no-repeat;
  border-radius: var(--radius-lg);
  height: 320px;
}

/* ===== Team Cards ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.team-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--gray-100);
  transition: all 0.3s; text-align: center; padding: 2rem 1.5rem;
}
.team-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.team-card .team-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin-bottom: 1rem;
  border: 3px solid var(--gold);
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 0.2rem; }
.team-card .team-role { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; margin-bottom: 0.3rem; }
.team-card .team-langs { font-size: 0.75rem; color: var(--gray-300); margin-bottom: 0.8rem; }
.team-card .team-bio { font-size: 0.84rem; color: var(--gray-500); line-height: 1.7; }
.team-card .team-specialties {
  display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-top: 0.8rem;
}
.team-card .team-specialties span {
  font-size: 0.7rem; background: var(--warm-bg);
  color: var(--navy-light); padding: 0.2rem 0.6rem;
  border-radius: 20px; font-weight: 500;
}

/* ===== News Cards ===== */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem;
}
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden; text-decoration: none; display: block;
  transition: all 0.3s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card .news-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--navy-light);
}
.news-card .news-body { padding: 1.3rem; }
.news-card .news-meta {
  font-size: 0.73rem; color: var(--gold-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem;
}
.news-card .news-title {
  font-size: 1.03rem; font-weight: 700; color: var(--navy-deep);
  margin-bottom: 0.4rem; line-height: 1.4;
}
.news-card .news-desc {
  font-size: 0.84rem; color: var(--gray-400); line-height: 1.6;
}

/* ===== Cases Grid ===== */
.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.case-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100); padding: 1.8rem;
  transition: all 0.3s; border-left: 4px solid var(--gold);
}
.case-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.case-card .case-industry {
  font-size: 0.73rem; color: var(--gold-dark); font-weight: 700;
  letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.case-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-deep); margin-bottom: 0.5rem; }
.case-card p { font-size: 0.86rem; color: var(--gray-500); line-height: 1.7; }
.case-card .case-result {
  margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--gray-100);
  font-size: 0.8rem; color: var(--green); font-weight: 600;
}

/* ===== Contact ===== */
.contact-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-info h2 {
  font-size: 1.5rem; font-weight: 900; color: var(--navy-deep); margin-bottom: 1.5rem;
}
.contact-info .info-item {
  display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.2rem;
}
.contact-info .info-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-deep); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-info .info-text { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }
.contact-info .info-text strong { display: block; color: var(--navy-deep); margin-bottom: 0.1rem; }

.contact-form {
  background: var(--white); padding: 2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--gray-100);
}
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--navy-deep); margin-bottom: 0.3rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--gray-200);
  border-radius: 6px; font-size: 0.9rem; font-family: var(--font-sans);
  transition: border-color 0.2s; background: var(--cream);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,150,62,0.1);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button {
  width: 100%; padding: 0.75rem; background: var(--navy-deep);
  color: var(--white); border: none; border-radius: 6px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-sans);
}
.contact-form button:hover { background: var(--navy-light); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.82rem; color: var(--gray-300); padding: 1rem 0;
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Page Header ===== */
.page-hero {
  background: var(--navy);
  padding: 3rem 1.5rem; text-align: center;
}
.page-hero h1 { font-size: 2rem; font-weight: 900; color: var(--white); letter-spacing: 0.04em; }
.page-hero h1 .gold { color: var(--gold); }
.page-hero p { color: var(--gray-200); font-size: 0.95rem; margin-top: 0.5rem; max-width: 550px; margin: 0.5rem auto 0; }

/* ===== Article Page ===== */
.article-body {
  max-width: 780px; margin: 0 auto; padding: 0 1.5rem 3rem;
  font-family: var(--font-serif);
}
.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.25rem; font-weight: 800; color: var(--navy-deep);
  margin: 3rem 0 1rem; padding-left: 0.9rem;
  border-left: 4px solid var(--gold); line-height: 1.4;
}
.article-body h3 {
  font-family: var(--font-sans);
  font-size: 1.03rem; font-weight: 700; color: var(--gray-500);
  margin: 2rem 0 0.5rem;
}
.article-body p {
  margin-bottom: 0.9rem; text-indent: 2em; line-height: 1.95;
  font-size: 1rem; color: var(--gray-600);
}
.article-body p:first-of-type { text-indent: 0; }
.article-body ul, .article-body ol {
  margin: 0.7rem 0 1.2rem 1.8rem; line-height: 1.85;
  color: var(--gray-600);
}
.article-body li { margin-bottom: 0.35rem; font-size: 0.96rem; }
.article-body strong { color: var(--navy-deep); font-weight: 700; }
.article-body blockquote {
  background: var(--warm-bg); border-left: 4px solid var(--gold);
  margin: 1.5rem 0; padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--gray-500);
}

.article-cover {
  width: 100%; max-width: 780px; height: auto; border-radius: var(--radius-lg);
  margin-bottom: 1.5rem; display: block; box-shadow: var(--shadow-md);
}
.article-summary {
  background: linear-gradient(135deg, #F9F5EB, #F3EDDE);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.5rem; margin-bottom: 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem; color: var(--gray-500); line-height: 1.75;
}

/* Author Bio */
.author-bio {
  display: flex; gap: 1.2rem; align-items: flex-start;
  margin-top: 3rem; padding: 1.5rem;
  background: var(--navy-deep); border-radius: var(--radius-lg);
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); }
.author-info { font-size: 0.9rem; line-height: 1.7; color: var(--gray-200); }
.author-info strong { color: var(--gold); font-size: 1rem; display: block; margin-bottom: 0.15rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep); color: var(--gray-300);
  padding: 3rem 1.5rem 2rem; text-align: center;
  border-top: 3px solid var(--gold);
}
.site-footer .footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; max-width: var(--max-width); margin: 0 auto 2rem; text-align: left;
}
.site-footer h4 {
  font-size: 0.9rem; font-weight: 700; color: var(--gold);
  margin-bottom: 0.8rem; letter-spacing: 0.04em;
}
.site-footer a { color: var(--gray-200); text-decoration: none; font-size: 0.84rem; line-height: 2; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .footer-bottom {
  max-width: var(--max-width); margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: var(--gray-400);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center; padding: 3rem 1.5rem; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 50% 50%, rgba(184,150,62,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 900; color: var(--white); position: relative; }
.cta-banner p { color: var(--gray-200); font-size: 0.95rem; margin: 0.5rem 0 1.5rem; position: relative; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero .hero-stats { gap: 1.5rem; }
  .about-block { grid-template-columns: 1fr; }
  .contact-block { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-deep); padding: 1rem; gap: 0.5rem; border-bottom: 2px solid var(--gold); }
  .menu-toggle { display: block; }
  .lang-switcher { margin-left: 0; padding-left: 0; border-left: none; }
  .header-inner .lang-switcher { display: none; }
  .site-nav.open .lang-switcher { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero h1 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.4rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .hero .hero-stats { flex-direction: column; gap: 0.8rem; }
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, .hero, .cta-banner, .lang-switcher { display: none; }
  .article-body { max-width: 100%; font-size: 12pt; }
}
