/* ====================================
   高翠平律师网站 - 统一CSS框架 v1.0
   所有页面共享此样式文件
   ==================================== */

:root {
  --navy: #0a2463;
  --gold: #d4af37;
  --white: #ffffff;
  --light-gray: #f8f9fb;
  --gray-50: #f5f6fa;
  --text-primary: #2c3e50;
  --text-secondary: #5a6a7a;
  --text-light: #888888;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07);
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Microsoft YaHei, PingFang SC, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* 导航 */
.header-nav { background: var(--navy); padding: 14px 40px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-content { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { color: var(--gold); font-size: 20px; font-weight: bold; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px; letter-spacing: 0.3px; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links .nav-cta { background: var(--gold); color: var(--navy); padding: 6px 18px; border-radius: 6px; font-weight: 600; }
.hamburger { display: none; background: none; border: none; color: var(--gold); font-size: 28px; cursor: pointer; padding: 0; line-height: 1; }

/* 页面头部 */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%); color: var(--white); text-align: center; padding: 48px 20px 40px; }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; letter-spacing: 1px; }
.page-hero p  { font-size: 15px; color: rgba(255,255,255,0.7); }

/* 面包屑 */
.breadcrumb { background: var(--gray-50); padding: 12px 40px; font-size: 13px; color: var(--text-light); border-bottom: 1px solid #eee; }
.breadcrumb a { color: var(--navy); } .breadcrumb a:hover { color: var(--gold); }

/* 内容区 */
.content-area { max-width: var(--max-width); margin: 0 auto; padding: 30px 40px; }
.section-title { font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); display: inline-block; letter-spacing: 0.5px; }
.section-block { margin-bottom: 48px; }
.section-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }

/* Hero */
.hero-section { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-photo { width: 100px; height: 120px; object-fit: cover; border-radius: var(--radius); border: 3px solid var(--gold); flex-shrink: 0; }
.hero-info { flex: 1; min-width: 260px; }
.hero-name { font-size: 28px; font-weight: bold; color: var(--navy); margin-bottom: 4px; letter-spacing: 1px; }
.hero-tagline { font-size: 14px; color: var(--gold); font-weight: 500; margin-bottom: 10px; letter-spacing: 0.5px; }
.hero-brief { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }
.hero-phone { display: inline-block; background: var(--gold); color: var(--navy); padding: 11px 32px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.5px; transition: all 0.3s; margin-top: 12px; }
.hero-phone:hover { opacity: 0.85; }

/* 服务卡片 */
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 24px; border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.2s; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card .icon { font-size: 22px; margin-bottom: 6px; display: block; }
.service-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.service-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 10px; }
.service-card .more-link { font-size: 13px; color: var(--navy); font-weight: 600; }
.service-card .more-link:hover { color: var(--gold); }

