/*
Theme Name: Guwen Law Firm
Theme URI: https://guwen.aiduoxing.com
Author: Guwen Dev Team
Author URI: https://guwen.aiduoxing.com
Description: 广东谷问律师事务所企业官网主题 - 现代简约深蓝风格，支持 WordPress REST API 和 AI 自动发布文章
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guwen-law
Tags: law-firm, legal, business, professional, responsive
*/

/* ============================================
   广东谷问律师事务所 - WordPress 主题样式
   参考设计：深蓝主色调 + 白色卡片系统
   ============================================ */

/* CSS Variables */
:root {
  --primary-dark: #071f38;
  --primary: #0b3a67;
  --primary-light: #0b5ea8;
  --primary-lighter: #edf6ff;
  --accent: #0b5ea8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-body: #334155;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --max-width: 80rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 0;
}
.logo img { height: 3rem; width: 3rem; border-radius: 0.5rem; object-fit: cover; }
.logo-text { min-width: 0; }
.logo-text .zh {
  display: block; white-space: nowrap; font-size: 1rem; font-weight: 700; color: var(--text-primary);
}
.logo-text .en {
  display: block; white-space: nowrap; font-size: 0.69rem; letter-spacing: 0.05em; color: #64748b;
}

.nav { display: none; gap: 1.25rem; font-size: 0.875rem; font-weight: 500; color: #475569; }
@media (min-width: 1200px) { .nav { display: flex; } }
.nav a:hover { color: var(--primary-light); }
.nav a.active { color: var(--primary-light); font-weight: 600; }

.header-actions { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .header-actions { display: flex; } }

.btn-phone {
  border: 1px solid rgba(11,58,103,.2); border-radius: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.875rem;
  font-weight: 600; color: var(--primary);
}
.btn-phone:hover { background: var(--primary-lighter); }

.btn-director {
  background: var(--primary); border-radius: 0.5rem;
  padding: 0.5rem 1rem; font-size: 0.875rem;
  font-weight: 600; color: #fff; box-shadow: var(--shadow);
}
.btn-director:hover { background: var(--primary-dark); }

/* Mobile Nav */
.mobile-nav {
  display: flex; gap: 1rem; overflow-x: auto;
  border-top: 1px solid var(--bg-gray);
  padding: 0.5rem 1rem; font-size: 0.875rem; color: #475569;
}
@media (min-width: 1200px) { .mobile-nav { display: none; } }
.mobile-nav a { flex-shrink: 0; }

.mobile-menu-btn { display: block; cursor: pointer; }
@media (min-width: 1200px) { .mobile-menu-btn { display: none; } }
.mobile-menu-btn span {
  display: block; width: 1.5rem; height: 2px; background: var(--text-primary);
  margin: 5px 0; transition: .3s;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 100; padding: 1.5rem;
  flex-direction: column;
}
.mobile-menu-panel.open { display: flex; }
.mobile-menu-panel a {
  padding: 0.75rem 0; border-bottom: 1px solid var(--bg-gray);
  font-size: 1.125rem; font-weight: 500;
}
.mobile-menu-close { align-self: flex-end; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary-dark); color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 10%, rgba(59,130,246,.35), transparent 35%),
              linear-gradient(120deg, rgba(255,255,255,.08), transparent 45%);
}
.hero .container {
  position: relative;
  display: grid; gap: 2.5rem;
  padding-top: 5rem; padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1.12fr 0.88fr; padding-top: 6rem; padding-bottom: 6rem; }
}

