/* ========== 全局变量 ========== */
:root {
  --primary: #1a2b4a;
  --primary-light: #2a3f6a;
  --primary-dark: #0f1d33;
  --accent: #c8a35c;
  --accent-light: #d9b876;
  --accent-dark: #a8853f;
  --bg-light: #f8f9fb;
  --bg-gray: #f0f2f5;
  --text-dark: #1a1f36;
  --text-body: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* ========== 重置样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', Georgia, serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.container { max-width: clamp(1200px, 92vw, 1600px); margin: 0 auto; padding: 0 clamp(16px, 2vw, 40px); }

/* ========== 顶部导航栏 ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif SC', serif;
}

.logo-text .slogan {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 16px;
  color: var(--text-body);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--primary);
  background: var(--bg-gray);
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 12px;
  padding: 8px 20px !important;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  color: var(--white) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/* ========== Hero区域 ========== */
.hero {
  margin-top: 72px;
  min-height: 600px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><g fill="none" stroke="rgba(200,163,92,0.05)" stroke-width="1"><circle cx="40" cy="40" r="38"/><circle cx="40" cy="40" r="28"/><circle cx="40" cy="40" r="18"/></g></svg>');
  opacity: 0.6;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,163,92,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: clamp(1200px, 92vw, 1600px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) clamp(16px, 2vw, 40px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(26px, 4vw, 52px);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-text h1 .accent {
  color: var(--accent);
}

.hero-text .subtitle {
  font-size: clamp(14px, 1.5vw, 20px);
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-tag {
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(200,163,92,0.3);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: clamp(24px, 2.5vw, 40px);
  width: 100%;
  max-width: clamp(340px, 28vw, 460px);
}

.hero-card .label {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: clamp(20px, 2vw, 30px);
  color: var(--white);
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.stat-row .stat-value {
  font-size: clamp(22px, 2.5vw, 40px);
  font-weight: 700;
  color: var(--accent);
  font-family: 'Noto Serif SC', serif;
}

.stat-row .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ========== 通用Section样式 ========== */
.section {
  padding: clamp(48px, 5vw, 88px) 0;
}

.section-bg-gray { background: var(--bg-light); }

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-header .eyebrow {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-header h2 {
  font-size: clamp(22px, 2.8vw, 38px);
  margin-bottom: 12px;
}

.section-header p {
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== 专业领域卡片 ========== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 18vw, 280px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.practice-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.practice-card:hover::before {
  transform: scaleX(1);
}

.practice-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}

.practice-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.practice-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.practice-card .learn-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ========== 律师简介区域 ========== */
.about-preview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image .img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: clamp(60px, 6vw, 100px);
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

.about-image .badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.about-text h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  margin-bottom: 8px;
}

.about-text .title {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: var(--text-body);
}

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.credential-tag {
  padding: 6px 14px;
  background: var(--bg-gray);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.credential-tag::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ========== 文章/案例列表 ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 22vw, 380px), 1fr));
  gap: clamp(20px, 2vw, 32px);
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.article-card .card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 40px;
}

.article-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card .card-category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-gray);
  color: var(--accent);
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .card-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ========== 法律法规区域 ========== */
.laws-container {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.laws-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 28px 32px;
  color: var(--white);
}

.laws-header h3 {
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 26px);
  margin-bottom: 6px;
}

.laws-header p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.laws-filters {
  display: flex;
  gap: 8px;
  padding: 20px 32px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}

