/* ===========================================================
   兔兔教练官网 - style.css
   Author: 兔兔教练团队
   颜色取自 APP 紫色主题（与 R.color.purple_primary_dark 对齐）
   纯 CSS，无外部依赖，所有大陆/海外节点都能跑。
   =========================================================== */

:root {
    --purple-900: #4a1e7a;
    --purple-700: #6a30b0;
    --purple-500: #8b5cf6;
    --purple-300: #c4b5fd;
    --purple-100: #ede9fe;
    --pink-300: #fbcfe8;
    --pink-500: #ec4899;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 10px rgba(74, 30, 122, 0.06);
    --shadow-md: 0 10px 30px rgba(74, 30, 122, 0.10);
    --shadow-lg: 0 24px 64px rgba(74, 30, 122, 0.16);
    --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    line-height: 1.65;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--purple-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--purple-500); }

img { max-width: 100%; height: auto; display: block; }

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

/* ============================ Header ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--gray-900);
}

.brand img {
    width: 38px; height: 38px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

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

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
}

.nav-cta {
    background: var(--purple-700);
    color: var(--white) !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.nav-cta:hover {
    background: var(--purple-900);
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .nav-links { gap: 18px; }
    .nav-links li:nth-child(n+3) { display: none; }
}

/* ============================ Hero ============================ */
.hero {
    position: relative;
    padding: 80px 0 64px;
    background: linear-gradient(180deg, var(--purple-100) 0%, #fff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--purple-700), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    margin-top: 22px;
    font-size: 18px;
    color: var(--gray-700);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: all .15s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--purple-700);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--purple-900);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--purple-700);
    border: 1.5px solid var(--purple-300);
}

.btn-secondary:hover {
    border-color: var(--purple-700);
    color: var(--purple-900);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 380px;
    filter: drop-shadow(0 30px 60px rgba(74, 30, 122, 0.25));
    animation: rabbitIdle 4s ease-in-out infinite;
}

@keyframes rabbitIdle {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
}

.hero-deco-1 {
    width: 320px; height: 320px;
    background: var(--pink-300);
    top: 10%; right: -60px;
}

.hero-deco-2 {
    width: 260px; height: 260px;
    background: var(--purple-300);
    bottom: -40px; left: -80px;
}

@media (max-width: 900px) {
    .hero { padding: 56px 0 32px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image img { max-width: 260px; }
}

/* ============================ Section base ============================ */
section { padding: 96px 0; }

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: var(--purple-100);
    color: var(--purple-700);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.section-title p {
    margin-top: 16px;
    font-size: 17px;
    color: var(--gray-500);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .section-title { margin-bottom: 40px; }
}

/* ============================ Features ============================ */
.features {
    background: var(--gray-100);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--purple-100), var(--pink-300));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ============================ How it works ============================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    text-align: center;
    counter-increment: step;
    position: relative;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    display: inline-block;
    padding: 8px 14px;
    background: var(--purple-700);
    color: var(--white);
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--gray-500);
    font-size: 14px;
}

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .steps { grid-template-columns: 1fr; }
}

/* ============================ Pricing ============================ */
.pricing {
    background: linear-gradient(180deg, #fff 0%, var(--purple-100) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.price-card.featured {
    background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
    color: var(--white);
    transform: scale(1.02);
}

.price-card.featured h3,
.price-card.featured .price,
.price-card.featured ul li { color: var(--white); }

.price-card.featured .badge {
    position: absolute;
    top: -14px; right: 28px;
    background: var(--pink-500);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.price-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gray-900);
}

.price-card .tagline {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 24px;
}

.price-card.featured .tagline { color: var(--purple-300); }

.price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--purple-700);
}

.price .currency { font-size: 22px; vertical-align: super; margin-right: 4px; }
.price .period { font-size: 16px; font-weight: 500; color: var(--gray-500); margin-left: 4px; }
.price-card.featured .price { color: var(--white); }
.price-card.featured .period { color: var(--purple-300); }

.price-card ul {
    list-style: none;
    margin: 28px 0;
}

.price-card ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: var(--gray-700);
}

.price-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--purple-700);
    font-weight: 700;
}

.price-card.featured ul li::before { color: var(--pink-300); }

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
}

/* ============================ About / CTA ============================ */
.about {
    text-align: center;
}

.about-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    color: var(--gray-700);
}

.cta-banner {
    background: linear-gradient(135deg, var(--purple-700), var(--pink-500));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    margin: 0 auto;
    max-width: 960px;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 17px;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-banner .btn {
    background: var(--white);
    color: var(--purple-700);
}

.cta-banner .btn:hover { background: var(--gray-100); color: var(--purple-900); }

/* ============================ Footer ============================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-grid h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-grid ul { list-style: none; }
.footer-grid ul li { padding: 4px 0; }
.footer-grid a { color: var(--gray-300); font-size: 14px; }
.footer-grid a:hover { color: var(--white); }

.footer-grid p { font-size: 14px; line-height: 1.7; color: var(--gray-300); }

.footer-brand img { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.footer-bottom a { color: var(--gray-500); margin: 0 8px; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================ Legal pages (privacy / terms) ============================ */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.legal h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal .updated {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 40px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 14px;
    color: var(--gray-900);
}

.legal h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.legal p, .legal ul {
    color: var(--gray-700);
    font-size: 15.5px;
    line-height: 1.85;
    margin-bottom: 14px;
}

.legal ul { padding-left: 22px; }
.legal ul li { margin-bottom: 8px; }

.legal strong { color: var(--gray-900); font-weight: 600; }

.legal .toc {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 40px;
}

.legal .toc h3 { margin-top: 0; }
.legal .toc ul { margin-bottom: 0; padding-left: 22px; }
.legal .toc a { color: var(--purple-700); }