.hero-content { position: relative; z-index: 1; }
.hero-content .en-name {
  margin-bottom: 1rem; font-size: 0.875rem; letter-spacing: 0.28em; color: #bfdbfe;
}
.hero-content h1 {
  white-space: nowrap;
  font-size: 2rem; font-weight: 700; line-height: 1.2;
}
@media (min-width: 640px) { .hero-content h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-content h1 { font-size: 3.45rem; } }
.hero-content .badges {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
  font-size: 1rem; font-weight: 600; color: #bfdbfe;
}
.hero-content .badges .red { color: #fca5a5; }
@media (min-width: 768px) { .hero-content .badges { font-size: 1.125rem; } }
.hero-content p {
  margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 2.25; color: #eff6ff;
}
.hero-actions {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem;
}
.btn-white {
  border-radius: 0.5rem; padding: 0.75rem 1.5rem;
  font-weight: 600; color: var(--primary); background: #fff; box-shadow: var(--shadow);
}
.btn-white:hover { background: #e2e8f0; }
.btn-outline {
  border: 1px solid rgba(255,255,255,.4); border-radius: 0.5rem;
  padding: 0.75rem 1.5rem; font-weight: 600; color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* Hero Side Card */
.hero-side {
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl); padding: 2rem;
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
}
.hero-side h2 { font-size: 1.5rem; font-weight: 700; }
.hero-side .services-list { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.hero-side .service-link {
  display: block; border-radius: 0.75rem; padding: 1rem;
  background: rgba(255,255,255,.1); transition: background .2s;
}
.hero-side .service-link:hover { background: rgba(255,255,255,.2); }
.hero-side .service-link b { font-size: 1rem; }
.hero-side .service-link p { margin-top: 0.25rem; font-size: 0.875rem; color: #bfdbfe; }

/* ============================================
   Section Common
   ============================================ */
.section { padding: 4rem 0; }
.section-white { background: #fff; }
.section-gray { background: var(--bg-light); }

.section-header { margin-bottom: 2rem; display: flex; align-items: flex-end; justify-content: space-between; }
.section-header .label {
  font-size: 0.875rem; font-weight: 600; color: var(--primary-light);
}
.section-header h2 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 700; }
.section-header a { font-size: 0.875rem; font-weight: 600; color: var(--primary-light); }

/* ============================================
   Cards
   ============================================ */
.card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; padding: 1.5rem; box-shadow: var(--shadow);
}

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

/* ============================================
   Advantage Cards
   ============================================ */
.advantage-card { text-align: left; }
.advantage-card h3 { font-size: 1.125rem; font-weight: 700; }
.advantage-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.75; color: #475569; }

/* ============================================
   Director Section
   ============================================ */
.director-section { background: #fff; padding: 4rem 0; }
.director-section .container {
  display: grid; gap: 2rem;
}
@media (min-width: 1024px) {
  .director-section .container { grid-template-columns: 0.82fr 1.18fr; }
}

.director-card {
  overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}
.director-card img {
  height: 18rem; width: 100%; object-fit: contain; object-position: center;
  background: #fff;
}
.director-card .info { padding: 2rem; }
.director-card .info .label { color: #bfdbfe; font-size: 0.875rem; }
.director-card .info h2 { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 700; }
.director-card .info p { margin-top: 1.25rem; line-height: 2; color: #eff6ff; }
.director-card .info .btn-white { margin-top: 1.5rem; display: inline-block; }

.case-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   Case & Article Cards
   ============================================ */
.content-card .cat {
  font-size: 0.75rem; font-weight: 600; color: var(--primary-light);
}
.content-card h3 { margin-top: 0.75rem; font-size: 1rem; font-weight: 700; }
.content-card p {
  margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.75; color: #475569;
}
.content-card .more {
  margin-top: 1rem; display: inline-block;
  font-size: 0.875rem; font-weight: 600; color: var(--primary-light);
}
/* Article card (2-col) */
.article-card h3 { font-size: 1.25rem; }

/* ============================================
   CTA Banner
   ============================================ */
.cta {
  margin-top: 4rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  padding: 2.5rem 1.5rem; color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}
@media (min-width: 768px) {
  .cta { display: flex; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) { .cta { padding: 2.5rem; } }
.cta h2 { font-size: 1.5rem; font-weight: 700; }
.cta p { margin-top: 0.5rem; max-width: 48rem; color: #bfdbfe; }
.cta-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 768px) { .cta-actions { margin-top: 0; flex-shrink: 0; } }
.cta-actions .btn-white { font-size: 0.875rem; }
.cta-actions .btn-outline { font-size: 0.875rem; }

/* ============================================
   Page Banner
   ============================================ */
.page-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, #07365f, var(--primary-light), var(--primary-lighter));
  color: #fff;
}
.page-banner .en-name {
  margin-bottom: 0.75rem; font-size: 0.875rem; letter-spacing: 0.28em; color: #bfdbfe;
}
.page-banner h1 { font-size: 2.25rem; font-weight: 700; }
@media (min-width: 768px) { .page-banner h1 { font-size: 3rem; } }
.page-banner p {
  margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; line-height: 2; color: #eff6ff;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb { margin-top: 0.75rem; font-size: 0.875rem; color: #bfdbfe; }
.breadcrumb a { color: #eff6ff; }
.breadcrumb span { margin: 0 0.5rem; }

/* ============================================
   About Page
   ============================================ */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; } }

.about-text h2 { font-size: 1.875rem; font-weight: 700; }
.about-text .content { margin-top: 1.25rem; }
.about-text .content p { margin: 1rem 0; line-height: 1.9; color: #334155; }

/* Firm info card */
.firm-info-card { background: var(--primary-dark); color: #fff; }
.firm-info-card h3 { font-size: 1.5rem; font-weight: 700; }
.firm-info-card dl { margin-top: 1.5rem; }
.firm-info-card dl div { margin-bottom: 1.25rem; }
.firm-info-card dt { color: #94a3b8; font-size: 0.875rem; }
.firm-info-card dd { margin-top: 0.25rem; font-size: 1rem; }

/* ============================================
   Services Page
   ============================================ */
.service-card { }
.service-card h2 { font-size: 1.5rem; font-weight: 700; }
.service-card .intro { margin-top: 0.75rem; line-height: 1.75; color: #475569; }
.service-card ul { margin-top: 1.25rem; }
.service-card ul li { padding: 0.25rem 0; font-size: 0.875rem; color: #334155; }
.service-card .btn-detail {
  margin-top: 1.5rem; display: inline-block;
  border-radius: 0.5rem; padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 600;
  background: var(--primary); color: #fff;
}
.service-card .btn-detail:hover { background: var(--primary-dark); }

/* Service Detail */
.service-detail-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .service-detail-grid { grid-template-columns: 1fr 320px; } }
.service-detail-grid h2 { font-size: 1.5rem; font-weight: 700; }
.service-detail-grid .detail-items {
  margin-top: 1.5rem; display: grid; gap: 1rem;
}
@media (min-width: 768px) { .service-detail-grid .detail-items { grid-template-columns: repeat(2, 1fr); } }
.service-detail-grid .detail-item {
  border-radius: 0.75rem; padding: 1rem; background: var(--bg-gray);
  font-weight: 500; color: #334155;
}
.service-detail-grid .scene { margin-top: 1rem; line-height: 2; color: #475569; }
.service-detail-grid .process { margin-top: 1rem; display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .service-detail-grid .process { grid-template-columns: repeat(4, 1fr); } }
.service-detail-grid .process-item { color: #334155; }

/* Service sidebar */
.service-sidebar {
  border-radius: var(--radius-lg); padding: 1.5rem;
  background: var(--primary-dark); color: #fff;
}
.service-sidebar h3 { font-size: 1.25rem; font-weight: 700; }
.service-sidebar p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.75; color: #bfdbfe; }
.service-sidebar .btn-white { margin-top: 1.5rem; display: inline-block; }

/* ============================================
   Team Page
   ============================================ */
.team-card { }
.team-card .team-top { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .team-card .team-top { flex-direction: row; } }
.team-card .photo {
  height: 10rem; width: 8rem; flex-shrink: 0; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: #fff;
}
.team-card .photo img { height: 100%; width: 100%; object-fit: contain; object-position: center; }
.team-card .photo .placeholder {
  display: grid; place-items: center; height: 100%; width: 100%;
  background: var(--primary); font-size: 1.875rem; font-weight: 700; color: #fff;
}
.team-card h2 { font-size: 1.5rem; font-weight: 700; }
.team-card .title-text { margin-top: 0.25rem; font-weight: 500; color: var(--primary-light); }
.team-card .bio { margin-top: 1rem; line-height: 1.75; color: #475569; }
.team-card .meta { margin-top: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .team-card .meta { grid-template-columns: repeat(2, 1fr); } }
.team-card .meta h3 { font-weight: 700; }
.team-card .meta p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.75; color: #475569; }

/* ============================================
   Contact Page
   ============================================ */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.contact-info-card h2 { font-size: 1.5rem; font-weight: 700; }
.contact-info-card .info-text { margin-top: 1.25rem; line-height: 2; color: #475569; }
.contact-info-card .info-text a { font-weight: 600; color: var(--primary-light); }

.map-placeholder {
  margin-top: 1.5rem; border-radius: 0.75rem;
  height: 12rem; display: grid; place-items: center;
  background: var(--bg-gray); color: #94a3b8; font-size: 0.875rem;
}
.wechat-card { margin-top: 1.5rem; text-align: center; padding: 1.5rem; }
.wechat-card h3 { font-weight: 700; }
.wechat-card img { margin: 1rem auto 0; width: 11rem; height: 11rem; border-radius: 0.5rem; border: 1px solid var(--border); }

/* Forms */
.form-grid { display: grid; gap: 1rem; }
.form-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: grid; gap: 0.25rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: #475569; }
.input {
  width: 100%; border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.75rem 1rem; font-size: 0.938rem; font-family: inherit;
  color: var(--text-primary); background: #fff; outline: none;
}
.input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(11,94,168,.1); }
textarea.input { min-height: 8rem; resize: vertical; }
select.input { cursor: pointer; }

.btn-submit {
  border: none; border-radius: 0.5rem; padding: 0.75rem 1.5rem;
  font-size: 0.938rem; font-weight: 600; cursor: pointer;
  background: var(--primary); color: #fff;
}
.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-ok { margin-left: 1rem; font-size: 0.875rem; font-weight: 600; color: #059669; }

/* ============================================
   Articles / Cases Archive
   ============================================ */
.archive-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
.archive-grid.three-cols { }
@media (min-width: 768px) { .archive-grid.three-cols { grid-template-columns: repeat(3, 1fr); } }

/* Single article / case */
.single-content {
  max-width: 48rem; margin: 0 auto;
  padding: 3rem 0;
}
.single-content .meta { display: flex; gap: 1rem; font-size: 0.875rem; color: #64748b; margin-bottom: 1.5rem; }
.single-content h1 { font-size: 2rem; font-weight: 700; line-height: 1.3; }
.single-content .article-body { margin-top: 2rem; line-height: 1.9; color: #334155; }
.single-content .article-body p { margin: 0.75rem 0; }
.single-content .article-body h3 { margin: 1.5rem 0 0.5rem; font-size: 1.25rem; }

/* Case detail */
.case-detail-section { margin-top: 2rem; padding: 1.5rem; border-radius: 0.75rem; background: var(--bg-gray); }
.case-detail-section h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.case-detail-section p { line-height: 1.9; color: #334155; }

/* ============================================
   Single Team
   ============================================ */
.single-team-content {
  max-width: 48rem; margin: 0 auto;
  padding: 3rem 0;
}
.single-team-content .team-header { display: flex; gap: 1.5rem; align-items: flex-start; }
.single-team-content .photo {
  height: 12rem; width: 9rem; flex-shrink: 0; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: #fff;
}
.single-team-content .photo img { height: 100%; width: 100%; object-fit: contain; }
.single-team-content .photo .placeholder {
  display: grid; place-items: center; height: 100%; width: 100%;
  background: var(--primary); font-size: 2.5rem; font-weight: 700; color: #fff;
}
.single-team-content .meta-grid { margin-top: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .single-team-content .meta-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   Footer
   ============================================ */
.footer {
  margin-top: 5rem; background: var(--primary-dark); color: #fff;
}
.footer-grid {
  display: grid; gap: 2.5rem; padding: 3rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer h3 { font-size: 1.25rem; font-weight: 700; }
.footer .en { margin-top: 0.25rem; font-size: 0.75rem; letter-spacing: 0.05em; color: #bfdbfe; }
.footer p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.75; color: #bfdbfe; }
.footer h4 { font-weight: 600; }
.footer .footer-nav { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; font-size: 0.875rem; color: #bfdbfe; }
.footer .footer-nav a:hover { color: #fff; }
.footer .footer-contact { margin-top: 1rem; font-size: 0.875rem; line-height: 1.75; color: #bfdbfe; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0; text-align: center;
  font-size: 0.75rem; color: #bfdbfe;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: none; background: var(--primary); color: #fff;
  font-size: 1.25rem; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(1rem);
  transition: opacity .3s, transform .3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ============================================
   No Content
   ============================================ */
.no-content { grid-column: 1 / -1; text-align: center; padding: 5rem 0; color: #94a3b8; }

/* ============================================
   Accessibility
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
