:root {
    --primary: #2A9D8F;
    --secondary: #1E3A5F;
    --accent: #F4A261;
    --coral: #FF8066;
    --text-main: #1f2937;
    --text-light: #607d8b;
    --card-bg: rgba(255, 255, 255, 0.92);
    --glass: rgba(255, 255, 255, 0.38);
}

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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background: #eef6f4;
}

/* 动态背景 */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
    background-size: 400% 400%;
    animation: gradientBG 18s ease infinite;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 漂浮气泡 */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.32);
    animation: float 18s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-120px) scale(1.6); opacity: 0; }
}

#app {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    position: relative;
    width: 100%;
}

/* 头部区域 */
header {
    text-align: center;
    padding: 90px 0 60px;
    position: relative;
}

h1 {
    font-size: 3.4em;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    text-shadow: 2px 3px 12px rgba(30, 58, 95, 0.15);
}

.subtitle-wrapper {
    height: 32px;
}

.subtitle {
    font-size: 1.35em;
    color: var(--secondary);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--secondary);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 卡片容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 42px;
}

@supports (display: grid) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.45s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

/* 情绪心情卡片 */
.mood-emojis {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.emoji-btn {
    font-size: 2.5em;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.emoji-btn:hover {
    transform: scale(1.2);
}

.emoji-btn.active {
    transform: scale(1.35);
    filter: drop-shadow(0 0 12px rgba(255,215,0,0.7));
}

.mood-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(42, 157, 143, 0.12);
    border-radius: 12px;
    color: var(--secondary);
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

/* 呼吸动画卡片 */
.breathe-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 210px;
}

.circle {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: linear-gradient(135deg, #72efdd 10%, #3494e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 0 34px rgba(52, 148, 230, 0.35);
    transition: all 4s ease-in-out;
    cursor: pointer;
    transform: scale(1);
}

.circle:hover {
    box-shadow: 0 0 42px rgba(52, 148, 230, 0.45);
}

.circle.inhale {
    transform: scale(1.6) !important;
    box-shadow: 0 0 52px rgba(52, 148, 230, 0.55);
}

.circle.exhale {
    transform: scale(1) !important;
}

.instruction {
    margin-top: 18px;
    color: var(--text-light);
    font-size: 0.92em;
    text-align: center;
}

/* 治愈语录卡片 */
.quote-content {
    font-size: 1.2em;
    font-style: italic;
    color: var(--secondary);
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4px;
}

.refresh-icon {
    float: right;
    cursor: pointer;
    color: var(--primary);
    transition: transform 0.5s ease;
}

.refresh-icon:hover {
    transform: rotate(200deg);
}

/* 功能列表 */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s;
}

.feature-list li:hover {
    background: rgba(255,255,255,0.55);
}

.feature-list i {
    font-size: 1.5em;
    margin-right: 15px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* 问卷区域 */
.survey-container {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 56px rgba(0,0,0,0.12);
    margin-top: 44px;
    position: relative;
}

.survey-header {
    background: var(--secondary);
    color: white;
    padding: 22px;
    text-align: center;
}

/* 彩蛋按钮 */
.egg-btn {
    background: linear-gradient(135deg, #2a9d8f, #1e3a5f);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(42,157,143,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.egg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(42,157,143,0.4);
}

/* 动画类 */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}

.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式优化 */
@media (max-width: 768px) {
    #app {
        padding: 16px 12px 40px;
    }

    header {
        padding: 60px 0 40px;
    }

    h1 { 
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .grid-container { 
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }

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

    .card h3 {
        font-size: 1.15em;
    }

    .emoji-btn {
        font-size: 2em;
    }

    .mood-message {
        padding: 12px;
        font-size: 0.95em;
    }

    .breathe-container {
        height: 180px;
    }

    .circle {
        width: 100px;
        height: 100px;
        font-size: 1.2em;
    }

    .circle.inhale {
        transform: scale(1.4);
    }

    .instruction {
        font-size: 0.85em;
    }

    .quote-content {
        font-size: 1.05em;
        min-height: 70px;
        padding: 0 8px;
    }

    .feature-list li {
        padding: 10px;
        font-size: 0.95em;
    }

    .feature-list i {
        font-size: 1.3em;
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }

    .survey-container {
        margin-top: 32px;
        border-radius: 20px;
    }

    .survey-header {
        padding: 18px;
    }

    .survey-header h2 {
        font-size: 1.3em;
    }

    .egg-btn {
        padding: 14px 28px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1em;
    }

    .subtitle-wrapper {
        height: 28px;
    }

    .card {
        padding: 20px 16px;
    }

    .emoji-btn {
        font-size: 1.8em;
    }

    .grid-container {
        gap: 16px;
    }

    body {
        overflow-x: hidden;
    }

    .feature-list li {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 30px 0 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .breathe-container {
        height: 150px;
    }

    .circle {
        width: 80px;
        height: 80px;
    }
}
