:root {
  --zy-primary: #b074d1;
  --zy-primary-dark: #9e40d1;
  --zy-primary-darker: #8536b0;
  --zy-gradient: linear-gradient(135deg, #667eea 0%, #b074d1 50%, #e076aa 100%);
  --zy-gradient-dark: linear-gradient(135deg, #5a67d8 0%, #9e40d1 50%, #d06090 100%);
  --zy-bg-light: #f8f5fb;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  overflow-x: hidden;
}

#zy-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: url('../img/index/hero-pc.jpg') no-repeat center center;
  background-size: cover;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; }

/* ========== Navbar ========== */
.zy-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; transition: all .3s;
}
.zy-navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.zy-navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.zy-logo {
  font-size: 22px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.zy-logo img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover;
}
.zy-navbar.scrolled .zy-logo { color: var(--zy-primary-dark); }

.zy-nav-links {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.zy-nav-links a {
  color: rgba(255,255,255,.85); font-size: 15px;
  font-weight: 500; transition: color .3s;
}
.zy-nav-links a:hover { color: #fff; }
.zy-navbar.scrolled .zy-nav-links a { color: #555; }
.zy-navbar.scrolled .zy-nav-links a:hover { color: var(--zy-primary-dark); }

.zy-nav-btns { display: flex; gap: 12px; align-items: center; }

.zy-btn-login {
  padding: 8px 24px; border-radius: 6px; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.5); color: #fff;
  transition: all .3s; background: transparent; cursor: pointer;
}
.zy-btn-login:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.zy-navbar.scrolled .zy-btn-login { border-color: var(--zy-primary); color: var(--zy-primary-dark); }
.zy-navbar.scrolled .zy-btn-login:hover { background: var(--zy-primary); color: #fff; }

.zy-btn-register {
  padding: 8px 24px; border-radius: 6px; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--zy-primary-dark); border: none;
  cursor: pointer; transition: all .3s;
}
.zy-btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.zy-navbar.scrolled .zy-btn-register { background: var(--zy-primary); color: #fff; }

/* ========== Hero ========== */
.zy-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.zy-hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 0;
}
.zy-hero .container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  position: relative; z-index: 1; text-align: center;
}
.zy-hero h1 {
  font-size: 52px; font-weight: 700; color: #fff;
  margin-bottom: 20px; line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.zy-hero p {
  font-size: 20px; color: rgba(255,255,255,.9); margin-bottom: 40px;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.zy-hero-btn {
  display: inline-block; padding: 16px 48px; background: #fff;
  color: var(--zy-primary-dark); font-size: 17px; font-weight: 600;
  border-radius: 8px; transition: all .3s;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.zy-hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  color: var(--zy-primary-darker);
}
.zy-hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 60px; }
.zy-hero-stat { text-align: center; }
.zy-hero-stat .num { font-size: 36px; font-weight: 700; color: #fff; }
.zy-hero-stat .label { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ========== Section Common ========== */
.zy-section { padding: 80px 0; }
.zy-section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.zy-section-title { text-align: center; margin-bottom: 50px; }
.zy-section-title h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.zy-section-title p { font-size: 16px; }

/* ========== Core Advantages (dark bg + glass cards) ========== */
.zy-core {
  position: relative;
  padding: 90px 0;
}
.zy-core::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 0;
}
.zy-core .container { position: relative; z-index: 1; }
.zy-core .zy-section-title h2 { color: #fff; }
.zy-core .zy-section-title p { color: rgba(255,255,255,.5); }
.zy-core-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.zy-core-card {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.zy-core-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #b074d1, #e076aa, #f7797d);
  opacity: 0;
  transition: opacity .35s ease;
}
.zy-core-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(176,116,209,.2);
}
.zy-core-card:hover::before { opacity: 1; }
.zy-core-card .card-icon {
  font-size: 42px; margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea, #e076aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.zy-core-card h4 {
  font-size: 18px; font-weight: 600; color: #fff;
  margin-bottom: 10px;
}
.zy-core-card p {
  font-size: 13px; color: rgba(255,255,255,.45);
  line-height: 1.7;
}

/* ========== Plans (套餐卡片) ========== */
.zy-plans {
  position: relative;
  padding: 90px 0;
}
.zy-plans::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 0;
}
.zy-plans .container { position: relative; z-index: 1; }
.zy-plans .zy-section-title h2 { color: #fff; }
.zy-plans .zy-section-title p { color: rgba(255,255,255,.5); }
.zy-plans-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.zy-plan-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  backdrop-filter: blur(8px);
}
.zy-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(176,116,209,.15);
}
.zy-plan-header {
  background: linear-gradient(135deg, #4a3a8a, #6c3fa0);
  padding: 28px 20px;
  text-align: center;
}
.zy-plan-header h3 {
  font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 6px;
}
.zy-plan-header .plan-price {
  font-size: 28px; font-weight: 700; color: #fff;
}
.zy-plan-header .plan-price small {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,.7);
}
.zy-plan-body {
  padding: 24px 20px;
}
.zy-plan-body ul {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.zy-plan-body ul li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,.6);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.zy-plan-body ul li:last-child { border-bottom: none; }
.zy-plan-body ul li i {
  color: var(--zy-primary); font-size: 14px;
}
.zy-plan-btn {
  display: block; text-align: center;
  padding: 12px; border-radius: 8px;
  border: 1px solid rgba(224,118,170,.5);
  color: #e076aa; font-size: 14px; font-weight: 600;
  background: transparent;
  transition: all .3s;
}
.zy-plan-btn:hover {
  background: rgba(224,118,170,.12);
  border-color: #e076aa;
  color: #e076aa;
}

/* ========== CTA ========== */
.zy-cta {
  position: relative;
  text-align: center; padding: 80px 20px;
  overflow: hidden;
}
.zy-cta::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 0;
}
.zy-cta .container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.zy-cta h2 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.zy-cta p { font-size: 16px; color: rgba(255,255,255,.55); margin-bottom: 32px; }
.zy-cta-btn {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, #667eea, #b074d1);
  color: #fff; font-size: 16px; font-weight: 600;
  border-radius: 8px; transition: all .3s;
}
.zy-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(176,116,209,.35);
  color: #fff;
}

