﻿/* ===== CSS Variables - 线条小狗IP主题 🐶🐻 ===== */
:root {
    --cream: #FFF9F3;
    --cream-dark: #FFEDDC;
    --brown-light: #D4A574;
    --brown: #B88963;
    --brown-dark: #8B6F47;
    --warm-coral: #F5B7A8;
    --warm-orange: #FCD5A4;
    --dog-cream: #F5E0C3;
    --bear-white: #FFF8F0;
    --dog-paw: #E8D5C4;
    --line-gray: #DCCFC3;
    --white: #FFFFFF;
    --text-dark: #5C4033;
    --text-light: #A6907E;
    --shadow: 0 4px 15px rgba(139, 111, 71, 0.12);
    --shadow-strong: 0 8px 25px rgba(139, 111, 71, 0.2);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
    --bg-gradient: linear-gradient(160deg, #FFF9F3 0%, #FFEDDC 40%, #FFF5EE 70%, #F5E6D3 100%);
    --accent-gradient: linear-gradient(135deg, #D4A574, #B88963);
    /* Backward compatibility */
    --pink-light: var(--cream);
    --pink: var(--brown-light);
    --pink-dark: var(--brown);
    --purple-light: var(--cream-dark);
    --purple: var(--brown);
    --purple-dark: var(--brown-dark);
}

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

@charset "UTF-8";

body {
    font-family: -apple-system, 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', 'HarmonyOS Sans Sc', 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== 线条小狗IP装饰背景 ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(245, 224, 195, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(245, 183, 168, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 237, 220, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* 小狗爪印装饰 - 只在角落 */
body::after {
    content: '🐾 🐾 🐾';
    position: fixed;
    bottom: 10px;
    left: 15px;
    font-size: 14px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 8px;
}

/* ========================================
   LOGIN PAGE - LG NewUi Style
   ======================================== */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    overflow: hidden;
}

/* 登录页背景图叠加 */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/backgroundplate/R-C.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
    filter: saturate(0.8);
}

/* 背景装饰圆 */
.login-bg-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.bg-circle.c1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e94560, transparent);
    top: -150px;
    right: -100px;
    animation: circleFloat1 8s ease-in-out infinite;
}

.bg-circle.c2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #533483, transparent);
    bottom: -100px;
    left: -100px;
    animation: circleFloat2 10s ease-in-out infinite;
}

.bg-circle.c3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #e94560, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: circlePulse 6s ease-in-out infinite;
}

@keyframes circleFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

@keyframes circleFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes circlePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

/* 登录容器 - 左右分栏布局 */
.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* 左侧简介区 */
.login-intro {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.intro-profiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar:hover {
    transform: scale(1.08);
    border-color: rgba(233, 69, 96, 0.6);
}

.profile-name {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 2px;
}

.profile-divider {
    display: flex;
    align-items: center;
}

.divider-heart {
    font-size: 24px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

.intro-counter {
    margin-top: 10px;
}

.counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.counter-big {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 20px rgba(233, 69, 96, 0.3);
    margin-bottom: 6px;
}

.counter-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 3px;
}

/* 右侧解锁区 */
.login-unlock {
    flex: 1;
    display: flex;
    justify-content: center;
}

.unlock-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 35px;
    width: 340px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

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

.unlock-icon {
    font-size: 36px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 10px rgba(233, 69, 96, 0.3));
}

.unlock-title {
    font-size: 26px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 3px;
}

.unlock-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.unlock-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.unlock-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 10px;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.unlock-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    font-size: 14px;
}

.unlock-input:focus {
    border-color: rgba(233, 69, 96, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.15);
}

.unlock-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #e94560, #533483);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.unlock-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.unlock-btn:hover::before {
    left: 100%;
}

.unlock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.35);
}

.unlock-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.unlock-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.unlock-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.unlock-error.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.unlock-hint {
    margin-top: 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

/* 底部装饰 */
.login-footer-deco {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.2;
    z-index: 1;
    letter-spacing: 8px;
}

/* ===== Petals ===== */
.petals-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.petal {
    position: absolute;
    font-size: 18px;
    animation: petalFall linear infinite;
    opacity: 0.7;
}

@keyframes petalFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* ========================================
   MAIN SITE
   ======================================== */
.main-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-site::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/backgroundplate/17759394046725504.jpg') center/cover no-repeat;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.main-site > * {
    position: relative;
    z-index: 1;
}

