* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body { font-family: 'Noto Serif SC', serif; color: #333; background: #FAF6EF; overflow-x: clip; max-width: 100vw; margin: 0; padding: 0; }
section, header, footer, nav, main, aside, article { overflow-x: clip; max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }

:root {
  --gold: #B8860B;
  --gold-light: #D4AF37;
  --gold-pale: '#F5E6C8';
  --wine: '#722F37';
  --cream: '#FAF6EF';
  --dark: '#1E1810';
}

.navbar { transition: all 0.4s ease; background: rgba(30,24,16,0.9); backdrop-filter: blur(12px); }
.navbar.scrolled { background: rgba(30,24,16,0.98); box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.nav-link { position: relative; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 2px; background: var(--gold-light); transition: all 0.3s; transform: translateX(-50%); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }

.heart-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px auto; }
.heart-divider::before, .heart-divider::after { content: ''; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.heart-divider i { color: var(--gold); font-size: 18px; animation: heartBeat 1.5s ease-in-out infinite; }
@keyframes heartBeat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.2);} }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: white; padding: 14px 36px; border-radius: 50px; font-weight: 500; transition: all 0.4s; box-shadow: 0 6px 20px rgba(184,134,11,0.3); display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; text-decoration: none; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(184,134,11,0.45); color: white; }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); padding: 12px 34px; border-radius: 50px; font-weight: 500; transition: all 0.4s; display: inline-flex; align-items: center; gap: 8px; background: transparent; text-decoration: none; cursor: pointer; }
.btn-outline-gold:hover { background: var(--gold); color: white; transform: translateY(-3px); }

.float-btns { position: fixed; right: 24px; bottom: 30px; z-index: 99; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: white; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 6px 20px rgba(184,134,11,0.4); transition: all 0.3s; cursor: pointer; position: relative; }
.float-btn:hover { transform: scale(1.1) translateX(-4px); box-shadow: 0 8px 25px rgba(184,134,11,0.6); }
.float-btn.tip::after { content: attr(data-tip); position: absolute; right: 70px; background: var(--dark); color: white; padding: 6px 14px; border-radius: 6px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.3s; }
.float-btn.tip:hover::after { opacity: 1; right: 65px; }
.float-btn.call { animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(184,134,11,0.6);} 70%{box-shadow:0 0 0 15px rgba(184,134,11,0);} 100%{box-shadow:0 0 0 0 rgba(184,134,11,0);} }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s; }
.modal-content { background: white; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 40px; position: relative; animation: slideUp 0.4s; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes slideUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; font-size: 18px; }
.modal-close:hover { background: var(--wine); color: white; transform: rotate(90deg); }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; transition: all 0.3s; margin-top: 8px; font-family: inherit; }
.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,0.1); }

.breadcrumb { color: rgba(255,255,255,0.8); font-size: 15px; }
.breadcrumb a { color: var(--gold-light); transition: color 0.3s; }
.breadcrumb a:hover { color: white; }