/* 案例 */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card { background: var(--white); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.case-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.case-tag { display: inline-block; background: var(--navy); color: var(--gold); font-size: 11px; padding: 3px 10px; border-radius: 4px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0.3px; }

/* 荣誉 */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.honor-card { background: #fff; border: 1px solid #e8e8e8; border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, border-color 0.3s; }
.honor-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.honor-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.honor-card h4 { font-size: 14px; color: var(--navy); margin-bottom: 4px; font-weight: 600; }
.honor-card p  { font-size: 12px; color: var(--text-light); }

/* 优势 */
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; }
.advantage-item { display: flex; align-items: flex-start; gap: 10px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.advantage-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; fill: #2e7d32; }
.advantage-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.advantage-desc  { font-size: 13px; color: var(--text-secondary); }

/* 文章列表 */
.article-item { padding: 10px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; }
.article-item:last-child { border-bottom: none; }
.article-tag { display: inline-block; background: var(--gold); color: var(--navy); font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: bold; flex-shrink: 0; }
.article-item a { color: var(--text-primary); font-size: 15px; }
.article-item a:hover { color: var(--navy); }
.more-link { display: inline-block; margin-top: 10px; color: var(--navy); font-size: 14px; font-weight: bold; }
.more-link:hover { color: var(--gold); }

/* 底部联系栏(首页) */
.contact-bar { background: var(--navy); color: var(--white); padding: 36px 20px; text-align: center; }
.contact-bar .co-title { font-size: 22px; color: var(--gold); margin-bottom: 16px; letter-spacing: 1px; }
.contact-bar p  { font-size: 15px; margin: 6px 0; }
.contact-bar a  { color: var(--gold); text-decoration: underline; }

/* 作者简介(子页面底部) */
.author-bio { max-width: var(--max-width); margin: 40px auto 0; padding: 24px 28px; background: linear-gradient(135deg, #f8f4eb 0%, #fef9ef 100%); border-radius: 8px; border-left: 4px solid var(--gold); }
.author-bio-inner { display: flex; gap: 16px; align-items: flex-start; }
.author-photo { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-info { flex: 1; }
.author-name { font-size: 16px; font-weight: bold; color: var(--navy); margin-bottom: 6px; }
.author-desc { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin: 0; }
.author-phone { color: var(--navy); font-weight: bold; text-decoration: none; background: var(--gold); padding: 1px 8px; border-radius: 4px; }

/* 底部版权 */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); text-align: center; padding: 16px 20px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.site-footer a:hover { color: var(--gold); }

/* 微信浮标 */
.float-wechat { position: fixed; right: 76px; bottom: 20px; z-index: 999; animation: floatUpDown 2s ease-in-out infinite alternate; }
@keyframes floatUpDown { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.wechat-icon { width: 46px; height: 46px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); cursor: pointer; }
.wechat-icon svg { width: 22px; height: 22px; fill: #07c160; }
.qrcode-popup { display: none; position: absolute; right: 60px; bottom: -60px; background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); width: 220px; }
.popup-qrcode { width: 100%; height: auto; display: block; object-fit: contain; }

/* AI浮标 */
.ai-float { position: fixed; right: 20px; bottom: 20px; z-index: 999; animation: floatUpDown 2s ease-in-out infinite alternate; cursor: pointer; }
.ai-icon { width: 46px; height: 46px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--navy); cursor: pointer; transition: transform 0.2s; }
.ai-icon:hover { transform: scale(1.1); }
.ai-icon svg { width: 22px; height: 22px; color: var(--navy); }
.ai-tooltip { display: none; position: absolute; right: 56px; top: 50%; transform: translateY(-50%); background: var(--navy); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.ai-float:hover .ai-tooltip { display: block; }

/* 司法解释卡片 */
.interp-card { background: #fff; border: 1px solid #eee; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; transition: box-shadow 0.2s; }
.interp-card:hover { box-shadow: var(--shadow-sm); }
.interp-tag { display: inline-block; background: var(--navy); color: var(--gold); font-size: 11px; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.interp-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.interp-card h3 a { color: var(--navy); } .interp-card h3 a:hover { color: var(--gold); }
.interp-fahao { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.interp-source { font-size: 12px; color: var(--text-light); }
.interp-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 8px 0; }
.interp-meta { display: flex; gap: 12px; font-size: 12px; color: #aaa; }
.interp-link { display: inline-block; margin-top: 8px; color: var(--navy); font-size: 13px; font-weight: 600; }
.interp-link:hover { color: var(--gold); }

/* 司法解释目录卡片 */
.item-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.item-card:last-child { border-bottom: none; }
.item-fahao { font-size: 12px; color: var(--text-light); min-width: 120px; }
.item-name  { font-size: 15px; font-weight: 500; }
.item-name a { color: var(--navy); } .item-name a:hover { color: var(--gold); }
.item-date  { font-size: 12px; color: #aaa; margin-left: auto; }

/* 标签 */
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 3px; font-weight: 500; }
.tag-criminal { background: #fff1f0; color: #cf1322; }
.tag-civil    { background: #e6f7ff; color: #0077b6; }
.tag-admin   { background: #f0f5ff; color: #2f54eb; }
.tag-joint   { background: #fff7e6; color: #d48806; }
.tag-ip      { background: #f9f0ff; color: #722ed1; }

/* 年份标题 */
.year-title { font-size: 20px; font-weight: 600; color: var(--navy); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }

/* 提示框 */
.note-box { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 16px 20px; font-size: 14px; color: #8c6f00; line-height: 1.6; margin-bottom: 20px; }

/* 相关文章 */
.related-articles { background: var(--gray-50); border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px 24px; margin-top: 30px; }
.related-articles h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { padding: 6px 0; }
.related-articles li a { color: var(--navy); font-size: 14px; }
.related-articles li a:hover { color: var(--gold); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a { padding: 6px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: var(--text-secondary); }
.pagination a:hover { border-color: var(--gold); color: var(--navy); }
.pagination a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .services-grid { grid-template-columns: 1fr 1fr !important; }
  .cases-grid    { grid-template-columns: 1fr 1fr !important; }
  .honor-grid    { grid-template-columns: 1fr 1fr !important; }
  .advantages-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 15px 20px; gap: 15px; z-index: 99; }
  .nav-links.open { display: flex; }
  .content-area { padding: 20px 15px; }
  .breadcrumb { padding: 10px 15px; }
  .hero-section { flex-direction: column; text-align: center; }
  .hero-photo { width: 100px; height: 120px; }
  .hero-name  { font-size: 22px; }
  .services-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .cases-grid    { grid-template-columns: 1fr !important; }
  .honor-grid    { grid-template-columns: 1fr 1fr !important; }
  .advantages-grid { grid-template-columns: 1fr 1fr !important; }
  .section-title { font-size: 19px; }
  .page-hero h1  { font-size: 24px; }
  .page-hero     { padding: 32px 15px 28px; }
  .contact-bar .co-title { font-size: 19px; }
  .contact-bar p { font-size: 14px; }
  .author-bio-inner { flex-direction: column; align-items: center; text-align: center; }
  .author-photo { width: 60px; height: 60px; }
  .item-card { flex-direction: column; gap: 4px; }
  .item-fahao { min-width: auto; }
  .item-date  { margin-left: 0; }
  .interp-card { padding: 16px; }
}