/* ========== Footer ========== */
.zy-footer {
  position: relative;
  color: #666; padding: 60px 0 30px;
}
.zy-footer::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  z-index: 0;
}
.zy-footer .container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.zy-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.zy-footer-brand {
  font-size: 20px; font-weight: 700; color: var(--zy-primary-dark);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.zy-footer-brand img {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover;
}
.zy-footer-desc { font-size: 14px; line-height: 1.8; color: #888; }
.zy-footer h5 { color: #333; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.zy-footer ul { list-style: none; padding: 0; margin: 0; }
.zy-footer ul li { margin-bottom: 10px; }
.zy-footer ul a { font-size: 14px; color: #888; transition: color .3s; }
.zy-footer ul a:hover { color: var(--zy-primary-dark); }
.zy-footer-bottom {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 24px; text-align: center; font-size: 13px; color: #aaa;
}

/* ========== Mobile ========== */
.zy-mobile-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 22px; cursor: pointer;
}
.zy-navbar.scrolled .zy-mobile-toggle { color: #333; }

@media (max-width: 768px) {
  .zy-nav-links { display: none; }
  .zy-nav-btns { display: none; }
  .zy-mobile-toggle { display: block; }
  #zy-bg {
    background-image: url('../img/index/hero-mobile.jpg');
  }
  .zy-hero h1 { font-size: 32px; }
  .zy-hero p { font-size: 16px; }
  .zy-hero-stats { flex-wrap: wrap; gap: 24px; }
  .zy-hero-stat .num { font-size: 24px; }
  .zy-section-title h2 { font-size: 24px; }
  .zy-core-grid { grid-template-columns: 1fr; }
  .zy-plans-grid { grid-template-columns: 1fr; }
  .zy-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .zy-navbar .container { padding: 0 16px; }
  .zy-nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 20px; gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  .zy-nav-links.active a { color: #333; }
}