/* ====== 雨洛妈品牌官网 - 共享样式 ====== */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f5f4f0;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-secondary: #86868b;
  --text-tertiary: #aeaeb2;
  --accent: #b8452e;
  --accent-hover: #9a3825;
  --accent-light: rgba(184,69,46,0.06);
  --border: rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.7; font-size: 17px;
  font-weight: 400; letter-spacing: -0.01em;
}

/* Nav */
nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background: rgba(251,250,247,0.8); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  padding: 16px 0; transition: all var(--transition);
}
nav.scrolled{border-bottom-color: var(--border);padding:12px 0}
nav .container{display:flex;align-items:center;justify-content:space-between}
nav .logo{font-size:1.2em;font-weight:600;color:var(--text);text-decoration:none;letter-spacing:-0.02em}
nav .links{display:flex;gap:32px;list-style:none}
nav .links a{color:var(--text-secondary);text-decoration:none;font-size:0.9em;font-weight:450;transition:color 0.2s}
nav .links a:hover{color:var(--text)}

/* Hero */
.hero{
  background: var(--bg);
  padding: 180px 0 100px; text-align: center;
  position: relative; overflow: hidden;
}
.hero .tagline{
  font-size: 0.85em; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
.hero h1{
  font-size: clamp(2.8em, 6vw, 5em); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px;
  color: var(--text);
}
.hero .subtitle{
  font-size: clamp(1.05em, 1.5vw, 1.25em);
  color: var(--text-secondary); font-weight: 400;
  max-width: 500px; margin: 0 auto 32px; line-height: 1.5;
}
.hero .cta-group{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.hero .cta{
  display:inline-block;background:var(--accent);color:#fff;
  padding:14px 32px;border-radius:50px;font-weight:560;
  text-decoration:none;font-size:0.95em;letter-spacing:-0.01em;
  transition: all var(--transition);
}
.hero .cta:hover{background:var(--accent-hover);transform:translateY(-1px)}
.hero .cta-outline{
  display:inline-block;background:transparent;color:var(--text);
  padding:14px 32px;border-radius:50px;font-weight:500;
  text-decoration:none;font-size:0.95em;border:1px solid var(--border);
  transition: all var(--transition);
}
.hero .cta-outline:hover{border-color:var(--text-secondary)}

/* Hero product image */
.hero-image{
  margin-top: 64px; max-width: 900px; margin-left: auto; margin-right: auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img{width:100%;display:block}

/* Sections */
section{padding: 120px 0}
section.alt{background: var(--bg-alt)}
.section-label{
  font-size: 0.8em; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; text-align: center; margin-bottom: 12px;
}
.section-title{
  font-size: clamp(1.8em, 3.5vw, 2.5em); font-weight: 600;
  letter-spacing: -0.025em; text-align: center;
  margin-bottom: 12px; color: var(--text);
}
.section-sub{
  text-align: center; color: var(--text-secondary);
  font-size: 1.05em; max-width: 480px; margin: 0 auto 56px; line-height: 1.5;
}

/* Product grid */
.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto;
}
.product-card{
  background: var(--surface); border-radius: var(--radius);
  padding: 32px 20px 28px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition); cursor: default;
  text-decoration: none; color: inherit; display: block;
}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-card .icon{font-size:2.4em;margin-bottom:14px}
.product-card .name{font-weight:600;font-size:1em;letter-spacing:-0.01em;margin-bottom:4px}
.product-card .desc{color:var(--text-secondary);font-size:0.85em;line-height:1.5}
.product-card .price{color:var(--accent);font-weight:500;font-size:0.9em;margin-top:10px}

/* Gallery */
.gallery-scroll{
  display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;padding:0 24px 20px;
  scrollbar-width:none; max-width:1100px; margin:0 auto;
}
.gallery-scroll::-webkit-scrollbar{display:none}
.gallery-scroll img{
  height:420px;width:auto;border-radius:12px;
  scroll-snap-align:start;transition:transform var(--transition);
  box-shadow:var(--shadow-sm);cursor:pointer;flex-shrink:0;
}
.gallery-scroll img:hover{transform:scale(1.02)}
.gallery-scroll img.portrait{height:420px}
.gallery-scroll img.landscape{height:320px}

/* Features */
.features-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1000px; margin: 0 auto;
}
.feature-card{
  background: var(--surface); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display:flex; gap:18px; align-items:flex-start;
  transition: all var(--transition);
}
.feature-card:hover{box-shadow:var(--shadow)}
.feature-card .ficon{font-size:1.8em;flex-shrink:0}
.feature-card h4{font-size:1em;font-weight:580;margin-bottom:4px;letter-spacing:-0.01em}
.feature-card p{color:var(--text-secondary);font-size:0.88em;line-height:1.55}

/* Story */
.story-block{max-width:640px;margin:0 auto;text-align:center}
.story-block p{color:var(--text-secondary);margin-bottom:14px;font-size:1.05em;line-height:1.75}
.story-block .quote{
  font-size:1.35em;color:var(--accent);font-weight:500;
  padding:28px 0;margin:32px 0;line-height:1.4;letter-spacing:-0.01em;
  position:relative;
}
.story-block .quote::before{content:"";display:block;width:40px;height:2px;background:var(--accent);margin:0 auto 24px}

