/* ==========================================================================
   工伤专题页 - 上海川汇律师事务所
   样式文件
   ========================================================================== */

/* ------------------------------------------
   1. CSS 变量 & 重置
   ------------------------------------------ */
:root {
  --primary: #8B1A1A;
  --primary-light: #C0392B;
  --primary-dark: #4A0E0E;
  --accent: #E74C3C;
  --accent-hover: #CB4335;
  --gold: #C8860C;
  --gold-light: #E8B830;
  --bg-light: #FFF5F5;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a5a;
  --text-light: #7a7a8a;
  --border: #e0e3e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --font: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }

/* ------------------------------------------
   2. 按钮
   ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192,57,43,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-call {
  background: var(--gold);
  color: var(--text-dark);
}

.btn-call:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,160,23,0.4);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ------------------------------------------
   3. 头部导航
   ------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.header-logo .logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.header-logo .logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.9rem;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.header-nav a:hover { color: var(--primary); }
.header-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ------------------------------------------
   4. Hero 区域
   ------------------------------------------ */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  color: var(--gold);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-form {
  display: flex;
  justify-content: center;
}

.hero-form-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-form-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  text-align: center;
}

.hero-form-card > p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-bottom: 18px;
}

.hero-form-group {
  margin-bottom: 12px;
}

.hero-form-group input,
.hero-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font);
  transition: var(--transition);
}

.hero-form-group input::placeholder,
.hero-form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.hero-form-group input:focus,
.hero-form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(200,134,12,0.15);
}

.hero-form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.hero-form-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ------------------------------------------
   5. 快速导航卡片
   ------------------------------------------ */
.quick-nav {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-nav-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.quick-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.quick-nav-item .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.quick-nav-item .name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

/* ------------------------------------------
   6. 内容卡片
   ------------------------------------------ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-icon.red { background: #fde8e8; }
.card-icon.blue { background: #fde8e8; }
.card-icon.green { background: #e8f8e8; }
.card-icon.gold { background: #fef5e8; }

.card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p, .card li {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ------------------------------------------
   7. 工伤认定 - 情形列表
   ------------------------------------------ */
.condition-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.condition-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary-light);
}

.condition-item .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  min-width: 30px;
}

.condition-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.condition-item p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ------------------------------------------
   8. 流程步骤
   ------------------------------------------ */
.process-steps {
  position: relative;
  padding: 0 20px;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.process-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-number.gold { background: var(--gold); color: var(--text-dark); }

.step-content {
  padding-top: 18px;
  flex: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.step-content ul {
  margin-top: 8px;
}

.step-content ul li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.step-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* ------------------------------------------
   9. 赔偿标准表格
   ------------------------------------------ */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table thead {
  background: var(--primary);
  color: #fff;
}

table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

table tbody tr:hover {
  background: #f0f4f8;
}

table tbody tr:nth-child(even) {
  background: #fafbfc;
}

table tbody tr:nth-child(even):hover {
  background: #f0f4f8;
}

/* ------------------------------------------
   10. 赔偿项目列表
   ------------------------------------------ */
.compensation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.comp-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.comp-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.comp-item .icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.comp-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.comp-item p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ------------------------------------------
   11. 计算器
   ------------------------------------------ */
.calculator {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.calc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--accent);
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139,26,26,0.1);
}

.form-group .help-text {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-result {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  color: #fff;
  display: none;
}

.calc-result.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.calc-result .result-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.calc-result .result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.93rem;
}

.calc-result .result-item:last-child {
  border-bottom: none;
}

.calc-result .result-total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.calc-result .result-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  text-align: center;
}

/* ------------------------------------------
   12. FAQ 手风琴
   ------------------------------------------ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  user-select: none;
}

.faq-question:hover {
  background: #f8f9fb;
}

.faq-question .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--text-light);
  transition: var(--transition);
  flex-shrink: 0;
  margin-top: 4px;
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ------------------------------------------
   13. 表单
   ------------------------------------------ */
.form-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
}