/* 文章内容样式 */
.article-content h2 { font-size: 28px; font-weight: 700; color: var(--dark); margin: 40px 0 20px; padding-left: 16px; border-left: 4px solid var(--gold); font-family: 'Noto Serif SC', serif; }
.article-content h3 { font-size: 22px; font-weight: 600; color: var(--dark); margin: 30px 0 16px; }
.article-content p { margin-bottom: 18px; line-height: 1.9; color: #444; font-size: 16px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; }
.article-content li { margin-bottom: 10px; line-height: 1.8; }
.article-content blockquote { border-left: 4px solid var(--gold-light); background: var(--gold-pale); padding: 20px 24px; margin: 24px 0; border-radius: 0 8px 8px 0; }
.article-content blockquote p { margin: 0; color: var(--wine); font-style: italic; }
.article-content img { border-radius: 8px; margin: 24px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); width: 100%; }
.article-content .tip-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 20px; margin: 24px 0; }
.article-content .tip-box .tip-title { color: #b45309; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: 8px; overflow: hidden; }
.article-content th { background: var(--gold); color: white; padding: 12px 16px; text-align: left; font-weight: 500; }
.article-content td { padding: 12px 16px; border-bottom: 1px solid #eee; background: white; }
.article-content tr:hover td { background: var(--gold-pale); }

/* 时间线步骤 */
.timeline-step { display: flex; gap: 20px; margin-bottom: 24px; }
.timeline-step .step-num { width: 50px; height: 50px; min-width: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 20px; font-family: 'Playfair Display', serif; }
.timeline-step .step-content { flex: 1; background: white; padding: 20px 24px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.timeline-step .step-content h4 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.timeline-step .step-content p { margin: 0; color: #666; font-size: 15px; line-height: 1.7; }

/* 文章信息meta */
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #888; font-size: 14px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta .cat { padding: 3px 12px; background: var(--wine); color: white; border-radius: 20px; font-size: 12px; }

/* 侧边栏组件 */
.sidebar-widget { background: white; border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.sidebar-widget h3 { font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-pale); position: relative; }
.sidebar-widget h3::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: var(--gold); }

.popular-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; transition: all 0.3s; }
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { transform: translateX(4px); }
.popular-item .pop-num { width: 28px; height: 28px; min-width: 28px; border-radius: 6px; background: #f5f5f5; color: #999; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; }
.popular-item:nth-child(-n+3) .pop-num { background: var(--wine); color: white; }
.popular-item .pop-info h4 { font-size: 14px; line-height: 1.5; color: #333; margin-bottom: 4px; transition: color 0.3s; }
.popular-item:hover .pop-info h4 { color: var(--gold); }
.popular-item .pop-info .pop-meta { font-size: 12px; color: #999; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 14px; background: #f8f8f8; color: #666; border-radius: 20px; font-size: 13px; transition: all 0.3s; text-decoration: none; }
.tag-cloud a:hover { background: var(--gold); color: white; }

/* ========== 免费领备婚手册 专属卡片（深色渐变+高对比+精美设计） ========== */
.handbook-card {
  position: relative;
  background: linear-gradient(145deg, #2A1F14 0%, #4A2F1A 45%, #722F37 100%);
  border-radius: 14px;
  padding: 30px 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(114,47,55,0.25), 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.3);
}
.handbook-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
}
.handbook-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.2) 0%, transparent 70%);
}
.handbook-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 38px;
  transform: rotate(40deg);
  letter-spacing: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}
