/* ═══════════ 全局变量 ═══════════ */
:root {
  --bg: #f5f6fa;
  --navy: #0a2a5e;
  --navy2: #1a5fb4;
  --gold: #d4af37;
  --gold2: #b8942e;
  --gold-light: #e8c84a;
  --blue: #1a5fb4;
  --green: #10b981;
  --red: #ef4444;
  --text: #1e293b;
  --text2: #64748b;
  --text3: #94a3b8;
  --text-white: #f8fafc;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xs: 4px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --shadow: 0 1px 4px rgba(10,42,94,.04), 0 4px 16px rgba(10,42,94,.04);
  --shadow-hover: 0 2px 8px rgba(10,42,94,.06), 0 8px 32px rgba(10,42,94,.08);
  --shadow-glow: 0 0 20px rgba(212,175,55,.25);
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.12);
  --glass-blur: blur(16px);
  /* 间距 */
  --space-section: 64px;
  --space-block: 32px;
  --space-gap: 16px;
  /* 字体层级 */
  --text-h1: clamp(36px, 6vw, 56px);
  --text-h2: 28px;
  --text-h3: 20px;
  --text-h4: 17px;
  --text-body: 15px;
  --text-caption: 13px;
  --text-small: 11px;
}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;background:#f2f3f7;color:var(--text);min-height:100vh;line-height:1.6;padding-top:0}
/* ═══════════ 顶部导航 ═══════════ */
.header{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .3s}
.header-home{background:rgba(255,255,255,.08);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.1)}
.header-solid{background:linear-gradient(135deg,#0a2a5e,#1a5fb4);box-shadow:0 2px 12px rgba(0,0,0,.15)}
.header-inner{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:50px}
.logo{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;color:#fff;cursor:pointer}
.logo img{width:32px;height:32px}
.logo span{font-size:12px;font-weight:400;color:rgba(255,255,255,.6);letter-spacing:1px}
.nav{display:flex;gap:2px}
.nav a{color:rgba(255,255,255,.75);text-decoration:none;padding:8px 14px;border-radius: var(--radius-sm);font-size:14px;cursor:pointer;transition:.2s}
.nav a:hover,.nav a.active{color:#fff;background:rgba(255,255,255,.1)}
/* ═══════════ 页面容器 ═══════════ */
.page{display:none;max-width:800px;margin:0 auto;padding:16px 16px}
.page.active{display:block}
.page:not(#page-home){padding-top:72px}
/* ═══════════ Footer ═══════════ */
.footer{background:var(--navy);color:rgba(255,255,255,.55);padding:32px 24px 20px;margin-top:64px}
.footer-grid{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr;gap:48px}
.footer-col h4{color:#fff;font-size:16px;margin-bottom:12px}
.footer-col p{font-size:13px;line-height:1.8;color:rgba(255,255,255,.55)}
.footer-col a{display:block;font-size:13px;color:rgba(255,255,255,.55);text-decoration:none;padding:4px 0;cursor:pointer;transition:.2s}
.footer-col a:hover{color:var(--gold)}
.qr-placeholder{width:120px;height:120px;background:rgba(255,255,255,.06);border-radius: var(--radius-md);display:flex;align-items:center;justify-content:center;text-align:center;font-size:28px;color:rgba(255,255,255,.3)}
.footer-bottom{max-width:1200px;margin:32px auto 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);text-align:center;font-size:12px;color:rgba(255,255,255,.35)}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr;gap:32px}}
/* ═══════════ Responsive ═══════════ */
@media(max-width:768px){
  /* 导航栏 */
  .header-inner{padding:0 12px;height:48px}
  .logo{font-size:18px;gap:6px}
  .logo img{width:28px;height:28px}
  .logo span{display:none}
  .nav{gap:0;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .nav a{padding:6px 8px;font-size:12px;flex-shrink:0}
  .nav::-webkit-scrollbar{display:none}
  
  /* 首页 hero */
  .hero h1{font-size:28px}
  .hero{padding:72px 16px 40px}
  .hero-stats{gap:16px;flex-wrap:wrap}
  .hero-stat-num{font-size:26px}
  .hero-desc{font-size:14px}
  .quick-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .banner-carousel{height:150px;border-radius:var(--radius-sm)}
  .banner-slide{padding:16px}
  .banner-slide-title{font-size:17px}
  .banner-slide-desc{font-size:12px}

  /* 页面容器 */
  .page{padding:12px 10px!important;max-width:100%!important}
  .page:not(#page-home){padding-top:64px!important}
  .section-title{font-size:18px}
  .section-bar{width:32px;height:3px}

  /* 通用卡片/网格 */
  .expert-card{width:100%!important}
  .expert-grid{grid-template-columns:1fr}
  .risk-layout{grid-template-columns:1fr}
  .apt-grid{grid-template-columns:1fr}
  .dr-card:not(.dr-featured){flex-direction:column}
  .dr-thumb{width:100%;height:140px}
  .expert-pool{min-height:200px}

  /* 服务模块 */
  .svc-grid{grid-template-columns:1fr!important}
  .svc-module{min-width:0!important}

  /* 法律库 */
  .region-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .country-card{padding:12px}
  .law-list-item{flex-direction:column;align-items:flex-start!important}

  /* 专家详情 */
  .ed-hero{flex-direction:column;text-align:center}
  .ed-avatar{width:80px!important;height:80px!important}

  /* 弹窗 - 全屏 */
  .auth-modal{width:100%!important;max-width:100%!important;border-radius:0!important;min-height:100dvh;margin:0}
  .auth-modal .modal-body{max-height:calc(100dvh - 60px)!important;padding:0 16px!important}
  .slide-panel{width:100%!important}

  /* 底部 */
  .footer{padding:24px 16px 16px}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .footer-bottom{font-size:11px}

  /* 搜索框 */
  .search-box{max-width:100%!important}
  .search-box input{font-size:16px!important;padding:12px 14px!important}

  /* 按钮 */
  .btn{padding:12px 20px;font-size:14px}
  .btn-gold{font-size:15px}

  /* 表单 */
  .form-group input,.form-group select,.form-group textarea{font-size:16px!important;padding:12px 14px!important}

  /* tab/chip */
  .chip-row .chip{padding:8px 14px;font-size:13px}
}
/* ═══════════ 侧滑面板 ═══════════ */
.slide-panel{position:fixed;top:0;right:0;bottom:0;width:420px;background:#fff;z-index:300;box-shadow:-8px 0 32px rgba(0,0,0,.15);transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);overflow-y:auto}
.slide-panel.open{transform:translateX(0)}
.slide-panel-inner{padding-top:0}
.slide-panel-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid rgba(0,0,0,.06);position:sticky;top:0;background:#fff;z-index:1}
.slide-panel-header h3{font-size:18px;color:var(--navy)}
.slide-panel-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:299;display:none}
.slide-panel-backdrop.open{display:block}
.atab.active{color:var(--navy)!important;border-bottom-color:var(--gold)!important;font-weight:600}
.btn-red{background:#ef4444;color:#fff;border:none;padding:12px 24px;border-radius:var(--radius-sm);font-size:14px;cursor:pointer}
.btn-red:hover{background:#dc2626}
@media(max-width:520px){.slide-panel{width:100%}}


.page{background:#f2f3f7}
.page.active{background:#f2f3f7}
.section-bar-line{background:var(--gold)}
/* 卡片在灰底上更突出 */
.svc-module{background:#fff}
.exp-card-info .name{color:#1e293b}


body::before{content:'';position:fixed;inset:0;background-image:radial-gradient(rgba(0,0,0,.02) 1px,transparent 1px);background-size:24px 24px;pointer-events:none;z-index:-1}
/* ═══════════ 消息通知 ═══════════ */
.notify-dot{position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:var(--red);display:none}
.notify-dot.show{display:block}
.modal-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.6);z-index:200;align-items:center;justify-content:center}
.modal-overlay.open{display:flex}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 28px;border-radius:var(--radius-sm);font-size:15px;font-weight:600;cursor:pointer;border:none;transition:.2s;gap:6px}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#fff;width:100%}
.btn-gold:hover{opacity:.9;transform:translateY(-1px)}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{opacity:.9}

/* ═══════════ 新设计系统 v2.0 (2026-05-18) ═══════════ */

/* --- Pill 按钮 --- */
.pill-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 28px;border-radius:var(--radius-pill);font-size:14px;font-weight:500;border:none;cursor:pointer;transition:all .3s ease;letter-spacing:.02em;text-decoration:none}
.pill-btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#1a1200;box-shadow:0 4px 16px rgba(212,175,55,.3)}
.pill-btn-gold:hover{background:linear-gradient(135deg,var(--gold-light),var(--gold));transform:translateY(-2px);box-shadow:0 6px 24px rgba(212,175,55,.45)}
.pill-btn-outline{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.pill-btn-outline:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.4);transform:translateY(-2px)}
.pill-btn-dark{background:rgba(10,42,94,.8);color:#fff;border:none}
.pill-btn-dark:hover{background:var(--navy);transform:translateY(-2px);box-shadow:0 4px 16px rgba(10,42,94,.3)}
.pill-btn-sm{padding:8px 20px;font-size:12px}

/* --- 卡片悬停 --- */
.card-3d{background:#fff;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);transition:all .4s cubic-bezier(.25,.46,.45,.94)}
.card-3d:hover{transform:translateY(-4px) scale(1.01);box-shadow:var(--shadow-hover),0 12px 40px rgba(10,42,94,.1)}
.card-3d-glow:hover{border-color:rgba(212,175,55,.3);box-shadow:var(--shadow-hover),0 0 30px rgba(212,175,55,.12)}

/* --- 毛玻璃卡片 --- */
.glass-card{background:rgba(255,255,255,.06);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius);padding:24px;color:#fff;transition:all .3s ease}
.glass-card:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2);transform:translateY(-3px)}

/* --- 链接变色 --- */
.link-gold{color:var(--gold);cursor:pointer;transition:color .2s;text-decoration:none}
.link-gold:hover{color:#e8c84a}
.link-underline{text-decoration:none;transition:color .2s;border-bottom:1px solid transparent}
.link-underline:hover{color:var(--gold);border-bottom-color:var(--gold)}

/* --- 数字高亮 --- */
.stat-number{color:var(--gold);font-weight:700;font-size:clamp(2.2rem,5vw,3.2rem);line-height:1;letter-spacing:-.02em}
.stat-label{font-size:13px;color:var(--text3);margin-top:4px}

/* --- 深色背景 section --- */
.section-dark{background:linear-gradient(135deg,#0a1628,#0a2a5e);color:#f8fafc;padding:80px 20px}

/* --- Gold glow line --- */
.glow-line{width:50px;height:3px;background:linear-gradient(90deg,var(--gold),transparent);border-radius:3px;margin:12px 0 20px}

/* === 深色首页英雄区 === */
.hero-dark{background:linear-gradient(135deg,#060e1e 0%,#0a2a5e 50%,#0d1840 100%);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:100px 20px 60px;position:relative;overflow:hidden}
.hero-dark::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 30% 50%,rgba(212,175,55,.08),transparent 60%),radial-gradient(ellipse at 70% 30%,rgba(26,95,180,.1),transparent 50%);pointer-events:none}
.hero-dark-content{position:relative;z-index:2;max-width:900px;text-align:center}
.hero-dark h1{font-size:clamp(32px,6vw,56px);font-weight:700;color:#fff;line-height:1.15;margin-bottom:16px}
.hero-dark h1 .gold{color:var(--gold)}
.hero-dark p{font-size:clamp(15px,2vw,18px);color:rgba(255,255,255,.65);max-width:650px;margin:0 auto 32px;line-height:1.7}
.hero-dark-stats{display:flex;gap:48px;justify-content:center;flex-wrap:wrap;margin-top:40px}
.hero-dark-stat{text-align:center}
.hero-dark-stat .num{font-size:clamp(32px,5vw,48px);font-weight:700;color:var(--gold);line-height:1}
.hero-dark-stat .label{font-size:13px;color:rgba(255,255,255,.5);margin-top:6px}

/* === 分屏登录页 === */
.split-login{position:fixed;inset:0;z-index:300;display:none}
.split-login.open{display:flex}

/* 左栏：品牌宣传区 */
.sl-left{flex:1;position:relative;overflow:hidden;min-width:420px;display:flex;align-items:center;justify-content:center}
.sl-left-bg{position:absolute;inset:0;background:linear-gradient(135deg,#060e1e 0%,#0d1b3e 40%,#1a2d5e 100%)}
.sl-left-bg::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 20% 40%,rgba(212,175,55,.06),transparent 50%),radial-gradient(ellipse at 80% 60%,rgba(26,95,180,.08),transparent 50%);}
.sl-left-bg::after{content:'';position:absolute;bottom:0;left:0;right:0;height:50%;background:linear-gradient(0deg,rgba(0,0,0,.4),transparent);}
.sl-left-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,42,94,.3) 0%,rgba(10,42,94,.7) 100%);}

/* 城市天际线SVG效果 */
.sl-left::after{content:'';position:absolute;bottom:0;left:0;right:0;height:160px;z-index:1;background:linear-gradient(180deg,transparent,rgba(212,175,55,.03) 40%,rgba(212,175,55,.08) 100%);mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Crect x='0' y='50' width='1200' height='70' fill='white'/%3E%3Crect x='80' y='30' width='40' height='90' fill='white'/%3E%3Crect x='150' y='10' width='50' height='110' fill='white'/%3E%3Crect x='240' y='45' width='35' height='75' fill='white'/%3E%3Crect x='310' y='20' width='60' height='100' fill='white'/%3E%3Crect x='420' y='55' width='30' height='65' fill='white'/%3E%3Crect x='500' y='15' width='45' height='105' fill='white'/%3E%3Crect x='590' y='40' width='55' height='80' fill='white'/%3E%3Crect x='700' y='25' width='35' height='95' fill='white'/%3E%3Crect x='780' y='50' width='50' height='70' fill='white'/%3E%3Crect x='880' y='10' width='40' height='110' fill='white'/%3E%3Crect x='960' y='35' width='60' height='85' fill='white'/%3E%3Crect x='1060' y='20' width='45' height='100' fill='white'/%3E%3Crect x='1140' y='50' width='30' height='70' fill='white'/%3E%3C/svg%3E");-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Crect x='0' y='50' width='1200' height='70' fill='white'/%3E%3Crect x='80' y='30' width='40' height='90' fill='white'/%3E%3Crect x='150' y='10' width='50' height='110' fill='white'/%3E%3Crect x='240' y='45' width='35' height='75' fill='white'/%3E%3Crect x='310' y='20' width='60' height='100' fill='white'/%3E%3Crect x='420' y='55' width='30' height='65' fill='white'/%3E%3Crect x='500' y='15' width='45' height='105' fill='white'/%3E%3Crect x='590' y='40' width='55' height='80' fill='white'/%3E%3Crect x='700' y='25' width='35' height='95' fill='white'/%3E%3Crect x='780' y='50' width='50' height='70' fill='white'/%3E%3Crect x='880' y='10' width='40' height='110' fill='white'/%3E%3Crect x='960' y='35' width='60' height='85' fill='white'/%3E%3Crect x='1060' y='20' width='45' height='100' fill='white'/%3E%3Crect x='1140' y='50' width='30' height='70' fill='white'/%3E%3C/svg%3E");mask-size:100%;-webkit-mask-size:100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}

.sl-left-content{position:relative;z-index:2;max-width:380px;padding:40px}
.sl-brand-icon{font-size:48px;margin-bottom:8px}
.sl-brand-name{font-size:28px;font-weight:700;color:#fff;margin-bottom:4px;letter-spacing:-.5px}
.sl-brand-tagline{font-size:14px;color:rgba(255,255,255,.5);font-weight:300;letter-spacing:2px;margin-bottom:28px}
.sl-divider{width:40px;height:2px;background:var(--gold);margin-bottom:24px}
.sl-features{display:flex;flex-direction:column;gap:16px}
.sl-feat{display:flex;align-items:flex-start;gap:14px}
.sl-feat-icon{width:36px;height:36px;border-radius:var(--radius-sm);background:rgba(212,175,55,.1);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.sl-feat-text{display:flex;flex-direction:column}
.sl-feat-text strong{font-size:14px;font-weight:600;color:#f8fafc;margin-bottom:2px}
.sl-feat-text span{font-size:12px;color:rgba(255,255,255,.45);font-weight:300}
.sl-footer-text{position:absolute;bottom:40px;left:40px;right:40px;text-align:center;font-size:12px;color:rgba(255,255,255,.25);letter-spacing:3px}

/* 右栏：登录表单 */
.sl-right{flex:1;background:#fff;display:flex;align-items:center;justify-content:center;min-width:400px;position:relative}
.sl-close-btn{position:absolute;top:20px;right:24px;background:none;border:none;font-size:18px;color:var(--text3);cursor:pointer;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all .2s}
.sl-close-btn:hover{background:#f1f5f9;color:var(--text)}
.sl-right-content{max-width:360px;width:100%}
.sl-tabs{display:flex;gap:0;margin-bottom:36px;border-bottom:1px solid #e2e8f0}
.sl-tab{font-size:16px;font-weight:600;color:var(--text3);cursor:pointer;padding:0 0 14px 0;border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .2s;margin-right:28px}
.sl-tab.active{color:var(--navy);border-bottom-color:var(--gold)}

.sl-form-title{font-size:24px;font-weight:700;color:var(--navy);margin-bottom:4px;letter-spacing:-.5px}
.sl-form-sub{font-size:14px;color:var(--text3);margin-bottom:28px}
.sl-fg{margin-bottom:20px}
.sl-fg label{display:block;font-size:13px;color:var(--text2);margin-bottom:6px;font-weight:500}
.sl-fg input{width:100%;padding:12px 16px;border:1px solid #e2e8f0;border-radius:var(--radius-sm);font-size:15px;outline:none;transition:border .2s,box-shadow .2s;color:var(--text)}
.sl-fg input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(212,175,55,.1)}
.sl-fg input::placeholder{color:#cbd5e1}
.sl-foot{text-align:center;margin-top:16px;font-size:13px;color:var(--text3)}
.sl-foot a{color:var(--gold);cursor:pointer;text-decoration:none;font-weight:500}
.sl-foot a:hover{text-decoration:underline}

@media(max-width:820px){
  .split-login.open{flex-direction:column}
  .sl-left{min-width:0;padding:24px}
  .sl-left-content{max-width:100%;padding:20px}
  .sl-right{min-width:0}
  .sl-footer-text{position:static;margin-top:24px}
}

