/* ========================================
   某某的法律笔记 — 全局样式
   设计系统：深蓝(#1E3A6F) + 浅灰(#F5F7FA) + 金色(#C9A961)
   文字色：深灰(#2C3E50)
   ======================================== */

/* --- CSS 变量 --- */
:root {
  --color-primary: #1E3A6F;
  --color-primary-light: #2A4F8F;
  --color-primary-dark: #152A52;
  --color-bg: #F8F6F3;
  --color-white: #FFFFFF;
  --color-accent: #C9A961;
  --color-accent-dark: #B8943E;
  --color-text: #2C3E50;
  --color-text-light: #5A6C7D;
  --color-text-muted: #8B9DAF;
  --color-border: #E1E6EB;
  --color-card-shadow: rgba(0, 0, 0, 0.04);
  --color-card-shadow-hover: rgba(0, 0, 0, 0.06);
  --font-title: "Noto Serif SC", "STSong", "SimSun", "Songti SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-doc-title: "方正小标宋简体", "FZXiaoBiaoSong-B05S", "FZXiaoBiaoSong", "STSong", "SimSun", serif;
  --font-doc-h2: "SimHei", "Heiti SC", "黑体", "STHeiti", "Microsoft YaHei", sans-serif;
  --font-doc-h3: "Kaiti SC", "楷体-简", "STKaiti", "KaiTi", "KaiTi_GB2312", "楷体", serif;
  --font-doc-text: "FangSong_GB2312", "FangSong", "STFangsong", "仿宋_GB2312", "仿宋", serif;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --max-width: 1200px;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--color-text); background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.main-content { flex: 1; }
a { color: var(--color-primary); text-decoration: none; transition: color 200ms var(--ease-out); }
a:hover { color: var(--color-primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); font-weight: 700; color: var(--color-text); line-height: 1.3; }
h1 { font-size: 36px; } h2 { font-size: 26px; } h3 { font-size: 20px; } h4 { font-size: 20px; }
.text-muted { color: var(--color-text-light); font-size: 14px; }
.text-tag { color: var(--color-text-muted); font-size: 14px; }

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

/* --- Header --- */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000; width: 100vw;
  background: var(--color-primary);
  border-bottom: none; height: var(--header-height);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; background: var(--color-primary); padding: 0 32px; }
.header-tagline { grid-column: 1; font-size: 14px; color: rgba(255,255,255,0.85); white-space: nowrap; }
.nav-menu { grid-column: 2; }
.nav-cta.desktop-only { grid-column: 3; justify-self: end; }
.hamburger { grid-column: 3; justify-self: end; }
.logo { font-family: var(--font-title); font-size: 20px; font-weight: 700; color: var(--color-white); white-space: nowrap; }
.logo a { color: var(--color-white); }
.logo a:hover { color: var(--color-accent); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  display: block; padding: 8px 16px; font-size: 18px; font-weight: 500;
  color: rgba(255, 255, 255, 0.85); border-radius: var(--radius-sm); position: relative;
  transition: color 200ms var(--ease-out);
}
.nav-menu a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transition: transform 200ms var(--ease-out);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-accent); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px;
  font-size: 16px; font-weight: 600; color: var(--color-white); background: var(--color-accent);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.nav-cta:hover { background: var(--color-accent-dark); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-white); border-radius: 2px; transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--color-primary); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity 300ms var(--ease-out);
}
.mobile-nav.open { display: flex; opacity: 1; }
.mobile-nav a { font-size: 22px; font-weight: 600; color: var(--color-white); padding: 12px 24px; }
.mobile-nav .nav-cta { font-size: 18px; padding: 12px 32px; margin-top: 8px; }

/* --- Hero --- */
.hero { padding: 80px 0 64px; background: #1E3A6F; }
.hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }

