/* ============================================
   屿风 - 多元兴趣交友与情感成长服务平台
   Style: 海岛蓝 · 雾灰 · 暖白 · 浅砂色
   ============================================ */

:root {
  --ocean: #1a6b8a;
  --ocean-light: #4a9bb8;
  --ocean-dark: #0f4b62;
  --fog: #8a8d91;
  --fog-light: #c4c7cc;
  --warm-white: #f7f3ef;
  --sand: #e8d5c4;
  --sand-light: #f2e6da;
  --charcoal: #2d2d2d;
  --charcoal-light: #4a4a4a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: 2px;
}

.navbar .logo span { font-weight: 300; color: var(--fog); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ocean);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ocean);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  margin-top: 68px;
  background: linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean) 50%, var(--ocean-light) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-slider {
  position: relative;
  min-height: 360px;
}

.hero-slide {
  display: none;
  animation: fadeSlide 0.6s ease;
}

.hero-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--ocean);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 48px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.hero-dot.active {
  background: var(--white);
  width: 32px;
  border-radius: 5px;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ocean-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--fog);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Core Values (首页核心板块) ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.value-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.value-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.value-card p {
  font-size: 0.92rem;
  color: var(--charcoal-light);
  line-height: 1.7;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--warm-white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: var(--sand);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ocean-light);
  opacity: 0.3;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--charcoal-light);
  line-height: 1.7;
}

/* ---- Story / Text Content ---- */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 24px;
  color: var(--charcoal-light);
}

.story-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ocean-dark);
  margin: 48px 0 20px;
}

blockquote {
  border-left: 4px solid var(--ocean-light);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--charcoal-light);
}

/* ---- Founder ---- */
.founder-section {
  background: linear-gradient(135deg, var(--ocean-dark), var(--ocean));
  color: var(--white);
}

.founder-section .section-header h2 { color: var(--white); }
.founder-section .section-header p { color: rgba(255,255,255,0.7); }

/* ---- Philosophy (宣言) ---- */
.declaration {
  background: var(--ocean);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.declaration h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.declaration .lines {
  max-width: 560px;
  margin: 0 auto;
}

.declaration .lines p {
  font-size: 1.15rem;
  line-height: 2.2;
  opacity: 0.9;
}

.declaration .lines p:last-child {
  margin-top: 24px;
  opacity: 0.7;
  font-style: italic;
}

/* ---- Highlights ---- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.highlight-item {
  text-align: center;
  padding: 32px 20px;
}

.highlight-item .num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--ocean);
  margin-bottom: 8px;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--fog);
}

/* ---- Steps ---- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.step-card {
  counter-increment: step;
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.step-card::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--ocean);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 16px 0 12px;
}

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

/* ---- Contact Info ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-item .label {
  font-size: 0.85rem;
  color: var(--fog);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item .value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.contact-item img.qr-img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  margin: 12px 0;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.contact-item img.qr-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ---- Footer ---- */
.footer {
  background: var(--ocean-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 40px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

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

.footer .brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.footer .slogan {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 400px;
  line-height: 1.6;
}

.footer .copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.age-notice {
  background: rgba(255,255,255,0.06);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---- Page Header (inner pages) ---- */
.page-header {
  margin-top: 68px;
  background: linear-gradient(135deg, var(--ocean-dark), var(--ocean));
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Convention (公约) ---- */
.convention-list {
  max-width: 720px;
  margin: 0 auto;
}

.convention-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--charcoal-light);
  line-height: 1.7;
}

.convention-list li::before {
  content: '·';
  color: var(--ocean-light);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.5;
}

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

/* ---- Guarantee Items ---- */
.guarantee-group {
  margin-bottom: 60px;
}

.guarantee-group h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ocean-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand);
}

.guarantee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.guarantee-list li {
  background: var(--warm-white);
  padding: 24px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  border-left: 3px solid var(--ocean-light);
}

/* ---- Scroll Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 64px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .page-header { padding: 60px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .declaration { padding: 60px 0; }
  .declaration h2 { font-size: 1.5rem; }
}