/* ===== Top Nav ===== */
.top-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(139, 111, 71, 0.12);
    border-bottom: 2px solid rgba(212, 165, 116, 0.25);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
}

.brand-icon {
    font-size: 24px;
}

.brand-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.brand-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 15px;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--cream);
    color: var(--brown);
}

.nav-item.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ===== Content Area ===== */
.content-area {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== Pages ===== */
.page {
    display: none;
    animation: pageIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes pageIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.page-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 15px;
}

/* ===== Home Hero ===== */
.home-hero {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(212,165,116,0.1), rgba(196,149,106,0.1));
    border-radius: var(--radius);
    margin-bottom: 30px;
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 40px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-characters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hero-char-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-char-img:first-child {
    animation: charBounce 2.5s ease-in-out infinite;
}

.hero-char-img:last-child {
    animation: charBounce 2.5s ease-in-out infinite 0.3s;
}

.char-dog, .char-bear {
    font-size: 52px;
    display: inline-block;
}

.char-dog {
    animation: charBounce 2.5s ease-in-out infinite;
}

.char-bear {
    animation: charBounce 2.5s ease-in-out infinite 0.3s;
}

.char-heart {
    font-size: 28px;
    animation: heartFloat 2s ease-in-out infinite;
}

@keyframes charBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes heartFloat {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-paws {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 16px;
    opacity: 0.4;
    letter-spacing: 12px;
}

.hero-title h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--brown);
    font-weight: bold;
}

/* ===== 生日倒计时横幅 ===== */
.birthday-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(245, 183, 168, 0.2), rgba(255, 237, 220, 0.4));
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 2px solid rgba(245, 183, 168, 0.3);
    animation: bannerGlow 2s ease-in-out infinite;
}

.birthday-banner .banner-dog,
.birthday-banner .banner-bear {
    font-size: 28px;
    animation: bannerBounce 1.5s ease-in-out infinite;
}

.banner-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: bannerBounce 1.5s ease-in-out infinite;
}

.banner-icon:last-child {
    animation-delay: 0.5s;
}

.birthday-banner .banner-bear {
    animation-delay: 0.5s;
}

.birthday-banner .banner-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--brown);
    letter-spacing: 2px;
}

@keyframes bannerGlow {
    0%, 100% { border-color: rgba(245, 183, 168, 0.3); }
    50% { border-color: rgba(245, 183, 168, 0.6); }
}

@keyframes bannerBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== Counters ===== */
.counters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.counter-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid rgba(212, 165, 116, 0.2);
    transition: var(--transition);
}

.counter-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.counter-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.counter-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.counter-icon-img:hover {
    animation: counterIconPop 0.5s ease;
}

@keyframes counterIconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.counter-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ===== 实时正计时器 ===== */
.timer-card {
    background: linear-gradient(135deg, rgba(255, 249, 243, 0.95), rgba(255, 237, 220, 0.8));
    position: relative;
    overflow: hidden;
}

.timer-card::before {
    content: '⏰';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 48px;
    opacity: 0.08;
    transform: rotate(15deg);
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 15px 0 10px;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.timer-num {
    font-size: 42px;
    font-weight: bold;
    color: var(--brown);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.timer-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
    letter-spacing: 2px;
}

.timer-sep {
    font-size: 28px;
    color: var(--brown-light);
    opacity: 0.4;
    margin-top: -20px;
    animation: sepPulse 1s ease-in-out infinite;
}

@keyframes sepPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.timer-sub {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
    letter-spacing: 1px;
}

.counter-value {
    font-size: 48px;
    font-weight: bold;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.counter-unit {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 5px;
}

.counter-detail {
    font-size: 14px;
    color: var(--brown);
    margin-top: 8px;
    font-weight: bold;
}

.counter-detail {
    font-size: 14px;
    color: var(--brown);
    margin-top: 8px;
    font-weight: bold;
}

/* ===== Love Quote ===== */
.love-quote-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 2px solid rgba(255, 182, 193, 0.2);
    position: relative;
}

.quote-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-change {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.quote-change:hover {
    color: var(--brown);
}

/* ===== 每日卡片（天气/运势/任务） ===== */
.daily-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.daily-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(212, 165, 116, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.daily-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.daily-card::after {
    content: '🐾';
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 30px;
    opacity: 0.1;
    transform: rotate(15deg);
}

.daily-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(212, 165, 116, 0.2);
}

.daily-card-icon {
    font-size: 24px;
}

.daily-card-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.daily-card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--brown);
}

