/* ===== 茄快讯 - 公共样式（合并优化版） ===== */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #334155;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav（各页一致） */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: fixed; top: 0; width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; }
.logo {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-subtitle { font-size: 0.7rem; color: #64748b; font-weight: 500; line-height: 1.3; max-width: 280px; letter-spacing: 0.3px; opacity: 0.9; position: relative; padding: 0.2rem 0; } .nav-subtitle::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 1px; background: linear-gradient(90deg, #3b82f6, transparent); } /* 移动端优化 */ @media (max-width: 768px) { .nav-subtitle { font-size: 0.6rem; max-width: 140px; line-height: 1.2; } .nav-subtitle::after { width: 25px; } }
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a {
  color: #64748b; text-decoration: none; transition: all 0.3s ease; position: relative;
  font-weight: 500; padding: 0.4rem 0; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: #3b82f6; }
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
  background: linear-gradient(90deg, #3b82f6, #06b6d4); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-menu-toggle { display: none; flex-direction: column; cursor: pointer; padding: 0.4rem; }
.mobile-menu-toggle span {
  width: 22px; height: 2.5px; background: #3b82f6; margin: 2.5px 0; transition: 0.3s; border-radius: 2px;
}

/* Mobile menu animation (各页通用) */
.mobile-menu-toggle.active span:nth-child(1){ transform: rotate(-45deg) translate(-5px,6px); }
.mobile-menu-toggle.active span:nth-child(2){ opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3){ transform: rotate(45deg) translate(-5px,-6px); }

/* Buttons（CTA） */
.cta-button {
  display: inline-block; padding: 15px 35px; color: #fff; text-decoration: none; border-radius: 25px;
  font-weight: 600; transition: all 0.3s ease; font-size: 1rem; position: relative; overflow: hidden; border: none; cursor: pointer;
}
.cta-button.primary { background: linear-gradient(135deg, #3b82f6, #06b6d4); box-shadow: 0 4px 15px rgba(59,130,246,0.4); }
.cta-button.secondary { background: linear-gradient(135deg, #8b5cf6, #a855f7); box-shadow: 0 4px 15px rgba(139,92,246,0.4); }
.cta-button:hover { transform: translateY(-2px); }
.cta-button.primary:hover { box-shadow: 0 8px 25px rgba(59,130,246,0.5); }
.cta-button.secondary:hover { box-shadow: 0 8px 25px rgba(139,92,246,0.5); }
.cta-button::before{
  content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition:left 0.6s ease;
}
.cta-button:hover::before{ left:100%; }

/* Sections / Cards（复用） */
.section { padding: 5rem 0; position: relative; overflow: hidden; }
.section::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(circle at 10% 20%, rgba(59,130,246,0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(6,182,212,0.04) 0%, transparent 50%);
  pointer-events:none;
}
.section:nth-child(even){ background: rgba(255,255,255,0.5); }
.section:nth-child(even)::before{
  background:
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(59,130,246,0.03) 0%, transparent 50%);
}
.section h2{
  font-size:2.5rem; text-align:center; margin-bottom:3rem; color:#1e293b; position:relative; font-weight:700; z-index:2;
}
.section h2::before{
  content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:200px; height:200px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%); border-radius:50%; z-index:-1;
  animation:titleGlow 4s ease-in-out infinite;
}
.section h2::after{
  content:''; position:absolute; bottom:-15px; left:50%; transform:translateX(-50%);
  width:80px; height:4px; background: linear-gradient(90deg, #3b82f6, #06b6d4); border-radius:2px;
}
@keyframes titleGlow{
  0%,100%{ opacity:.5; transform:translate(-50%,-50%) scale(1); }
  50%{ opacity:.8; transform:translate(-50%,-50%) scale(1.1); }
}

.content-section{
  background:#fff; border-radius:20px; padding:2.5rem; margin-bottom:2rem;
  box-shadow:0 4px 25px rgba(0,0,0,0.05); position:relative; overflow:hidden; border:1px solid #e2e8f0;
}
.content-section::before{
  content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(59,130,246,0.05), transparent); transition:left .6s ease;
}
.content-section:hover::before{ left:100%; }

.section-title{
  font-size:1.8rem; color:#1e293b; margin-bottom:1.5rem; border-bottom:2px solid #3b82f6; padding-bottom:.5rem; font-weight:700;
}

/* 跨页标题（多页复用） */
.page-title{
  text-align:center; font-size:2rem; margin-bottom:1rem; color:#1e293b; font-weight:700;
}
.page-subtitle{
  text-align:center; font-size:1rem; color:#64748b; margin-bottom:2rem;
}

/* 通用响应式（含移动端导航展开） */
@media (max-width: 768px){
  .container{ padding: 0 15px; }
  .nav-brand {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-subtitle {
    font-size: 0.7rem;
    max-width: 160px;
    display: block; /* Always show on mobile */
    line-height: 1.1;
  }
  
  .nav-links{
    display:none; position:absolute; top:100%; left:0; width:100%;
    background:rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction:column; padding:1rem; box-shadow:0 4px 20px rgba(0,0,0,0.1); gap:0;
  }
  .nav-links.active{ display:flex; }
  .nav-links li{ width:100%; text-align:center; padding:.5rem 0; }
  .nav-links a{ display:block; padding:.8rem; border-radius:8px; }
  .nav-links a:hover{ background:#f1f5f9; }
  .mobile-menu-toggle{ display:flex; }
}

/* Adjust for very small screens */
@media (max-width: 480px) {
  .nav-subtitle {
    font-size: 0.8rem;
    max-width: 160px;
    line-height: 1.1;
  }
}

/* Special styling for cigarinfo.html which has different header structure */
.header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}
