﻿/* =========================================
   金田学苑 · layout.css
   页面结构布局
   ========================================= */

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* 渐变背景：海蓝到淡蓝，留白大海感 */
  background: linear-gradient(
    160deg,
    #e8f4f8 0%,
    #d0e8f0 30%,
    #b8d8e4 60%,
    #d4e8ee 100%
  );
  z-index: 0;
}

/* 竹叶装饰 */
.hero-bg::before {
  content: '🎋';
  position: absolute;
  top: 15%;
  right: 8%;
  font-size: 4rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.hero-bg::after {
  content: '🌊';
  position: absolute;
  bottom: 5%;
  left: 5%;
  font-size: 5rem;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-primary);
  background: rgba(26, 95, 122, 0.1);
  border: 1px solid rgba(26, 95, 122, 0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-scroll-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =========================================
   通用页面区块
   ========================================= */
.section {
  padding: var(--space-2xl) 0;
}

.section-quote {
  padding: var(--space-2xl) 0;
  background: var(--color-primary);
  color: white;
}

.section-understand {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

.section-method {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-alt);
}

.section-trust {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

.section-cta {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-alt);
}

.section-resources {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}

/* =========================================
   Section Header
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-primary);
  background: rgba(26, 95, 122, 0.08);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--color-text);
  font-weight: 700;
}

/* =========================================
   引言区块
   ========================================= */
.quote-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.quote-block p {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-family: var(--font-serif);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.quote-block cite {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: normal;
}

/* =========================================
   理解孩子卡片
   ========================================= */
.understand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.understand-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.understand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.understand-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.understand-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.understand-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.understand-conclusion {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(26, 95, 122, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
}

.understand-conclusion p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* =========================================
   方法卡片
   ========================================= */
.method-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.method-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  transition: transform 0.2s;
  position: relative;
}

.method-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.method-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(26, 95, 122, 0.12);
  font-family: var(--font-serif);
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
}

.method-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  position: relative;
}

.method-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.method-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  background: rgba(90, 138, 107, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

/* 数据验证 */
.method-proven {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
}

.proven-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-serif);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =========================================
   信任区
   ========================================= */
.trust-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.trust-image {
  flex-shrink: 0;
}

.placeholder-photo {
  width: 240px;
  height: 320px;
  background: linear-gradient(135deg, #d0e8f0 0%, #b8d8e4 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.placeholder-photo span {
  position: absolute;
  opacity: 0;
}

/* 真实照片替换：将图片命名为 teacher.jpg 放入 assets/images/ 目录 */
.placeholder-photo.has-image {
  background: none;
  font-size: 0;
}

.placeholder-photo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.trust-text h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.trust-list {
  margin-bottom: var(--space-md);
}

.trust-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-list li:last-child {
  border-bottom: none;
}

.trust-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.95rem;
  padding: var(--space-sm);
  border-left: 3px solid var(--color-primary);
  background: rgba(26, 95, 122, 0.04);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: gap 0.2s;
}

.link-more:hover {
  gap: 0.6rem;
}

/* =========================================
   CTA
   ========================================= */
.cta-box {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-2xl) 0;
  padding-bottom: calc(var(--space-2xl) + 60px); /* 为底部导航留空间 */
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-brand {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}

.footer-slogan {
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  justify-content: center;
  grid-column: 1 / -1;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   底部导航（移动端）
   ========================================= */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 0.4rem 0;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--color-primary);
}

.bn-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* =========================================
   微信悬浮按钮
   ========================================= */
.wechat-float {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 199;
  width: 48px;
  height: 48px;
  background: #07c160;
  border-radius: 50%;
  color: white;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}

.wechat-float:hover {
  transform: scale(1.08);
  color: white;
}

.wechat-float img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}
