/* 海角社区 - 珊瑚礁与海洋风格设计系统 */
/* 独特的浅色背景 + 珊瑚色/海洋蓝配色 + 波浪形态 */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
body { 
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif; 
  overflow-x:hidden; 
  background: #faf8f5; 
  color: #2c3e4f;
}

/* 核心布局 */
.container { max-width:1200px; margin:0 auto; padding:0 24px; }
.section { padding:80px 0; position:relative; }
.section:nth-child(even) { 
  background: linear-gradient(135deg, #f8f4ef 0%, #eef5f8 100%); 
}

/* 导航 - 半透明白玻璃质感 */
.site-header { 
  position:fixed; top:0; left:0; width:100%; z-index:1000; 
  background: rgba(250,248,245,0.88); 
  backdrop-filter:blur(16px) saturate(1.2); 
  border-bottom: 1px solid rgba(64, 164, 180, 0.15); 
  box-shadow: 0 2px 20px rgba(64,164,180,0.06);
}
.header-inner { 
  display:flex; align-items:center; justify-content:space-between; 
  height:72px; max-width:1200px; margin:0 auto; padding:0 24px; 
}
.logo { 
  display:flex; align-items:center; gap:10px; 
  font-weight:700; font-size:1.3rem; text-decoration:none; 
  color: #1a4a5c; letter-spacing: 1px;
}
.logo-icon { 
  width:40px; height:40px; border-radius:50%; 
  background: linear-gradient(135deg, #f7a07b 0%, #e86b5e 100%); 
  display:flex; align-items:center; justify-content:center; 
  font-size:1.2rem; color:#fff; box-shadow: 0 4px 12px rgba(232,107,94,0.3);
}
.main-nav { display:flex; align-items:center; gap:32px; list-style:none; }
.main-nav a { 
  text-decoration:none; font-size:0.9rem; font-weight:500; 
  color: #2c3e4f; position:relative; padding:4px 0;
  transition: 0.3s ease;
}
.main-nav a::after {
  content:''; position:absolute; bottom:0; left:0; width:0; height:2px;
  background: linear-gradient(90deg, #f7a07b, #6ab0c4);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width:100%; }
.main-nav a:hover { color: #e86b5e; }
.nav-cta { 
  padding:10px 24px; border-radius:50px; 
  background: linear-gradient(135deg, #f7a07b 0%, #e86b5e 100%)!important; 
  color:#fff!important; font-weight:600; 
  box-shadow: 0 4px 16px rgba(232,107,94,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,107,94,0.35); }
.nav-cta::after { display:none!important; }
.menu-toggle { display:none; }

/* 首页Hero - 波浪背景 */
.hero { 
  min-height:75vh; display:flex; align-items:center; 
  position:relative; overflow:hidden;
  background: linear-gradient(135deg, #faf8f5 0%, #e8f2f5 40%, #fdf0ea 100%);
}
.hero::before {
  content:''; position:absolute; bottom:-2px; left:0; width:100%; height:120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,120 600,0 1200,60 L1200,120 L0,120 Z' fill='%23faf8f5'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  z-index:1;
}
.hero-content { max-width:720px; position:relative; z-index:2; }
.hero-eyebrow { 
  display:inline-block; font-size:0.8rem; font-weight:600; 
  padding:6px 18px; border-radius:50px; margin-bottom:20px;
  background: rgba(106,176,196,0.15); color: #3a8a9e;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 { 
  font-size:3.2rem; line-height:1.15; margin-bottom:20px; 
  color: #1a4a5c; font-weight:800;
  background: linear-gradient(135deg, #1a4a5c 0%, #e86b5e 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { 
  font-size:1.15rem; opacity:0.7; max-width:560px; margin-bottom:36px; 
  color: #4a6a7a; line-height:1.7;
}
.hero-buttons { display:flex; gap:16px; }
.hero-image { 
  border-radius:20px; overflow:hidden; 
  box-shadow: 0 20px 60px rgba(26,74,92,0.12);
  position:relative; z-index:2;
}
.hero-image img { width:100%; height:auto; display:block; }

/* 按钮 - 珊瑚风格 */
.btn { 
  display:inline-flex; align-items:center; gap:8px; 
  padding:14px 32px; border-radius:50px; 
  font-weight:600; cursor:pointer; border:none; text-decoration:none; 
  transition:0.3s ease; font-size:0.95rem;
}
.btn-primary { 
  background: linear-gradient(135deg, #f7a07b 0%, #e86b5e 100%); 
  color:#fff; box-shadow: 0 4px 16px rgba(232,107,94,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,107,94,0.4); }
.btn-outline { 
  background:transparent; border:2px solid #6ab0c4; 
  color: #3a8a9e;
}
.btn-outline:hover { background: rgba(106,176,196,0.08); border-color: #e86b5e; color: #e86b5e; }

/* 标签/标题 - 海洋元素 */
.section-label { 
  display:inline-block; font-size:0.75rem; font-weight:700; 
  letter-spacing:3px; margin-bottom:14px; 
  color: #6ab0c4; text-transform: uppercase;
}
.section-title { 
  font-size:2.2rem; margin-bottom:14px; 
  color: #1a4a5c; font-weight:800; line-height:1.2;
}
.section-desc { 
  max-width:600px; opacity:0.7; margin-bottom:44px; 
  color: #4a6a7a; line-height:1.7;
}

/* 卡片网格 - 珊瑚礁卡片 */
.cards-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:28px; }
.category-card { 
  border-radius:16px; padding:32px; 
  background: #fff; border:1px solid rgba(106,176,196,0.12);
  transition:0.3s ease; position:relative; overflow:hidden;
  box-shadow: 0 4px 16px rgba(26,74,92,0.04);
}
.category-card::before {
  content:''; position:absolute; top:0; left:0; width:100%; height:4px;
  background: linear-gradient(90deg, #f7a07b, #6ab0c4);
  opacity:0; transition: opacity 0.3s;
}
.category-card:hover { 
  transform:translateY(-6px); 
  box-shadow:0 12px 32px rgba(26,74,92,0.08);
  border-color: rgba(232,107,94,0.2);
}
.category-card:hover::before { opacity:1; }
.card-icon { 
  width:52px; height:52px; border-radius:14px; 
  display:flex; align-items:center; justify-content:center; 
  margin-bottom:18px; font-size:1.4rem;
  background: linear-gradient(135deg, #fdf0ea, #e8f2f5);
  color: #e86b5e;
}
.card-link { 
  font-weight:600; font-size:0.85rem; text-decoration:none; 
  color: #6ab0c4; transition: 0.2s; display:inline-flex; align-items:center; gap:6px;
}
.card-link:hover { color: #e86b5e; gap:10px; }

/* 特性块 - 左右交错 */
.feature-block { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.feature-image { 
  border-radius:20px; overflow:hidden; 
  box-shadow: 0 16px 48px rgba(26,74,92,0.08);
}
.feature-image img { width:100%; height:auto; display:block; }
.feature-text { }
.feature-list { list-style:none; }
.feature-list li { 
  padding:8px 0; display:flex; align-items:center; gap:10px; 
  font-size:1rem; color: #2c3e4f;
}
.feature-list li::before { 
  content:'✓'; font-weight:700; 
  width:24px; height:24px; border-radius:50%;
  background: linear-gradient(135deg, #f7a07b, #e86b5e);
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:0.8rem; flex-shrink:0;
}

/* 数据条 - 波浪数字 */
.stats-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stat-item { 
  padding:28px 16px; border-radius:16px; 
  background: #fff; border:1px solid rgba(106,176,196,0.1);
  box-shadow: 0 4px 12px rgba(26,74,92,0.03);
  transition: 0.3s;
}
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,74,92,0.06); }
.stat-number { 
  font-size:2.4rem; font-weight:800; 
  background: linear-gradient(135deg, #1a4a5c, #6ab0c4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height:1;
}
.stat-label { font-size:0.9rem; opacity:0.6; margin-top:8px; color: #4a6a7a; }

/* 内容墙 - 卡片瀑布 */
.content-wall { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:28px; }
.content-wall-item { 
  border-radius:16px; overflow:hidden; 
  background: #fff; border:1px solid rgba(106,176,196,0.08);
  transition:0.3s ease; box-shadow: 0 4px 12px rgba(26,74,92,0.03);
}
.content-wall-item:hover { 
  transform:translateY(-6px); 
  box-shadow:0 12px 32px rgba(26,74,92,0.08);
}
.content-wall-item img { 
  width:100%; height:200px; object-fit:cover; 
  transition: transform 0.4s;
}
.content-wall-item:hover img { transform: scale(1.03); }
.content-wall-body { padding:24px; }
.content-wall-body h3 { color: #1a4a5c; margin-bottom:8px; }
.content-wall-body p { color: #4a6a7a; font-size:0.9rem; line-height:1.6; }

/* FAQ - 珊瑚色手风琴 */
.faq-list { max-width:800px; margin:0 auto; }
.faq-item { 
  border:1px solid rgba(106,176,196,0.15); 
  border-radius:14px; margin-bottom:10px; overflow:hidden; cursor:pointer;
  background: #fff; transition: 0.3s;
}
.faq-item:hover { border-color: rgba(232,107,94,0.2); }
.faq-item .faq-question { 
  padding:18px 22px; font-weight:600; 
  display:flex; justify-content:space-between; align-items:center;
  color: #1a4a5c; font-size:1rem;
}
.faq-item .faq-question::after {
  content:'+'; font-size:1.4rem; transition: transform 0.3s; color: #6ab0c4;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); color: #e86b5e; }
.faq-item .faq-answer { 
  padding:0 22px 18px; display:none; 
  opacity:0.75; color: #4a6a7a; line-height:1.7;
}
.faq-item.open .faq-answer { display:block; }

/* CTA横幅 - 海洋日落渐变 */
.cta-banner { 
  padding:64px 24px; text-align:center; border-radius:20px; 
  background: linear-gradient(135deg, #1a4a5c 0%, #3a8a9e 40%, #e86b5e 100%);
  color:#fff; position:relative; overflow:hidden;
  box-shadow: 0 16px 48px rgba(232,107,94,0.15);
}
.cta-banner::before {
  content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%;
  background: radial-gradient(circle at 30% 50%, rgba(247,160,123,0.15), transparent 60%);
}
.cta-banner h2 { color:#fff; font-size:2rem; position:relative; z-index:1; }
.cta-banner p { color: rgba(255,255,255,0.8); margin:12px 0 28px; position:relative; z-index:1; }
.cta-banner .btn-primary { 
  background:#fff; color: #1a4a5c; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position:relative; z-index:1;
}
.cta-banner .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* 页脚 - 深蓝浅底 */
.site-footer { 
  padding:64px 0 28px; 
  background: #f0f4f7; 
  border-top: 1px solid rgba(106,176,196,0.1);
}
.site-footer .container { }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; }
.footer-brand { }
.footer-brand h3 { color: #1a4a5c; margin-bottom:12px; }
.footer-brand p { color: #4a6a7a; font-size:0.9rem; line-height:1.6; }
.footer-col { }
.footer-col h4 { color: #1a4a5c; font-size:0.95rem; margin-bottom:16px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:8px; }
.footer-col a { 
  color: #4a6a7a; text-decoration:none; font-size:0.9rem; 
  transition: 0.2s; display:inline-flex; align-items:center; gap:4px;
}
.footer-col a:hover { color: #e86b5e; gap:8px; }
.footer-bottom { 
  border-top:1px solid rgba(26,74,92,0.08); 
  margin-top:44px; padding-top:20px; 
  text-align:center; font-size:0.85rem; color: #6a8a9a;
}

/* 工具类 */
.text-accent { color: #e86b5e; }
.text-center { text-align:center; }
.seo-description { max-width:600px; margin:0 auto 48px; opacity:0.7; color: #4a6a7a; }
.mt-0 { margin-top:0; }
.mb-0 { margin-bottom:0; }

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size:2.2rem; }
  .feature-block { grid-template-columns:1fr; gap:40px; }
  .stats-bar { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .main-nav { display:none; }
  .menu-toggle { display:flex; background:none; border:none; font-size:1.5rem; cursor:pointer; color: #1a4a5c; }
  .main-nav.open { 
    display:flex; flex-direction:column; 
    position:absolute; top:72px; left:0; width:100%; 
    background: rgba(250,248,245,0.98); 
    padding:24px 32px; gap:20px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(106,176,196,0.1);
  }
  .hero::before { height:60px; }
}
@media (max-width: 480px) {
  .cards-grid,.content-wall,.stats-bar { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .hero-buttons { flex-direction:column; }
  .hero h1 { font-size:1.8rem; }
  .section-title { font-size:1.6rem; }
  .stat-number { font-size:1.8rem; }
}