/* FAQ */
.faq-list{max-width:640px;margin:0 auto}
.faq-item{
  background:var(--surface);border-radius:var(--radius-sm);
  padding:22px 24px;margin-bottom:12px;
  box-shadow:var(--shadow-sm);border:1px solid var(--border);
  transition:all var(--transition);
}
.faq-item:hover{box-shadow:var(--shadow)}
.faq-item .q{font-weight:560;color:var(--text);margin-bottom:6px;font-size:0.95em}
.faq-item .a{color:var(--text-secondary);font-size:0.88em;line-height:1.6}

/* Articles */
.blog-grid{
  display:grid;grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:20px;max-width:1000px;margin:0 auto;
}
.blog-card{
  background:var(--surface);border-radius:var(--radius);
  padding:28px;box-shadow:var(--shadow-sm);border:1px solid var(--border);
  text-decoration:none;color:inherit;display:block;
  transition:all var(--transition);
}
.blog-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.blog-card .label{font-size:0.75em;letter-spacing:0.08em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.blog-card h4{font-size:1.1em;font-weight:580;margin-bottom:6px;letter-spacing:-0.01em}
.blog-card p{color:var(--text-secondary);font-size:0.88em;line-height:1.55}

/* Trust bar */
.trust-bar{
  display:flex;justify-content:center;gap:48px;flex-wrap:wrap;
  max-width:800px;margin:0 auto;text-align:center;
}
.trust-item .num{font-size:1.8em;font-weight:600;color:var(--accent);letter-spacing:-0.02em}
.trust-item .label{color:var(--text-secondary);font-size:0.85em;margin-top:2px}

/* CTA */
.cta-section{text-align:center;padding:100px 0}
.cta-section .btn{
  display:inline-block;background:var(--accent);color:#fff;
  padding:16px 40px;border-radius:50px;font-weight:560;
  text-decoration:none;font-size:1em;letter-spacing:-0.01em;
  transition:all var(--transition);
}
.cta-section .btn:hover{background:var(--accent-hover);transform:translateY(-2px)}

/* Footer */
footer{
  background:var(--bg-alt);text-align:center;padding:40px 0 32px;
  color:var(--text-tertiary);font-size:0.82em;
}
footer a{color:var(--text-secondary);text-decoration:none}
footer a:hover{color:var(--text)}

/* Blog post/article pages */
.blog-post{max-width:680px;margin:0 auto;padding:120px 24px 60px}
.blog-post h1{font-size:2.2em;font-weight:600;letter-spacing:-0.03em;margin-bottom:6px;line-height:1.2}
.blog-post .meta{color:var(--text-tertiary);font-size:0.88em;margin-bottom:40px}
.blog-post h2{font-size:1.3em;font-weight:580;margin:40px 0 14px;letter-spacing:-0.015em}
.blog-post h3{font-size:1.1em;font-weight:560;margin:28px 0 10px}
.blog-post p{color:var(--text-secondary);margin-bottom:16px;line-height:1.75}
.blog-post ul,.blog-post ol{margin:8px 0 20px 20px;color:var(--text-secondary);line-height:1.75}
.blog-post li{margin-bottom:6px}
.blog-post table{width:100%;border-collapse:collapse;margin:20px 0;font-size:0.9em}
.blog-post th,.blog-post td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border)}
.blog-post th{font-weight:560;color:var(--text);background:var(--bg-alt)}
.blog-post td{color:var(--text-secondary)}
.blog-post .source{font-size:0.82em;color:var(--text-tertiary);margin-top:40px;padding-top:20px;border-top:1px solid var(--border)}
.blog-post a{color:var(--accent);text-decoration:none}

/* Animations */
.fade-up{opacity:0;transform:translateY(30px);transition:all 0.7s cubic-bezier(0.25,0.1,0.25,1)}
.fade-up.visible{opacity:1;transform:translateY(0)}

/* Lightbox */
.lightbox{
  display:none;position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.94);z-index:200;align-items:center;justify-content:center;cursor:pointer;
}
.lightbox.active{display:flex}
.lightbox img{max-width:92vw;max-height:92vh;border-radius:8px;object-fit:contain}
.lightbox .close-btn{position:absolute;top:24px;right:32px;color:#fff;font-size:2em;cursor:pointer;z-index:201;opacity:0.7;transition:opacity 0.2s}
.lightbox .close-btn:hover{opacity:1}

/* Mobile */
@media (max-width:768px){
  body{font-size:16px}
  nav .links{gap:20px}
  .hero{padding:140px 0 60px}
  .section-title{font-size:1.6em}
  section{padding:72px 0}
  .gallery-scroll img{height:320px}
  .gallery-scroll img.landscape{height:260px}
  .features-grid{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .trust-bar{gap:28px}
  .blog-post h1{font-size:1.6em}
  .blog-post{padding:100px 20px 40px}
}

@media (max-width:480px){
  .hero h1{font-size:2.2em}
  .hero .subtitle{font-size:0.95em}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .product-card{padding:24px 14px 20px}
  .gallery-scroll img{height:280px}
  .gallery-scroll img.landscape{height:220px}
}
