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

:root {
    /* 吉卜力自然色调 - 柔和苔藓绿、橄榄绿、米白与浅灰褐 */
    --moss-green: #8FA68E;
    --soft-olive: #A8B892;
    --sage-green: #B5C4A8;
    --cream-white: #F7F5F0;
    --warm-beige: #E8E4DC;
    --taupe: #C4B8A8;
    --forest-deep: #5C6B54;
    --forest-light: #A3B899;
    --sunlight: #F5E6C8;
    --sky-mist: #E8F0E8;
    --accent-terracotta: #C9A689;
    --accent-mushroom: #D4B5A0;
}

body {
    font-family: 'Nunito', 'Quicksand', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--cream-white);
}

/* ============================================
   吉卜力风格手绘自然背景
   ============================================ */

/* 主背景 - 水彩质感林间空地 */
.ghibli-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: linear-gradient(180deg,
            #E8F0E8 0%,
            #D8E5D5 20%,
            #C8D9C4 40%,
            #D4C4B0 70%,
            #C9B8A0 100%);
}

/* 水彩纹理叠加 */
.watercolor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    opacity: 0.4;
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(168, 184, 146, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(201, 166, 137, 0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 60%, rgba(181, 196, 168, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 80%, rgba(143, 166, 142, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 75%, rgba(212, 181, 160, 0.3) 0%, transparent 45%);
    filter: blur(40px);
}

/* 手绘纸张质感 */
.paper-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ============================================
   远山与朦胧山丘 - 平滑波浪线条
   ============================================ */
.distant-hills {
    position: fixed;
    bottom: 35%;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: -7;
    filter: blur(6px);
    pointer-events: none;
}

.distant-hills svg {
    width: 100%;
    height: 100%;
}

/* 晨雾效果 */
.morning-mist {
    position: fixed;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: -6;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(247, 245, 240, 0.6) 25%,
            rgba(247, 245, 240, 0.7) 50%,
            rgba(247, 245, 240, 0.5) 75%,
            transparent 100%);
    filter: blur(20px);
    animation: mist-drift 25s ease-in-out infinite;
}

@keyframes mist-drift {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(40px);
    }
}

/* ============================================
   森林层次 - 平滑波浪线条
   ============================================ */
.forest-layer-far {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: -5;
    filter: blur(3px);
    pointer-events: none;
}

.forest-layer-far svg {
    width: 100%;
    height: 100%;
}

.forest-layer-mid {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: -4;
    pointer-events: none;
}

.forest-layer-mid svg {
    width: 100%;
    height: 100%;
}

.forest-layer-near {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: -3;
    pointer-events: none;
}

.forest-layer-near svg {
    width: 100%;
    height: 100%;
}


/* ============================================
   主要内容卡片
   ============================================ */
.content-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-card {
    background: linear-gradient(135deg,
            rgba(247, 245, 240, 0.95) 0%,
            rgba(255, 253, 248, 0.92) 25%,
            rgba(250, 248, 243, 0.9) 50%,
            rgba(255, 253, 248, 0.92) 75%,
            rgba(247, 245, 240, 0.95) 100%);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 1000px;
    width: 100%;
    box-shadow:
        0 20px 60px rgba(143, 166, 142, 0.2),
        0 8px 25px rgba(100, 125, 95, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        0 0 0 1px rgba(168, 184, 146, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    animation: card-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 24px;
}

.main-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(168, 184, 146, 0.25);
    border-radius: 24px;
    pointer-events: none;
}

@keyframes card-appear {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 卡片柔光边缘 */
.card-soft-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(168, 184, 146, 0.25), rgba(201, 166, 137, 0.2), rgba(181, 196, 168, 0.25));
    border-radius: 26px;
    z-index: -1;
    filter: blur(6px);
    opacity: 0.5;
}

/* 装饰角 - 柔和藤蔓感 */
.card-corner {
    position: absolute;
    width: 35px;
    height: 35px;
    pointer-events: none;
}