.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-avatar-card {
  background: #F0F4FA; border-radius: var(--radius-lg);
  text-align: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  padding: 24px 20px;
}
.hero-avatar-placeholder {
  width: 120px; height: 120px; border-radius: 50%; background: var(--color-primary);
  color: var(--color-white); display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin: 0 auto 16px; border: 3px solid var(--color-accent);
}
.hero-avatar-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 19%; display: block; margin: 0 auto 16px; border: 3px solid var(--color-accent); }
.hero-name { font-size: 24px; font-weight: 800; color: #0A1A3A; margin-bottom: 4px; letter-spacing: 2px; }
.hero-tagline { font-size: 14px; color: #B8860B; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
.hero-tags { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.hero-tags span { display: inline-block; padding: 4px 12px; font-size: 13px; font-weight: 500; color: #FFFFFF; background: var(--color-primary); border-radius: 20px; border: 1px solid var(--color-accent); }
.hero-specialty { font-size: 16px; font-weight: 600; color: var(--color-primary); margin-bottom: 16px; background: rgba(201, 169, 97, 0.1); padding: 4px 12px; border-radius: 20px; display: inline-block; }
.hero-contact-info { font-size: 13px; color: var(--color-text-muted); word-break: break-all; }
.hero-cta {
  display: block; width: 100%; padding: 12px; font-size: 14px; font-weight: 600; color: var(--color-white);
  background: var(--color-primary); border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out); margin-top: 12px;
}
.hero-cta:hover { background: var(--color-primary-light); transform: translateY(-1px); }

.hero-resume {
  background: #F0F4FA; border-radius: var(--radius-lg); padding: 32px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  height: 100%;
}
.hero-resume h2 { font-size: 26px; margin-bottom: 20px; color: var(--color-primary); }
.hero-resume h3 { font-size: 20px; color: var(--color-primary); margin: 20px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.hero-resume p, .hero-resume li { font-size: 17px; line-height: 1.8; color: var(--color-text-light); }
.hero-resume ul { list-style: disc; padding-left: 20px; }
.hero-resume li { margin-bottom: 4px; }
.hero-resume-section { margin-bottom: 20px; }
.hero-resume-section:last-child { margin-bottom: 0; }
.hero-resume-section h3 { font-size: 18px; color: var(--color-primary); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.hero-resume-section p, .hero-resume-section li { font-size: 15px; line-height: 1.8; color: var(--color-text-light); }
.hero-resume-section ul { list-style: disc; padding-left: 20px; }
.hero-resume-section li { margin-bottom: 4px; }

.hero-faq {
  background: #F0F4FA; border-radius: var(--radius-lg); padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
}
.hero-faq h2 { font-size: 20px; color: var(--color-primary); margin-bottom: 20px; }
.hero-faq-list { display: flex; flex-direction: column; gap: 16px; }
.hero-faq-item { padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.hero-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-faq-item a { font-size: 15px; font-weight: 600; color: var(--color-text); transition: color 200ms var(--ease-out); }
.hero-faq-item a:hover { color: var(--color-primary); }
.hero-faq-item p { font-size: 13px; color: var(--color-text-light); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-faq-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--color-accent); }

/* --- Cards --- */
.cards-section { padding: 0 0 80px; background: #1E3A6F; }
.section-title { font-size: 24px; font-weight: 700; color: var(--color-white); text-align: center; margin-bottom: 40px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: #F0F4FA; border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16); display: flex; flex-direction: column;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); }
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--color-accent); }
.card-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon svg { width: 20px; height: 20px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--color-primary); }
.card-body { flex: 1; }
.card-item { padding: 10px 0; border-bottom: 1px solid var(--color-border); display: block; }
.card-item:last-of-type { border-bottom: none; }
.card-item-title { font-size: 15px; font-weight: 600; color: var(--color-text); display: block; margin-bottom: 2px; transition: color 200ms var(--ease-out); }
.card-item:hover .card-item-title { color: var(--color-primary); }
.card-item-date { font-size: 13px; color: var(--color-text-muted); }
.card-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--color-accent); transition: color 200ms var(--ease-out); }
.card-more:hover { color: var(--color-accent-dark); }
.card-empty { font-size: 14px; color: var(--color-text-muted); padding: 8px 0; }

/* --- Footer --- */
.site-footer { background: var(--color-primary); color: var(--color-white); padding: 40px 0; font-size: 16px; }
.footer-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.footer-contact {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin: 8px 0 4px;
}
.footer-contact strong { color: var(--color-white); font-weight: 600; }
.footer-disclaimer { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.footer-info { color: rgba(255, 255, 255, 0.8); }
.footer-info p { margin-bottom: 4px; }
.footer-beian { color: rgba(255, 255, 255, 0.6); }

/* --- Page Header --- */
.page-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); padding: 40px 0; }
.page-header-title { font-size: 28px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.page-header-desc { font-size: 16px; color: var(--color-text-light); }

/* --- Page Layout --- */
.page-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; padding: 48px 0; }
.page-main { min-width: 0; }
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); }
.sidebar-card { background: var(--color-white); border-radius: var(--radius-md); padding: 24px; box-shadow: 0 1px 3px var(--color-card-shadow); margin-bottom: 20px; }
.sidebar-card h3 { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-accent); }
.sidebar-card ul li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a { font-size: 14px; color: var(--color-text); transition: color 200ms var(--ease-out); }
.sidebar-card ul li a:hover { color: var(--color-primary); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 4px 12px; font-size: 13px; color: var(--color-primary); background: rgba(30, 58, 111, 0.06); border-radius: 20px; transition: background 200ms var(--ease-out), color 200ms var(--ease-out); white-space: nowrap; }
.tag:hover { background: var(--color-primary); color: var(--color-white); }