/* Weather card */
.weather-content {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-loading, .fortune-loading, .task-loading {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    padding: 10px 0;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.weather-emoji {
    font-size: 36px;
}

.weather-details {
    flex: 1;
}

.weather-temp {
    font-size: 24px;
    font-weight: bold;
    color: var(--brown);
}

.weather-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.weather-location input {
    flex: 1;
    padding: 6px 10px;
    border: 1.5px solid var(--brown-light);
    border-radius: 20px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    background: var(--cream);
}

.weather-location input:focus {
    border-color: var(--brown);
}

.weather-city-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.weather-city-btn:hover {
    transform: scale(1.05);
}

/* Fortune card */
.fortune-content {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fortune-result {
    text-align: center;
}

.fortune-level {
    font-size: 28px;
    margin-bottom: 5px;
}

.fortune-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

.fortune-refresh, .task-refresh {
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    background: var(--cream);
    border: 1.5px solid var(--brown-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--brown);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.fortune-refresh:hover, .task-refresh:hover {
    background: var(--cream-dark);
    border-color: var(--brown);
}

/* Task card */
.task-content {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.task-result {
    text-align: center;
}

.task-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.task-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== Milestones ===== */
.milestone-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 2px solid rgba(212, 165, 116, 0.2);
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    background: var(--pink-light);
    transition: var(--transition);
}

.milestone-item:hover {
    transform: translateX(5px);
}

.milestone-item.achieved {
    background: linear-gradient(135deg, #E8F5E9, #FFF0F5);
    border-left: 3px solid #4CAF50;
}

.milestone-icon {
    font-size: 20px;
}

.milestone-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.milestone-date {
    font-size: 13px;
    color: var(--text-light);
    min-width: 100px;
}

.milestone-text {
    font-size: 15px;
    font-weight: bold;
}

/* ===== Plans Page ===== */
.plans-stats {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.plans-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--pink-light);
    border-radius: 50px;
    margin-top: 10px;
    overflow: hidden;
}

.plans-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    border-radius: 50px;
    width: 0%;
    transition: width 0.5s ease;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.plan-item:hover {
    transform: translateY(-2px);
    border-color: var(--brown-light);
}

.plan-item.done {
    text-decoration: line-through;
    opacity: 0.7;
    border-color: #4CAF50;
    background: linear-gradient(135deg, #E8F5E9, #FFF0F5);
}

.plan-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.plan-item.done .plan-checkbox {
    background: #4CAF50;
    border-color: #4CAF50;
}

.plan-text {
    flex: 1;
    font-size: 15px;
}

.plan-delete {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition);
    padding: 2px 5px;
}

.plan-delete:hover {
    opacity: 1;
}

.add-plan-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 2px dashed var(--pink);
}

.add-plan-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.add-plan-form {
    display: flex;
    gap: 10px;
}

.add-plan-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--pink);
    border-radius: 50px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: var(--pink-light);
}

.add-plan-form input:focus {
    border-color: var(--pink-dark);
}

.add-btn {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Diary Page ===== */
.diary-form-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 2px dashed var(--purple);
}

.diary-form-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.diary-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diary-form input[type="text"],
.diary-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--purple);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: var(--purple-light);
    resize: vertical;
}

.diary-form input:focus,
.diary-form textarea:focus {
    border-color: var(--purple-dark);
}

.diary-form-footer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.diary-form-footer input[type="date"] {
    padding: 10px 15px;
    border: 2px solid var(--purple);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: var(--purple-light);
}

.diary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diary-entry {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
    border-left: 4px solid var(--pink);
    transition: var(--transition);
    position: relative;
}

.diary-entry:hover {
    transform: translateX(3px);
}

.diary-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.diary-entry-title {
    font-size: 17px;
    font-weight: bold;
    color: var(--pink-dark);
}

.diary-entry-date {
    font-size: 13px;
    color: var(--text-light);
}