.law-type-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.law-type-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.law-type-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.laws-search {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.laws-search input {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  width: clamp(160px, 16vw, 260px);
}

.laws-search input:focus {
  border-color: var(--accent);
}

.laws-search button {
  padding: 6px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.laws-search button:hover {
  background: var(--primary-light);
}

.laws-list {
  max-height: 600px;
  overflow-y: auto;
}

.law-item {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.law-item:hover {
  background: var(--bg-light);
}

.law-item:last-child {
  border-bottom: none;
}

.law-item .law-index {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-gray);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-right: 16px;
  flex-shrink: 0;
}

.law-item:hover .law-index {
  background: var(--accent);
  color: var(--white);
}

.law-item .law-content {
  flex: 1;
  min-width: 0;
}

.law-item .law-title {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.law-item .law-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.law-item .law-type-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  align-self: center;
  margin-left: 12px;
}

.law-type-badge.法律 { background: #e6f0ff; color: #1a4a8a; }
.law-type-badge.行政法规 { background: #fff3e6; color: #8a4a1a; }
.law-type-badge.司法解释 { background: #f0e6ff; color: #4a1a8a; }
.law-type-badge.宪法 { background: #ffe6e6; color: #8a1a1a; }
.law-type-badge.地方性法规 { background: #e6ffe6; color: #1a8a1a; }

.laws-footer {
  padding: 16px 32px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

.laws-pagination {
  display: flex;
  gap: 4px;
  align-items: center;
}

.laws-pagination button {
  padding: 4px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.laws-pagination button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.laws-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.laws-pagination .page-info {
  font-size: 13px;
  color: var(--text-light);
  padding: 0 8px;
}

.loading-spinner {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.loading-spinner .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== 联系区域 ========== */
.contact-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 72px 0;
}

.contact-section h2 { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}

.contact-info h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2px;
}

.contact-item .value {
  font-size: 16px;
  color: var(--white);
  font-weight: 500;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px;
}

.contact-form h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== 页脚 ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 32px;
}

.footer-brand .logo-text .name {
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ========== 文章详情页 ========== */
.article-detail {
  margin-top: 72px;
  padding: 48px 0;
}

.article-detail-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-detail-header h1 {
  font-size: clamp(22px, 2.2vw, 34px);
  margin-bottom: 16px;
}

.article-detail-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-light);
}

.article-detail-content {
  max-width: clamp(680px, 55vw, 900px);
  margin: 0 auto;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 2;
}

.article-detail-content h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.article-detail-content p {
  margin-bottom: 16px;
}

/* ========== 返回顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ========== 响应式 ========== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 { font-size: 32px; }
  .hero-tags { justify-content: center; }
  .hero-buttons { justify-content: center; }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-cta {
    margin: 8px 0 0 0;
    text-align: center;
  }

  .mobile-toggle {
    display: block;
  }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 24px; }

  .hero { min-height: 500px; }
  .hero-text h1 { font-size: 26px; }

  .laws-search {
    margin-left: 0;
    width: 100%;
    margin-top: 12px;
  }

  .laws-search input { flex: 1; width: auto; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .laws-filters {
    padding: 16px;
  }

  .laws-header,
  .laws-footer {
    padding: 16px 20px;
  }

  .law-item {
    padding: 12px 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ========== 法律法规页 - 国家/地区切换 ========== */
.laws-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 4px;
}
.laws-tab {
  flex: 1;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.laws-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 地区筛选按钮 */
.law-region-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-body);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}
.law-region-btn:hover { border-color: var(--accent); color: var(--accent); }
.law-region-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* 法规标签 */
.law-region-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #E8F4FD;
  color: #2563EB;
  margin-left: 8px;
  vertical-align: middle;
}
.law-local-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #92400E;
  margin-left: 8px;
  vertical-align: middle;
}

/* 法律详情页布局 */
.law-detail-layout {
  display: grid;
  grid-template-columns: 1fr clamp(280px, 22vw, 360px);
  gap: clamp(24px, 2.5vw, 40px);
  align-items: start;
}
.law-detail-main {
  min-width: 0;
}
.law-detail-sidebar {
  position: sticky;
  top: 88px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

/* 条文显示 */
.law-content-display {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 2;
  color: var(--text-body);
}
.law-clause {
  position: relative;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: var(--transition);
}
.law-clause:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.law-clause:hover .clause-actions {
  opacity: 1;
}
.clause-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.clause-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.clause-btn:hover { background: var(--bg-light); }
.clause-btn.active { background: #FEF3C7; border-color: var(--accent); }
.clause-btn.has-note { background: #E8F5E9; border-color: #4CAF50; }
.clause-text.bookmarked {
  background: linear-gradient(90deg, #FEF3C720, transparent);
  border-left: 3px solid var(--accent);
}

.annotation-badge {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.annotation-item {
  background: var(--white);
}

/* 弹窗 */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-light); }
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--bg-light); }

/* 响应式 - 法律详情 */
@media (max-width: 768px) {
  .law-detail-layout {
    grid-template-columns: 1fr;
  }
  .law-detail-sidebar {
    position: static;
  }
  .laws-tabs {
    flex-direction: column;
    gap: 4px;
  }
  .clause-actions {
    opacity: 1;
    position: static;
    margin-bottom: 8px;
  }

  /* 导航栏手机端优化 */
  .header-inner { height: 56px; }
  .logo-icon { width: 36px; height: 36px; font-size: 18px; }
  .logo-text .name { font-size: 15px; }
  .logo-text .slogan { font-size: 10px; letter-spacing: 1px; }
  .nav { top: 56px; }
  .container { padding: 0 14px; }

  /* Hero手机端优化 */
  .hero { margin-top: 56px; min-height: auto; padding: 40px 0; }
  .hero-content { padding: 30px 16px; gap: 24px; }
  .hero-text h1 { font-size: 22px; margin-bottom: 12px; }
  .hero-text .subtitle { font-size: 14px; margin-bottom: 20px; }
  .hero-tags { gap: 6px; margin-bottom: 24px; }
  .hero-tag { font-size: 12px; padding: 4px 12px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn { width: 100%; padding: 12px 20px; font-size: 14px; }
  .hero-card { padding: 20px; max-width: 100%; }
  .hero-card h3 { font-size: 20px; }
  .stat-row .stat-value { font-size: 22px; }

  /* Section手机端优化 */
  .section { padding: 36px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 20px; }
  .section-header p { font-size: 14px; }
  .section-header .eyebrow { font-size: 11px; letter-spacing: 2px; }

  /* 专业领域卡片手机端 */
  .practice-grid { grid-template-columns: 1fr; gap: 14px; }
  .practice-card { padding: 24px 18px; }
  .practice-icon { width: 44px; height: 44px; font-size: 22px; margin-bottom: 14px; }
  .practice-card h3 { font-size: 17px; }

  /* 律师简介手机端 */
  .about-preview { gap: 24px; }
  .about-image { max-width: 240px; }
  .about-image .img-placeholder { font-size: 60px; }
  .about-text h2 { font-size: 22px; }
  .about-credentials { gap: 8px; }

  /* 文章/案例列表手机端 */
  .article-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-card .card-body { padding: 18px; }
  .article-card h3 { font-size: 16px; }
  .article-card .card-summary { font-size: 13px; }

  /* 法律法规列表手机端 */
  .laws-header { padding: 18px 16px; }
  .laws-header h3 { font-size: 17px; }
  .laws-header p { font-size: 12px; }
  .laws-filters { padding: 12px 14px; gap: 6px; }
  .law-type-btn { padding: 5px 12px; font-size: 12px; }
  .law-region-btn { padding: 6px 14px; font-size: 12px; }
  .laws-search { width: 100%; margin-top: 8px; }
  .laws-search input { width: 100%; flex: 1; font-size: 13px; padding: 8px 12px; }
  .laws-search button { padding: 8px 14px; font-size: 12px; }

  .law-item { padding: 12px 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .law-item .law-index { width: 26px; height: 26px; font-size: 11px; margin-right: 0; }
  .law-item .law-title { font-size: 14px; white-space: normal; line-height: 1.5; }
  .law-item .law-meta { flex-wrap: wrap; gap: 8px; font-size: 11px; }
  .law-item .law-type-badge { margin-left: 0; font-size: 10px; padding: 1px 6px; align-self: flex-start; }

  .laws-list { max-height: none; }
  .laws-footer { padding: 12px 14px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .laws-pagination button { padding: 6px 10px; font-size: 12px; }

  /* 法律详情页手机端 */
  .law-content-display { font-size: 14px; line-height: 1.9; }
  .law-clause { padding: 12px 14px; margin-bottom: 10px; }
  .clause-actions { gap: 6px; }
  .clause-btn { width: 36px; height: 36px; font-size: 18px; }
  .annotation-badge { font-size: 12px; padding: 6px 10px; }
  .modal-content { padding: 20px; max-width: 95%; }
  .sidebar-card { padding: 16px; }

  /* 联系区域手机端 */
  .contact-section { padding: 36px 0; }
  .contact-grid { gap: 28px; }
  .contact-info h3 { font-size: 20px; }
  .contact-form { padding: 20px; }
  .contact-form h3 { font-size: 18px; }
  .contact-item .icon { width: 38px; height: 38px; font-size: 17px; }
  .contact-item .value { font-size: 14px; }

  /* 页脚手机端 */
  .footer { padding: 32px 0 20px; }
  .footer-grid { gap: 20px; margin-bottom: 20px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 14px; }
  .footer-col a { font-size: 13px; margin-bottom: 8px; }
  .footer-bottom { font-size: 12px; padding-top: 16px; }

  /* 文章详情页手机端 */
  .article-detail { margin-top: 56px; padding: 24px 0; }
  .article-detail-header h1 { font-size: 20px; }
  .article-detail-meta { flex-wrap: wrap; gap: 12px; font-size: 13px; }
  .article-detail-content { font-size: 15px; line-height: 1.9; }
  .article-detail-content h3 { font-size: 17px; }

  /* 返回顶部手机端 */
  .back-to-top { width: 40px; height: 40px; font-size: 16px; bottom: 16px; right: 16px; }

  /* 弹窗手机端 */
  .modal-content { padding: 20px 16px; max-width: 94%; max-height: 85vh; }
}

/* 超小屏幕（480px以下）优化 */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }

  .logo-text .slogan { display: none; }
  .logo-text .name { font-size: 14px; }
  .logo-icon { width: 32px; height: 32px; font-size: 16px; }

  .hero-text h1 { font-size: 19px; }
  .hero-text .subtitle { font-size: 13px; }
  .hero-card { padding: 16px; }
  .stat-row .stat-value { font-size: 18px; }
  .stat-row .stat-label { font-size: 11px; }

  .section-header h2 { font-size: 18px; }
  .practice-card { padding: 20px 16px; }
  .practice-card h3 { font-size: 16px; }

  .about-image { max-width: 180px; }
  .about-image .img-placeholder { font-size: 48px; }
  .about-image .badge { padding: 8px 16px; font-size: 12px; }

  .law-item .law-title { font-size: 13px; }
  .laws-search input { font-size: 12px; }

  .contact-item { gap: 12px; }
  .contact-item .icon { width: 34px; height: 34px; font-size: 15px; }

  .modal-content { padding: 16px 14px; }
  .clause-btn { width: 34px; height: 34px; font-size: 16px; }

  .footer-grid { gap: 16px; }
  .footer-bottom { font-size: 11px; }
}

/* 平板端优化（769px-1024px） */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .hero-text h1 { font-size: 36px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 大屏桌面自适应 ========== */

/* 1440px+ 大屏笔记本/小屏桌面显示器 */
@media (min-width: 1440px) {
  body { font-size: 16px; }
  .header-inner { height: 76px; }
  .logo-icon { width: 48px; height: 48px; font-size: 24px; }
  .logo-text .name { font-size: 19px; }
  .logo-text .slogan { font-size: 12px; }
  .nav a { padding: 8px 18px; font-size: 16px; }
  .hero { margin-top: 76px; }
  .hero-card { max-width: 380px; padding: 36px; }
  .hero-card h3 { font-size: 26px; }
  .stat-row .stat-value { font-size: 32px; }
  .practice-card { padding: 36px 28px; }
  .practice-card h3 { font-size: 20px; }
  .practice-icon { width: 60px; height: 60px; font-size: 28px; }
  .article-card .card-body { padding: 28px; }
  .article-card h3 { font-size: 18px; }
  .law-item { padding: 18px 36px; }
  .law-item .law-title { font-size: 16px; }
  .laws-header { padding: 32px 36px; }
  .laws-filters { padding: 22px 36px; }
  .laws-footer { padding: 18px 36px; }
  .contact-form { padding: 36px; }
  .footer { padding: 56px 0 28px; }
  .modal-content { max-width: 560px; padding: 36px; }
}

/* 1680px+ 全高清显示器 */
@media (min-width: 1680px) {
  body { font-size: 17px; }
  .header-inner { height: 80px; }
  .logo-icon { width: 52px; height: 52px; font-size: 26px; }
  .logo-text .name { font-size: 20px; }
  .nav a { padding: 10px 22px; font-size: 17px; }
  .hero { margin-top: 80px; min-height: 680px; }
  .hero-card { max-width: 420px; padding: 40px; }
  .hero-card h3 { font-size: 28px; }
  .hero-card .label { font-size: 14px; }
  .stat-row .stat-value { font-size: 36px; }
  .stat-row .stat-label { font-size: 14px; }
  .practice-card { padding: 40px 32px; }
  .practice-icon { width: 64px; height: 64px; font-size: 30px; margin-bottom: 24px; }
  .practice-card h3 { font-size: 21px; }
  .practice-card p { font-size: 15px; }
  .article-card .card-body { padding: 32px; }
  .article-card h3 { font-size: 19px; }
  .article-card .card-summary { font-size: 15px; }
  .law-item { padding: 20px 40px; }
  .law-item .law-title { font-size: 17px; }
  .law-item .law-meta { font-size: 13px; }
  .laws-header { padding: 36px 40px; }
  .laws-header h3 { font-size: 26px; }
  .laws-header p { font-size: 15px; }
  .laws-filters { padding: 24px 40px; }
  .law-type-btn { padding: 8px 20px; font-size: 14px; }
  .law-region-btn { padding: 10px 24px; font-size: 15px; }
  .laws-search input { width: 260px; padding: 8px 16px; font-size: 14px; }
  .laws-search button { padding: 8px 20px; font-size: 14px; }
  .laws-footer { padding: 20px 40px; font-size: 14px; }
  .laws-list { max-height: 700px; }
  .contact-form { padding: 40px; }
  .contact-form h3 { font-size: 24px; }
  .contact-info h3 { font-size: 26px; }
  .contact-item .icon { width: 48px; height: 48px; font-size: 22px; }
  .contact-item .value { font-size: 18px; }
  .footer { padding: 64px 0 32px; }
  .footer-col h4 { font-size: 16px; }
  .footer-col a { font-size: 15px; }
  .sidebar-card { padding: 24px; }
  .sidebar-card h4 { font-size: 16px; }
  .modal-content { max-width: 600px; padding: 40px; }
  .law-clause { padding: 20px 24px; margin-bottom: 14px; }
  .clause-btn { width: 36px; height: 36px; font-size: 18px; }
}

/* 1920px+ FHD/2K显示器 */
@media (min-width: 1920px) {
  body { font-size: 18px; line-height: 1.8; }
  .header-inner { height: 84px; }
  .logo-icon { width: 56px; height: 56px; font-size: 28px; }
  .logo-text .name { font-size: 22px; }
  .logo-text .slogan { font-size: 13px; letter-spacing: 3px; }
  .nav a { padding: 10px 24px; font-size: 18px; }
  .nav-cta { padding: 10px 28px !important; font-size: 16px; }
  .hero { margin-top: 84px; min-height: 760px; }
  .hero-card { max-width: 460px; padding: 44px; border-radius: 20px; }
  .hero-card h3 { font-size: 30px; }
  .hero-card .label { font-size: 15px; }
  .stat-row .stat-value { font-size: 40px; }
  .stat-row .stat-label { font-size: 15px; }
  .hero-tag { font-size: 14px; padding: 8px 20px; }
  .btn { padding: 14px 32px; font-size: 17px; }
  .practice-card { padding: 44px 36px; border-radius: 12px; }
  .practice-icon { width: 68px; height: 68px; font-size: 32px; border-radius: 14px; margin-bottom: 28px; }
  .practice-card h3 { font-size: 22px; }
  .practice-card p { font-size: 16px; }
  .practice-card .learn-more { font-size: 15px; }
  .article-card .card-body { padding: 36px; }
  .article-card h3 { font-size: 20px; }
  .article-card .card-summary { font-size: 16px; }
  .article-card .card-category { font-size: 13px; padding: 4px 12px; }
  .law-item { padding: 22px 44px; }
  .law-item .law-title { font-size: 18px; }
  .law-item .law-index { width: 36px; height: 36px; font-size: 15px; }
  .laws-header { padding: 40px 44px; }
  .laws-header h3 { font-size: 28px; }
  .laws-header p { font-size: 16px; }
  .laws-filters { padding: 26px 44px; }
  .law-type-btn { padding: 8px 22px; font-size: 15px; }
  .law-region-btn { padding: 10px 26px; font-size: 16px; }
  .laws-search input { width: 300px; padding: 10px 18px; font-size: 15px; }
  .laws-search button { padding: 10px 22px; font-size: 15px; }
  .laws-footer { padding: 22px 44px; font-size: 15px; }
  .laws-list { max-height: 800px; }
  .laws-container { border-radius: 16px; }
  .contact-form { padding: 44px; border-radius: 16px; }
  .contact-form h3 { font-size: 26px; }
  .contact-info h3 { font-size: 28px; }
  .contact-item .icon { width: 52px; height: 52px; font-size: 24px; border-radius: 12px; }
  .contact-item .value { font-size: 20px; }
  .footer { padding: 72px 0 36px; }
  .footer-col h4 { font-size: 17px; }
  .footer-col a { font-size: 16px; }
  .footer-brand p { font-size: 15px; }
  .sidebar-card { padding: 28px; }
  .sidebar-card h4 { font-size: 17px; }
  .modal-content { max-width: 640px; padding: 44px; border-radius: 16px; }
  .law-clause { padding: 22px 28px; margin-bottom: 16px; border-radius: 10px; }
  .clause-btn { width: 40px; height: 40px; font-size: 20px; }
  .annotation-badge { font-size: 15px; padding: 10px 16px; }
  .laws-tabs .laws-tab { padding: 12px 28px; font-size: 16px; }
}

/* 2560px+ 4K/超宽屏显示器 */
@media (min-width: 2560px) {
  body { font-size: 20px; line-height: 1.9; }
  .container { max-width: 2000px; padding: 0 60px; }
  .header-inner { height: 92px; }
  .logo-icon { width: 64px; height: 64px; font-size: 32px; border-radius: 10px; }
  .logo-text .name { font-size: 26px; }
  .logo-text .slogan { font-size: 14px; }
  .nav a { padding: 12px 30px; font-size: 20px; }
  .nav-cta { padding: 12px 36px !important; font-size: 18px; }
  .hero { margin-top: 92px; min-height: 880px; }
  .hero-content { max-width: 2000px; padding: 80px 60px; gap: 64px; }
  .hero-card { max-width: 540px; padding: 52px; border-radius: 24px; }
  .hero-card h3 { font-size: 36px; }
  .hero-card .label { font-size: 16px; }
  .stat-row .stat-value { font-size: 48px; }
  .stat-row .stat-label { font-size: 16px; }
  .stat-row { margin-bottom: 20px; padding-bottom: 20px; }
  .hero-tag { font-size: 15px; padding: 10px 24px; }
  .btn { padding: 16px 40px; font-size: 19px; border-radius: 8px; }
  .practice-card { padding: 52px 44px; border-radius: 16px; }
  .practice-icon { width: 80px; height: 80px; font-size: 38px; border-radius: 18px; margin-bottom: 32px; }
  .practice-card h3 { font-size: 26px; }
  .practice-card p { font-size: 18px; }
  .practice-card .learn-more { font-size: 17px; }
  .article-card .card-body { padding: 40px; }
  .article-card h3 { font-size: 22px; }
  .article-card .card-summary { font-size: 17px; }
  .law-item { padding: 26px 52px; }
  .law-item .law-title { font-size: 20px; }
  .law-item .law-index { width: 44px; height: 44px; font-size: 18px; }
  .law-item .law-meta { font-size: 15px; }
  .laws-header { padding: 48px 52px; }
  .laws-header h3 { font-size: 32px; }
  .laws-header p { font-size: 18px; }
  .laws-filters { padding: 32px 52px; }
  .law-type-btn { padding: 10px 28px; font-size: 17px; }
  .law-region-btn { padding: 12px 32px; font-size: 18px; }
  .laws-search input { width: 360px; padding: 12px 22px; font-size: 17px; }
  .laws-search button { padding: 12px 28px; font-size: 17px; }
  .laws-footer { padding: 26px 52px; font-size: 17px; }
  .laws-list { max-height: 900px; }
  .laws-container { border-radius: 20px; }
  .contact-form { padding: 52px; border-radius: 20px; }
  .contact-form h3 { font-size: 30px; }
  .contact-info h3 { font-size: 32px; }
  .contact-item .icon { width: 60px; height: 60px; font-size: 28px; border-radius: 14px; }
  .contact-item .value { font-size: 24px; }
  .contact-item .label { font-size: 15px; }
  .footer { padding: 80px 0 40px; }
  .footer-col h4 { font-size: 19px; }
  .footer-col a { font-size: 17px; }
  .footer-brand p { font-size: 16px; }
  .sidebar-card { padding: 32px; }
  .sidebar-card h4 { font-size: 19px; }
  .modal-content { max-width: 720px; padding: 52px; border-radius: 20px; }
  .law-clause { padding: 28px 36px; margin-bottom: 20px; border-radius: 12px; }
  .clause-btn { width: 48px; height: 48px; font-size: 24px; }
  .annotation-badge { font-size: 17px; padding: 12px 20px; }
  .laws-tabs .laws-tab { padding: 14px 36px; font-size: 18px; }
  .back-to-top { width: 56px; height: 56px; font-size: 24px; bottom: 40px; right: 40px; }
}

/* ========== 前端附件展示 ========== */
.frontend-attachments {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.frontend-attachments h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 16px 0;
}
.fa-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.fa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}
.fa-item:hover {
  border-color: #1a56db;
  box-shadow: 0 2px 10px rgba(26, 86, 219, 0.1);
  transform: translateY(-1px);
}
.fa-icon { font-size: 28px; flex-shrink: 0; width: 36px; text-align: center; }
.fa-info { min-width: 0; flex: 1; }
.fa-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-size { font-size: 12px; color: #999; margin-top: 2px; }
.fa-download { flex-shrink: 0; color: #1a56db; font-size: 13px; font-weight: 500; }

@media (max-width: 768px) {
  .frontend-attachments { margin: 24px 16px 0; padding: 20px; }
  .fa-list { grid-template-columns: 1fr; }
}