/* --- List Items --- */
.list-item {
  background: var(--color-white); border-radius: var(--radius-md); padding: 24px 28px;
  box-shadow: 0 1px 3px var(--color-card-shadow); margin-bottom: 16px;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.list-item:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22); }
.list-item-title { font-size: 18px; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; display: block; }
.list-item-title:hover { color: var(--color-primary); }
.list-item-summary { font-size: 15px; color: var(--color-text-light); line-height: 1.6; margin-bottom: 12px; }
.list-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; font-size: 13px; color: var(--color-text-muted); }
.meta-byline { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.meta-byline time, .meta-byline .detail-author { white-space: nowrap; }
.list-item-tag { display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 500; color: var(--color-accent-dark); background: rgba(201, 169, 97, 0.1); border-radius: 20px; white-space: nowrap; }
.tag-filter { cursor: pointer; }
.tag-filter-active { background: var(--color-accent) !important; color: var(--color-white) !important; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination button { padding: 8px 16px; font-size: 14px; color: var(--color-primary); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; transition: background 200ms var(--ease-out), color 200ms var(--ease-out); }
.pagination button:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.pagination button.active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Detail Page --- */
.detail-page { padding: 48px 0; }
.detail-article { max-width: 720px; margin: 0 auto; background: var(--color-white); border-radius: var(--radius-lg); padding: 40px 48px; box-shadow: 0 1px 4px var(--color-card-shadow); }
.detail-article h1 { font-size: 28px; margin-bottom: 16px; color: var(--color-primary); }
.detail-article--doc > h1 { font-family: var(--font-doc-title); font-weight: normal; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; font-size: 14px; color: var(--color-text-muted); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.detail-body { font-size: 16px; line-height: 1.9; color: var(--color-text); }
.detail-article--doc .detail-body { font-family: var(--font-doc-text); }
.detail-body h2 { font-size: 22px; margin: 32px 0 16px; color: var(--color-primary); }
.detail-article--doc .detail-body > h2 { font-family: var(--font-doc-h2); font-weight: 700; }
.detail-body h3 { font-size: 18px; margin: 24px 0 12px; color: var(--color-text); }
.detail-article--doc .detail-body > h3 { font-family: var(--font-doc-h3); font-weight: normal; }
.detail-body h4 { font-size: 16px; margin: 20px 0 10px; font-weight: normal; }
.detail-article--doc .detail-body > h4 { font-family: var(--font-doc-text); font-weight: normal; }
.detail-body p { margin-bottom: 16px; }
.detail-article--doc .detail-body > p { text-indent: 2em; }
.detail-article--doc .detail-body > h2,
.detail-article--doc .detail-body > h3,
.detail-article--doc .detail-body > h4 { text-indent: 2em; }
.detail-article--doc .detail-body p,
.detail-article--doc .detail-body li { font-family: var(--font-doc-text); }
.detail-article--doc .detail-body :is(ul, ol) :is(li, p) { text-indent: 0; }
.detail-body ul, .detail-body ol { margin-bottom: 16px; padding-left: 24px; }
.detail-body ul { list-style: disc; }
.detail-body ol { list-style: decimal; }
.detail-body li { margin-bottom: 8px; }

.detail-cta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; padding: 24px; background: rgba(201, 169, 97, 0.06); border-radius: var(--radius-md); border: 1px solid rgba(201, 169, 97, 0.2); }
.detail-cta-text { font-size: 15px; color: var(--color-text-light); }
.detail-cta-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; font-size: 15px; font-weight: 600; color: var(--color-white); background: var(--color-accent); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background 200ms var(--ease-out); }
.detail-cta-btn:hover { background: var(--color-accent-dark); }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: var(--color-text-light); margin-bottom: 24px; }
.back-link:hover { color: var(--color-primary); }

