/* ==== 基础变量设置 ==== */
:root {
    --bg-color: #120924;
    /* 深邃紫 */
    --bg-secondary: #1d0f36;
    /* 辅助深紫 */
    --bg-tertiary: #2a154a;
    --primary-color: #c4a35a;
    /* 星空金 */
    --primary-dark: #a88a48;
    --accent-color: #9d4edd;
    /* 明亮紫点缀 */
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.1);

    --glass-bg: rgba(29, 15, 54, 0.6);
    --glass-border: rgba(196, 163, 90, 0.2);

    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Noto Sans SC', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==== 全局重置 ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==== 组件：按钮 ==== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(196, 163, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 163, 90, 0.5);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-gold:hover {
    background: rgba(196, 163, 90, 0.1);
    box-shadow: 0 0 15px rgba(196, 163, 90, 0.2);
}

.full-width {
    width: 100%;
}

/* ==== 导航栏 ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(18, 9, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: #fff;
}

/* ==== Hero 区块 ==== */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#stars-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Prevent line rendering artifacts */
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero .desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.7;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ==== 占星卡片效果 ==== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* ==== 区块通用样式 ==== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.separator {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==== 品牌介绍层 ==== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 163, 90, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==== 课程卡片 ==== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(196, 163, 90, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.course-header,
.course-body {
    position: relative;
    z-index: 1;
}

.course-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.course-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.course-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.course-meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(196, 163, 90, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.course-target,
.course-goal {
    margin-bottom: 20px;
}

.course-target h4,
.course-goal h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.course-target h4::before,
.course-goal h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 8px;
}

.course-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==== 价格区块 ==== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #000;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-header h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.pricing-amount {
    margin-bottom: 30px;
}

.pricing-amount .currency {
    font-size: 1.2rem;
    vertical-align: top;
    color: var(--primary-color);
}

.pricing-amount .amount {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.pricing-amount .period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features {
    text-align: left;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.pricing-total {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.pricing-total strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
}

/* ==== 理念/售后服务 ==== */
.philosophy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(196, 163, 90, 0.2);
    line-height: 1;
    height: 40px;
}

blockquote {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.8;
}

.mt-5 {
    margin-top: 80px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-block {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.service-block h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.service-block ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 15px;
}

.service-block ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* ==== Footer ==== */
.footer {
    background-color: var(--bg-tertiary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.company-address {
    margin-top: 20px;
    font-size: 0.85rem !important;
}

.footer-contact {
    flex: 1;
    min-width: 300px;
}

.footer-contact h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ==== 弹窗样式 ==== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    padding: 30px 30px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 90%;
    width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

.modal-text {
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.beian-info {
    margin-top: 15px;
}

.beian-info a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.beian-info a:hover {
    color: var(--primary-color);
}

.divider {
    margin: 0 10px;
    opacity: 0.5;
}

/* ==== 动画效果类 ==== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* ==== 响应式适配 ==== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        grid-column: span 1;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }
}