/* 全局变量 */
:root {
    --mx-red: #E60012;
    --mx-white: #FFFFFF;
    --mx-yellow: #FFD700;
    --mx-black: #333333;
    --mx-gray: #F5F5F5;
    --border-radius: 16px;
    --shadow: 0 8px 20px rgba(230, 0, 18, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #FFF8F8;
    color: var(--mx-black);
    overflow-x: hidden;
    cursor: none; /* 隐藏默认鼠标 */
}

/* 强制所有可点击元素也隐藏默认鼠标 */
a, button, .btn, input, select, textarea {
    cursor: none !important;
}

/* 自定义鼠标指针 */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 40px;
    pointer-events: none; /* 确保不阻挡点击 */
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    will-change: transform, top, left;
}

/* 3D 背景 */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6; /* 让背景不至于太抢眼 */
}

/* Loading 界面 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--mx-red);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.cups-container {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 0 auto;
}

.cup {
    width: 60px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid #fff;
    border-radius: 5px 5px 20px 20px;
    position: absolute;
    bottom: 20px;
    overflow: hidden;
}

/* 柠檬水颜色 */
.cup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-color: var(--mx-yellow);
    opacity: 0.8;
}

.cup-left {
    left: 20px;
    transform: rotate(-15deg);
    animation: cheers-left 1s infinite alternate ease-in-out;
}

.cup-right {
    right: 20px;
    transform: rotate(15deg);
    animation: cheers-right 1s infinite alternate ease-in-out;
}

.lemon {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFEB3B;
    border-radius: 50%;
    border: 2px solid #FBC02D;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.straw {
    position: absolute;
    width: 6px;
    height: 100px;
    background: var(--mx-red);
    top: -40px;
    left: 40px;
    transform: rotate(10deg);
    z-index: 1;
}

.splash {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--mx-yellow);
    border-radius: 50%;
    opacity: 0;
    animation: splash 1s infinite ease-in-out;
}

@keyframes cheers-left {
    0% { transform: rotate(-15deg) translateX(0); }
    100% { transform: rotate(0deg) translateX(20px); }
}

@keyframes cheers-right {
    0% { transform: rotate(15deg) translateX(0); }
    100% { transform: rotate(0deg) translateX(-20px); }
}

@keyframes splash {
    0%, 80% { opacity: 0; transform: translate(-50%, 20px) scale(0.5); }
    90% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -40px) scale(0); }
}

.loading-text {
    color: #fff;
    margin-top: 20px;
    font-size: 1.5rem;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--mx-red);
}

.snow-king-logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--mx-black);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--mx-red);
}

.btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-login {
    background: transparent;
    color: var(--mx-red);
    border: 2px solid var(--mx-red);
    margin-right: 10px;
}

.btn-register {
    background: var(--mx-red);
    color: #fff;
}

/* Hero 区域 */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 10%;
    min-height: 80vh;
    background: transparent; /* 让3D背景透出来 */
    position: relative;
    overflow: hidden;
}

/* 背景波点装饰 - 移除或减淡，避免与3D冲突 */
.hero::before {
    display: none;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--mx-black);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--mx-red);
    color: #fff;
    margin-right: 15px;
}

.btn-secondary {
    background: #fff;
    color: var(--mx-red);
    border: 2px solid var(--mx-red);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mascot {
    width: 400px;
    height: 400px;
    /* 整体浮动 */
    animation: float 3s ease-in-out infinite;
}

/* 头部轻微晃动 */
.mascot-head-group {
    transform-origin: 100px 120px; /* 脖子位置 */
    animation: head-bob 4s ease-in-out infinite;
}

/* 眨眼动画 */
.mascot-eyes {
    transform-origin: 100px 65px;
    animation: blink 4s infinite;
}

/* 皇冠闪烁 */
.mascot-crown {
    animation: crown-shine 3s infinite alternate;
}

/* 左手挥手 */
.mascot-arm-left {
    transform-origin: 80px 100px; /* 肩膀位置估算 */
    animation: wave-hand 2s ease-in-out infinite;
}

/* 权杖发光 */
.scepter-glow {
    transform-origin: 150px 60px;
    animation: glow-pulse 1.5s infinite;
}

/* 披风飘动 */
.mascot-cape-tail {
    transform-origin: 110px 110px;
    animation: cape-flutter 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes head-bob {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes crown-shine {
    0% { fill: #FFD700; }
    100% { fill: #FFF7CC; }
}

@keyframes wave-hand {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5px, -10px) rotate(20deg); }
}

@keyframes glow-pulse {
    0% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes cape-flutter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(5deg); }
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    animation: float-icon 4s ease-in-out infinite;
}

.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }
.icon-2 { bottom: 20%; right: 10%; animation-delay: 1s; }
.icon-3 { top: 10%; right: 20%; animation-delay: 2s; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* 特性区域 */
.features {
    padding: 5rem 10%;
    background-color: #fff;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--mx-red);
    margin-bottom: 3rem;
    position: relative;
    display: inline-blrgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    text-align: center;
    margin: 20px;
    border-radius: 20px
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: var(--mx-yellow);
    border-radius: 2px;
    margin-top: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: var(--border-radius);
    background: #fff;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--mx-red);
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--mx-black);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 价格区域 */transparent
.pricing {
    padding: 5rem 10%;
    background-color: #FFF8F8;
    text-align: center;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 300px;
    border: 2px solid #eee;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.price-card.popular {
    border-color: var(--mx-red);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.price-card.popular:hover {
    transform: scale(1.1);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mx-red);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.price-header {
    margin-bottom: 20px;
}

.price-icon {
    font-size: 3rem;
    margin-top: 10px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--mx-red);
    margin-bottom: 20px;
}

.price-amount span {
    font-size: 1rem;
    color: #999;
    font-weight: normal;
}

.price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 10px;
    color: #555;
}

.price-features i {
    color: var(--mx-red);
    margin-right: 10px;
}

.btn-outline {
    background: transparent;
    color: var(--mx-black);
    border: 2px solid #ddd;
    width: 100%;
}

.btn-outline:hover {
    border-color: var(--mx-red);
    color: var(--mx-red);
}

.price-card.popular .btn-primary {
    width: 100%;
}

/* 分隔波浪 */
.wave-divider {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: var(--mx-red);
}

/* Footer */
footer {
    background-color: var(--mx-red);
    color: #fff;
    padding: 4rem 10% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-links h3, .footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 80%;
        margin: 0;
    }

    .nav-links {
        display: none;
    }
    
    .mascot {
        width: 280px;
        height: 280px;
    }
}