/* --- FAQ Accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--color-white); border-radius: var(--radius-md); box-shadow: 0 1px 3px var(--color-card-shadow); overflow: hidden; }
.faq-question { font-size: 15px; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--color-text); background: none; border: none; cursor: pointer; text-align: left; transition: color 200ms var(--ease-out); }
.faq-question:hover { color: var(--color-primary); }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-accent); transition: transform 300ms var(--ease-out); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease-out); }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; line-height: 1.8; color: var(--color-text-light); }

/* --- Modal --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 300ms; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--color-white); border-radius: var(--radius-lg); padding: 40px; max-width: 480px; width: calc(100% - 48px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); position: relative; transform: translateY(8px); transition: transform 300ms var(--ease-out); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--color-text-muted); border-radius: 50%; transition: background 200ms var(--ease-out), color 200ms var(--ease-out); }
.modal-close:hover { background: var(--color-bg); color: var(--color-text); }
.modal h2 { font-size: 22px; color: var(--color-primary); margin-bottom: 8px; }
.modal-subtitle { font-size: 14px; color: var(--color-text-light); margin-bottom: 24px; }
.modal-info-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.modal-info-item:first-of-type { padding-top: 0; }
.modal-info-icon { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.modal-info-label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 2px; }
.modal-info-value { font-size: 15px; color: var(--color-text); word-break: break-all; }

/* --- Laws Page --- */
.law-category { margin-bottom: 32px; }
.law-category-title { font-size: 20px; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-accent); }
.highlight { background: rgba(201, 169, 97, 0.3); padding: 0 2px; border-radius: 2px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 32px; }
.search-bar input { flex: 1; padding: 12px 16px; font-size: 15px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text); background: var(--color-white); outline: none; transition: border-color 200ms var(--ease-out); }
.search-bar input:focus { border-color: var(--color-primary); }
.search-bar button { padding: 12px 24px; font-size: 15px; font-weight: 600; color: var(--color-white); background: var(--color-primary); border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background 200ms var(--ease-out); }
.search-bar button:hover { background: var(--color-primary-light); }

/* --- Responsive --- */
@media (max-width: 1023px) {
  h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
  .hero-grid { grid-template-columns: 300px 1fr; gap: 24px; }
  .hero-left { display: flex; flex-direction: column; gap: 24px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr 240px; }
  .detail-article { padding: 32px; }
  .nav-menu a { padding: 8px 10px; font-size: 16px; }
}

@media (max-width: 767px) {
  h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
  :root { --header-height: 56px; }
  .container { padding: 0 20px; }
  .nav-menu { display: none; }
  .header-tagline { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
  .nav-cta.desktop-only { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 32px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-avatar-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 16px;
    row-gap: 8px;
    text-align: left;
    padding: 20px;
    align-items: center;
  }
  .hero-avatar-card .hero-avatar-img,
  .hero-avatar-card .hero-avatar-placeholder {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .hero-avatar-card .hero-name { grid-column: 2; grid-row: 1; margin-bottom: 0; font-size: 17px; }
  .hero-avatar-card .hero-tagline { grid-column: 2; grid-row: 2; margin-bottom: 0; }
  .hero-avatar-card .hero-tags { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
  .hero-avatar-card .hero-specialty { grid-column: 1 / -1; margin-bottom: 0; justify-self: center; text-align: center; font-size: 14px; padding: 3px 10px; }
  .hero-avatar-card .hero-cta { grid-column: 1 / -1; width: auto; justify-self: center; margin-top: 4px; padding: 8px 16px; font-size: 13px; }
  .hero-avatar-placeholder { width: 80px; height: 80px; margin: 0; font-size: 20px; flex-shrink: 0; }
  .hero-avatar-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: 50% 19%; display: block; margin: 0; border: 3px solid var(--color-accent); flex-shrink: 0; }
  .hero-tags span { font-size: 11px; padding: 2px 7px; white-space: nowrap; }
  .hero-resume { padding: 20px; }
  .hero-resume h2 { font-size: 24px; }
.hero-resume h3 { font-size: 20px; color: var(--color-primary); margin: 20px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.hero-resume p, .hero-resume li { font-size: 17px; line-height: 1.8; color: var(--color-text-light); }
.hero-resume ul { list-style: disc; padding-left: 20px; }
.hero-resume li { margin-bottom: 4px; }
  .hero-faq { padding: 20px; }
  .cards-grid { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .card:hover { transform: none; box-shadow: 0 1px 4px var(--color-card-shadow); }
  .list-item:hover { transform: none; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; }
  .page-header { padding: 28px 0; }
  .page-header-title { font-size: 22px; }
  .detail-article { padding: 24px 20px; border-radius: var(--radius-md); }
  .detail-article h1 { font-size: 22px; }
  .detail-cta { flex-direction: column; text-align: center; }
  .modal { padding: 28px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .pagination { flex-wrap: nowrap; }
  .search-bar { flex-direction: column; }
  .search-bar button { width: 100%; }
}

/* --- Animations --- */
.fade-in { animation: fadeIn 400ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.skeleton { background: linear-gradient(90deg, var(--color-border) 25%, var(--color-bg) 50%, var(--color-border) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media print {
  .site-header, .site-footer, .nav-cta, .detail-cta, .sidebar, .mobile-nav, .hamburger { display: none !important; }
  body { background: white; color: black; }
  .detail-article { box-shadow: none; }
}
