/* 海角社区 - 珊瑚海岸风格设计系统 */
/* 灵感：热带珊瑚礁、柔和渐变、有机形态 */

*, *::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: linear-gradient(135deg, #fff5f0 0%, #fef9f0 50%, #f0f7ff 100%);
  color: #3d2c2a;
  line-height: 1.6;
}

/* 核心布局 */
.container { max-width:1200px; margin:0 auto; padding:0 24px; }

.section { padding:80px 0; position:relative; }
.section:nth-child(even) { 
  background: linear-gradient(135deg, rgba(255,215,190,0.15) 0%, rgba(200,230,255,0.15) 100%);
}

/* 导航 */
.site-header {
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  background: rgba(255,245,240,0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255,180,150,0.2);
  box-shadow: 0 2px 30px rgba(255,150,120,0.08);
}

.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:#3d2c2a;
  letter-spacing: -0.5px;
}

.logo-icon {
  width:40px; height:40px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.2rem;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,126,95,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: #5a4a48;
  transition: 0.3s;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  transition: width 0.3s;
  border-radius: 2px;
}

.main-nav a:hover { color: #ff6b4a; }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 600;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  box-shadow: 0 4px 16px rgba(255,126,95,0.25);
  transition: 0.3s;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,126,95,0.35); }
.nav-cta::after { display: none !important; }

.menu-toggle { display:none; cursor:pointer; font-size:1.5rem; color:#5a4a48; }

/* 首页Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(255,215,190,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(200,230,255,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(255,240,200,0.2) 0%, transparent 50%);
}

.hero-content { max-width:720px; position:relative; z-index:2; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255,126,95,0.2);
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #3d2c2a;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero h1 span {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  -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: #5a4a48;
  line-height: 1.7;
}

.hero-buttons { display:flex; gap:14px; }

.hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 60%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255,126,95,0.15);
  border: 2px solid rgba(255,255,255,0.3);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 按钮 */
.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;
  font-size: 0.9rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  box-shadow: 0 4px 16px rgba(255,126,95,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,126,95,0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid #ff7e5f;
  color: #ff6b4a;
}

.btn-outline:hover {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  color: #fff;
  border-color: transparent;
}

/* 标签/标题 */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #ff7e5f;
  position: relative;
  padding-left: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  border-radius: 2px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: #3d2c2a;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 40px;
  color: #5a4a48;
  font-size: 1.05rem;
}

/* 卡片网格 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255,180,150,0.2);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b, #ffd93d);
  opacity: 0;
  transition: 0.4s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,126,95,0.12);
  border-color: rgba(255,126,95,0.3);
}

.category-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255,126,95,0.1), rgba(254,180,123,0.1));
  color: #ff6b4a;
}

.category-card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #3d2c2a; }
.category-card p { font-size: 0.9rem; opacity: 0.6; margin-bottom: 16px; line-height: 1.6; }

.card-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: #ff7e5f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: '→';
  transition: transform 0.3s;
}

.card-link:hover::after { transform: translateX(4px); }

/* 特性块 */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(255,126,95,0.1);
  border: 2px solid rgba(255,255,255,0.3);
}

.feature-image img { width: 100%; height: auto; display: block; }

.feature-text h3 { font-size: 1.8rem; margin-bottom: 16px; color: #3d2c2a; font-weight: 700; }
.feature-text p { opacity: 0.7; margin-bottom: 24px; line-height: 1.7; }

.feature-list { list-style: none; }
.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-list li::before {
  content: '✦';
  font-weight: 700;
  color: #ff7e5f;
  font-size: 1.1rem;
}

/* 数据条 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,180,150,0.15);
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.stat-item:hover {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 24px rgba(255,126,95,0.08);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 8px;
  color: #5a4a48;
}

/* 内容墙 */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,180,150,0.15);
  background: #fff;
  transition: 0.4s;
}

.content-wall-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,126,95,0.1);
}

.content-wall-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.4s;
}

.content-wall-item:hover img { transform: scale(1.05); }

.content-wall-body { padding: 24px; }

.content-wall-body h4 { font-size: 1.1rem; margin-bottom: 8px; color: #3d2c2a; }
.content-wall-body p { font-size: 0.9rem; opacity: 0.6; line-height: 1.6; }
.content-wall-body .meta { display:flex; justify-content:space-between; margin-top:16px; font-size:0.8rem; color:#ff7e5f; font-weight:500; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid rgba(255,180,150,0.15);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  transition: 0.3s;
}

.faq-item:hover { border-color: rgba(255,126,95,0.3); }

.faq-item .faq-question {
  padding: 18px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3d2c2a;
  font-size: 1.05rem;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: #ff7e5f;
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 24px 18px;
  display: none;
  opacity: 0.7;
  line-height: 1.7;
  color: #5a4a48;
}

.faq-item.open .faq-answer { display: block; }

/* CTA横幅 */
.cta-banner {
  padding: 64px 24px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff7e5f, #feb47b, #ffd93d);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 6s infinite linear;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; position:relative; z-index:1; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; position:relative; z-index:1; }
.cta-banner .btn-primary {
  background: #fff;
  color: #ff7e5f;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  position:relative; z-index:1;
}

.cta-banner .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* 页脚 */
.site-footer {
  padding: 64px 0 28px;
  background: linear-gradient(135deg, #3d2c2a, #2a1f1d);
  color: rgba(255,255,255,0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { opacity: 0.6; line-height: 1.7; font-size: 0.9rem; }

.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-col a:hover { color: #ffb49a; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* 工具类 */
.text-accent { color: #ff7e5f; }
.text-center { text-align: center; }
.seo-description { max-width: 600px; margin: 0 auto 48px; opacity: 0.7; color: #5a4a48; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* 响应式 */
@media (max-width: 1024px) {
  .hero-image { width: 40%; height: 50%; }
  .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open { 
    display: flex; 
    flex-direction: column; 
    position: absolute; 
    top: 72px; 
    left: 0; 
    width: 100%; 
    background: rgba(255,245,240,0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,180,150,0.2);
  }
  .hero { min-height: 60vh; }
  .hero-image { position: relative; right: auto; top: auto; transform: none; width: 100%; height: 300px; margin-top: 40px; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .cta-banner h2 { font-size: 1.6rem; }
}

@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 { padding: 48px 0; }
  .stat-number { font-size: 2rem; }
}