.card-corner.top-left {
    top: 18px;
    left: 18px;
    border-top: 2px solid rgba(168, 184, 146, 0.4);
    border-left: 2px solid rgba(168, 184, 146, 0.4);
    border-radius: 10px 0 0 0;
}

.card-corner.top-right {
    top: 18px;
    right: 18px;
    border-top: 2px solid rgba(168, 184, 146, 0.4);
    border-right: 2px solid rgba(168, 184, 146, 0.4);
    border-radius: 0 10px 0 0;
}

.card-corner.bottom-left {
    bottom: 18px;
    left: 18px;
    border-bottom: 2px solid rgba(168, 184, 146, 0.4);
    border-left: 2px solid rgba(168, 184, 146, 0.4);
    border-radius: 0 0 0 10px;
}

.card-corner.bottom-right {
    bottom: 18px;
    right: 18px;
    border-bottom: 2px solid rgba(168, 184, 146, 0.4);
    border-right: 2px solid rgba(168, 184, 146, 0.4);
    border-radius: 0 0 10px 0;
}

/* Logo区域 */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-image {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 8px 16px rgba(92, 107, 84, 0.2));
}

.logo {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--forest-deep);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.logo-subtitle {
    font-size: 1.1rem;
    color: var(--forest-deep);
    opacity: 0.8;
    letter-spacing: 2px;
}

.divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sage-green), transparent);
    margin: 25px auto;
}

.welcome-text {
    text-align: center;
    color: var(--forest-deep);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* ============================================
   功能卡片
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(220, 252, 231, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(168, 184, 146, 0.3);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(143, 166, 142, 0.25);
    border-color: rgba(168, 184, 146, 0.5);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 1.1rem;
    color: var(--forest-deep);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-desc {
    font-size: 0.85rem;
    color: #5C6B54;
    line-height: 1.5;
    opacity: 0.85;
}

/* 梦语者卡片特殊样式 */
.dream-card {
    background: linear-gradient(135deg, rgba(232, 240, 254, 0.9) 0%, rgba(219, 234, 254, 0.9) 100%);
    border: 1px solid rgba(147, 197, 253, 0.4);
}

.dream-card:hover {
    box-shadow: 0 20px 40px rgba(147, 197, 253, 0.25);
    border-color: rgba(147, 197, 253, 0.6);
}

/* 股票分析卡片特殊样式 */
.stock-card {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(252, 165, 165, 0.9) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stock-card:hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* 基金分析卡片特殊样式 */
.fund-card {
    background: linear-gradient(135deg, rgba(254, 242, 232, 0.9) 0%, rgba(254, 215, 170, 0.9) 100%);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.fund-card:hover {
    box-shadow: 0 20px 40px rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.5);
}

/* 用户卡片特殊样式 */
.user-card {
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.9) 0%, rgba(233, 213, 255, 0.9) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.user-card:hover {
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
}

/* ============================================
   用户状态区域
   ============================================ */
.user-section {
    margin-top: 35px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(168, 184, 146, 0.2);
}

.user-greeting {
    font-size: 1.15rem;
    color: var(--forest-deep);
    margin-bottom: 20px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 5px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg,
            var(--moss-green) 0%,
            var(--soft-olive) 50%,
            var(--sage-green) 100%);
    color: #FFFDF9;
    box-shadow: 0 5px 20px rgba(143, 166, 142, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(143, 166, 142, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--forest-deep);
    border: 2px solid var(--sage-green);
}

.btn-secondary:hover {
    background: var(--sage-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 166, 142, 0.25);
}

/* ============================================
   底部信息
   ============================================ */
.footer {
    text-align: center;
    padding: 30px 20px 10px;
    color: var(--forest-deep);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer a {
    color: var(--forest-deep);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    text-shadow: 0 0 10px rgba(143, 166, 142, 0.5);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px 15px;
    }

    .main-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .logo {
        font-size: 2.2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .light-beam {
        display: none;
    }
}

@media (max-width: 380px) {
    .main-card {
        padding: 25px 15px;
    }

    .logo {
        font-size: 1.9rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}