.handbook-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
  box-shadow: 0 4px 14px rgba(212,175,55,0.4);
  position: relative;
  z-index: 1;
}
.handbook-title {
  font-size: 19px;
  font-weight: 700;
  color: #F5E6C8 !important;
  text-align: center;
  margin-bottom: 12px !important;
  padding: 0 !important;
  border: none !important;
  position: relative;
  z-index: 1;
  letter-spacing: 1px;
}
.handbook-title::after { display: none !important; }
.handbook-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #E8DCC4 !important;
  text-align: center;
  margin-bottom: 18px;
  padding: 0 4px;
  position: relative;
  z-index: 1;
}
.handbook-form { position: relative; z-index: 1; }
.handbook-input-wrap {
  position: relative;
  margin-bottom: 12px;
}
.handbook-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #B8860B;
  font-size: 15px;
}
.handbook-input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid rgba(212,175,55,0.4);
  border-radius: 10px;
  background: rgba(255,255,255,0.95);
  font-size: 14px;
  font-family: inherit;
  color: #333;
  transition: all 0.3s;
  box-sizing: border-box;
}
.handbook-input-wrap input::placeholder { color: #999; }
.handbook-input-wrap input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
  background: #fff;
}
.handbook-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #E8C86E 0%, #D4AF37 50%, #B8860B 100%);
  color: #2A1F14 !important;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(212,175,55,0.45);
  transition: all 0.3s;
}
.handbook-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212,175,55,0.6);
  background: linear-gradient(135deg, #F5D98A, #DDB94A, #C99615);
}
.handbook-tips {
  text-align: center;
  font-size: 11px;
  color: rgba(245,230,200,0.7) !important;
  margin: 12px 0 0 !important;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.handbook-tips i { color: #D4AF37; margin-right: 4px; }

.cat-list li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { color: #555; transition: color 0.3s; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.cat-list li a:hover { color: var(--gold); }
.cat-list li .count { background: #f5f5f5; color: #999; padding: 2px 8px; border-radius: 10px; font-size: 12px; }

.prev-next { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; padding: 24px 0; margin: 40px 0; }
.prev-next a { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: white; border-radius: 8px; transition: all 0.3s; color: #333; text-decoration: none; }
.prev-next a:hover { background: var(--gold-pale); color: var(--gold); transform: translateX(4px); }
.prev-next a.next { justify-content: flex-end; }
.prev-next a.next:hover { transform: translateX(-4px); }

.related-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.4s; text-decoration: none; color: inherit; display: block; }
.related-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.related-card .thumb { height: 180px; overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.related-card:hover .thumb img { transform: scale(1.08); }
.related-card .body { padding: 16px; }
.related-card .body h4 { font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.5; transition: color 0.3s; }
.related-card:hover .body h4 { color: var(--gold); }
.related-card .body .date { font-size: 12px; color: #999; }

.share-box { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #eee; }
.share-box span { color: #888; font-size: 14px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: all 0.3s; }
.share-btn:hover { transform: translateY(-3px); }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.qq { background: #12b7f5; }

/* 移动端汉堡 */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 101; }
.hamburger span { width: 26px; height: 2px; background: white; transition: all 0.3s; border-radius: 2px; }
.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); }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px; height: 100vh; background: var(--dark); z-index: 100; transition: right 0.4s ease; padding: 80px 30px 30px; }
.mobile-menu.active { right: 0; }
.mobile-menu a { display: block; padding: 16px 0; color: white; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.1); transition: color 0.3s; text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold-light); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 99; display: none; }
.mobile-overlay.active { display: block; }

.toast { position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-20px); background: var(--dark); color: white; padding: 12px 28px; border-radius: 50px; z-index: 9999; opacity: 0; pointer-events: none; transition: all 0.4s; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1023px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none !important; }
  .desktop-cta { display: none !important; }
}
@media (max-width: 767px) {
  .hero-page { height: 280px !important; background-attachment: scroll !important; }
  .hero-page h1 { font-size: 26px !important; padding: 0 16px; }
  .breadcrumb { font-size: 13px; }
  section { padding: 50px 0 !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .article-content { padding: 24px 16px !important; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }
  .article-content p, .article-content li { font-size: 15px; }
  .timeline-step { gap: 12px; }
  .timeline-step .step-num { width: 40px; height: 40px; min-width: 40px; font-size: 16px; }
  .timeline-step .step-content { padding: 16px; }
  .prev-next { flex-direction: column; gap: 12px; }
  .related-grid { grid-template-columns: 1fr !important; }
  .modal-content { padding: 30px 20px; }
  .float-btns { right: 12px; bottom: 20px; gap: 10px; }
  .float-btn { width: 44px; height: 44px; font-size: 18px; }
  .float-btn.tip::after { display: none; }
  .article-meta { gap: 12px; font-size: 13px; }
  h2 { font-size: 24px !important; }
  .sidebar-widget { padding: 20px; }
  .handbook-card { padding: 26px 18px 22px; }
  .handbook-title { font-size: 17px !important; }
  .handbook-desc { font-size: 12px !important; }
  .handbook-btn { padding: 12px 16px; font-size: 14px; }
  .handbook-ribbon { top: 12px; right: -34px; font-size: 11px; padding: 3px 36px; }
}
@media (-webkit-touch-callout: none) {
  .hero-page, .cta-section { background-attachment: scroll !important; }
}