.form-section .section-title { color: #fff; }
.form-section .section-subtitle { color: rgba(255,255,255,0.75); }
.form-section .section-divider { background: var(--gold); }

.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.15);
}

.form-card .form-group label {
  color: rgba(255,255,255,0.9);
}

.form-card .form-group input,
.form-card .form-group textarea,
.form-card .form-group select {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.form-card .form-group input::placeholder,
.form-card .form-group textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-card .form-group input:focus,
.form-card .form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

.form-card .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  resize: vertical;
  min-height: 120px;
}

.form-card .btn {
  width: 100%;
}

.form-card .form-privacy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 12px;
}

/* ------------------------------------------
   14. 底部
   ------------------------------------------ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer ul li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.footer ul li a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item .icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer .footer-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--text-dark);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  margin-top: 8px;
}

.footer .footer-call-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ------------------------------------------
   15. 浮动按鈕
   ------------------------------------------ */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.floating-btn.call {
  background: var(--gold);
  color: var(--text-dark);
}

.floating-btn.form {
  background: var(--accent);
}

.floating-btn:hover {
  transform: scale(1.15);
}

/* 悬浮按钮内图标 */
.floating-icon {
  display: block;
  width: 22px;
  height: 22px;
  position: relative;
}

.phone-icon::before,
.phone-icon::after {
  content: '';
  position: absolute;
}

.phone-icon {
  border: 2px solid #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.phone-icon::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.msg-icon::before {
  content: '';
  width: 18px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 3px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.msg-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  position: absolute;
  bottom: 2px;
  right: 0;
  transform: rotate(-45deg);
}

/* ------------------------------------------
   16. 动画
   ------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 4px 25px rgba(0,0,0,0.4); }
  100% { box-shadow: 0 4px 15px rgba(0,0,0,0.25); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------
   17. 提示消息
   ------------------------------------------ */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-left: 4px solid #27ae60; }
.toast.error { border-left: 4px solid var(--accent); }

/* ------------------------------------------
   18. 响应式设计
   ------------------------------------------ */

/* 平板 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-form {
    max-width: 100%;
    margin: 0;
  }

  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 手机 */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .section { padding: 60px 0; }

  .section-title { font-size: 1.6rem; }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    gap: 0;
  }

  .header-nav.show {
    display: flex;
  }

  .header-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .header-nav a:last-child { border-bottom: none; }

  .header-nav a::after { display: none; }

  .header-actions .btn { display: none; }

  .hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 1rem; }

  .hero-form-card { max-width: 100%; }

  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quick-nav-item { padding: 16px 12px; }
  .quick-nav-item .icon { font-size: 1.5rem; }

  .condition-list {
    grid-template-columns: 1fr;
  }

  .compensation-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .calculator { padding: 24px; }

  .form-card { padding: 24px; }

  .process-steps::before { left: 30px; }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer .footer-call-btn {
    width: 100%;
    justify-content: center;
  }

  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .floating-btn {
  width: 46px;
  height: 46px;
}

  table { font-size: 0.82rem; }
  table thead th, table tbody td { padding: 10px 12px; }
}

/* 小屏手机 */
@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-form-card { padding: 20px 16px; }
  .quick-nav-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------
   19. 公告/提示条
   ------------------------------------------ */
.notice-bar {
  background: var(--gold);
  color: var(--text-dark);
  padding: 8px 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ------------------------------------------
   20. 法律依据 / 引用块
   ------------------------------------------ */
.law-quote {
  background: #fef0f0;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.law-quote p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.law-quote .source {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* 提醒框 */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 16px 0;
  font-size: 0.93rem;
  line-height: 1.6;
}

.alert-tip {
  background: #fde8e8;
  border: 1px solid #f5b7b1;
  color: var(--primary);
}

.alert-warning {
  background: #fef5e8;
  border: 1px solid #f0d060;
  color: #8a6d1b;
}

.alert-success {
  background: #e8f8e8;
  border: 1px solid #a3d9a5;
  color: #1e7a2e;
}