.diary-entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.diary-entry-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition);
}

.diary-entry-delete:hover {
    opacity: 1;
}

/* ===== Recipe Page ===== */
.recipe-form-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border: 2px dashed var(--mint-dark);
}

.recipe-form-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.recipe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recipe-form input[type="text"],
.recipe-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--mint-dark);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: #F0FFF0;
    resize: vertical;
}

.recipe-form input:focus,
.recipe-form textarea:focus {
    border-color: #3CB371;
}

.recipe-form-footer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.recipe-form-footer input[type="date"] {
    padding: 10px 15px;
    border: 2px solid var(--mint-dark);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    background: #F0FFF0;
}

.recipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.recipe-entry {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
    border-top: 4px solid var(--mint-dark);
    transition: var(--transition);
    position: relative;
}

.recipe-entry:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.recipe-entry-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.recipe-entry-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2E8B57;
}

.recipe-entry-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.recipe-entry-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
}

.recipe-entry-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition);
}

.recipe-entry-delete:hover {
    opacity: 1;
}

/* ===== Photos Page ===== */
.photos-upload-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.photos-upload-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.upload-area {
    border: 3px dashed var(--pink);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--pink-light);
}

.upload-area:hover {
    border-color: var(--pink-dark);
    background: rgba(255, 182, 193, 0.2);
}

.upload-area.dragover {
    border-color: var(--purple-dark);
    background: rgba(221, 160, 221, 0.2);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.upload-area p {
    font-size: 15px;
    color: var(--text-light);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.15);
    transition: var(--transition);
    background: var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-strong);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item-placeholder {
    font-size: 40px;
    color: var(--pink);
    text-align: center;
    padding: 20px;
}

.photo-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item:hover .photo-delete-btn {
    opacity: 1;
}

/* ===== Photo Modal ===== */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.photo-modal-close:hover {
    transform: rotate(90deg);
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 182, 193, 0.3);
    margin-top: 30px;
}

.footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-icon:hover {
    opacity: 1;
}

.site-footer p {
    font-size: 16px;
    margin-bottom: 5px;
}

.footer-sub {
    font-size: 14px;
    color: var(--text-light);
}

.footer-emoji {
    margin-top: 10px;
    font-size: 20px;
    letter-spacing: 8px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.empty-state-text {
    font-size: 16px;
}

/* ===== Music Player ===== */
.music-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #e94560, #533483);
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.5);
}

.music-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
}

.music-toggle.playing::after {
    animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle:not(.playing)::after {
    animation: none;
    opacity: 0;
}

.music-controls {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(22, 22, 50, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 14px 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.music-player:hover .music-controls {
    display: flex;
}

.music-songname {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.music-upload-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

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

.music-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 网易云播放器底栏 */
/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Login page responsive */
    .login-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        justify-content: flex-start;
        padding-top: 30px;
        overflow-y: auto;
    }

    .login-intro {
        padding: 10px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .hero-char-img {
        width: 55px;
        height: 55px;
    }

    .profile-name {
        font-size: 13px;
    }

    .counter-icon-img {
        width: 45px;
        height: 45px;
    }

    .counter-big {
        font-size: 30px;
    }

    .unlock-card {
        padding: 30px 25px;
        width: 300px;
    }

    .unlock-title {
        font-size: 22px;
    }

    .login-footer-deco {
        display: none;
    }

    .bg-circle.c1 {
        width: 300px;
        height: 300px;
    }

    .bg-circle.c2 {
        width: 250px;
        height: 250px;
    }

    .top-nav {
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-bottom: 2px solid rgba(255, 182, 193, 0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

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

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

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

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .char-dog, .char-bear {
        font-size: 38px;
    }

    .char-heart {
        font-size: 22px;
    }

    .timer-num {
        font-size: 28px;
    }

    .timer-block {
        min-width: 45px;
    }

    .timer-sep {
        font-size: 20px;
        margin-top: -14px;
    }

    .hero-title h1 {
        font-size: 24px;
    }

    .counter-value {
        font-size: 36px;
    }

    .diary-form-footer {
        flex-direction: column;
    }

    .recipe-form-footer {
        flex-direction: column;
    }

    .add-plan-form {
        flex-direction: column;
    }

    .login-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 15px 10px;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}
