@charset "UTF-8";
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.22);
    --sub-glass-bg: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.35);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --blur-val: blur(28px) saturate(180%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }

body {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    background: linear-gradient(rgba(8, 14, 28, 0.65), rgba(8, 14, 28, 0.85)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') no-repeat center center / cover;
    background-attachment: fixed; color: var(--text-primary); position: relative; overflow-x: hidden; padding: 2rem 1.5rem 1rem;
}

#sakura-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
.ambient-light { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(100px); z-index: 0; opacity: 0.45; animation: float 14s infinite alternate ease-in-out; pointer-events: none; }
.light-1 { top: -5%; left: 5%; background: #0062ff; }
.light-2 { bottom: 10%; right: 5%; background: #00ff87; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, -50px) scale(1.15); } }

.view-section { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1; }
.view-hidden { opacity: 0; transform: scale(0.96); pointer-events: none; position: absolute; visibility: hidden; }

.top-nav { position: absolute; top: 2rem; right: 3rem; display: flex; gap: 1rem; z-index: 10; }
.nav-btn-small { padding: 0.6rem 1.6rem; border-radius: 50px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-size: 0.95rem; cursor: pointer; backdrop-filter: blur(15px); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.nav-btn-small:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.hero-container { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 4rem; min-height: 65vh; }
.hero-left { flex: 1; text-align: left; }
.hero-left h1 { font-size: 4.8rem; font-weight: 800; letter-spacing: -1px; background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-right { flex: 1; display: flex; justify-content: flex-end; }
.hero-slogan-card { padding: 2.2rem 3.5rem; background: var(--glass-bg); backdrop-filter: var(--blur-val); -webkit-backdrop-filter: var(--blur-val); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: var(--glass-shadow); position: relative; }
.hero-slogan-card p { font-size: 2.4rem; font-weight: 300; letter-spacing: 4px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.auth-card { width: 100%; max-width: 420px; padding: 2.5rem; background: rgba(20, 30, 50, 0.65); backdrop-filter: blur(35px); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 28px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); position: relative; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.modal-overlay.active .auth-card { transform: scale(1); }
.auth-card h2 { font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; font-weight: 600; }
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.form-group input[type="text"], .form-group input[type="password"] { width: 100%; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.25); color: #fff; outline: none; font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input[type="text"]:focus, .form-group input[type="password"]:focus { border-color: #00c6ff; background: rgba(0, 0, 0, 0.35); }

/* 文件上传选择器按钮玻璃化 */
input[type="file"] { outline: none; }
input[type="file"]::file-selector-button {
    padding: 0.5rem 1.2rem; margin-right: 1rem;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px; color: #ffffff; font-weight: 500; cursor: pointer;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all 0.3s ease;
}
input[type="file"]::file-selector-button:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.auth-options label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.auth-options input[type="checkbox"] { accent-color: #00c6ff; width: 16px; height: 16px; cursor: pointer; }
.btn-submit { width: 100%; padding: 0.9rem; border-radius: 14px; border: none; background: linear-gradient(135deg, #00c6ff, #0072ff); color: #fff; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3); }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 114, 255, 0.5); }
.auth-switch { margin-top: 1.2rem; text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.auth-switch span { color: #00c6ff; cursor: pointer; text-decoration: underline; }
.btn-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; }
.btn-close:hover { color: #fff; }

.dashboard-header { width: 100%; max-width: 780px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: 0 0.5rem; }
.welcome-badge { font-size: 1.1rem; color: #00ff87; font-weight: 500; background: rgba(0, 0, 0, 0.3); padding: 0.5rem 1.2rem; border-radius: 50px; border: 1px solid rgba(0, 255, 135, 0.3); }
.btn-logout { padding: 0.5rem 1.2rem; border-radius: 50px; background: rgba(255, 75, 75, 0.15); border: 1px solid rgba(255, 75, 75, 0.4); color: #ff8f8f; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; }
.btn-logout:hover { background: rgba(255, 75, 75, 0.3); color: #fff; }

.main-container { width: 100%; max-width: 780px; padding: 3rem 2.5rem; text-align: center; background: var(--glass-bg); backdrop-filter: var(--blur-val); -webkit-backdrop-filter: var(--blur-val); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: var(--glass-shadow); z-index: 1; display: flex; flex-direction: column; gap: 2rem; position: relative; }

/* 卡片液态玻璃美学 */
.hitokoto-card, .weather-card, .nav-btn, .weather-input-group button, .hero-slogan-card {
    position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 18px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hero-slogan-card { border-radius: 28px; }

.hitokoto-card:hover, .weather-card:hover, .nav-btn:hover, .weather-input-group button:hover {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 12px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.4); 
    background: rgba(255, 255, 255, 0.12);  
}

.hitokoto-card::before, .weather-card::before, .nav-btn::before, .weather-input-group button::before, .hero-slogan-card::before,
.hitokoto-card::after, .weather-card::after, .nav-btn::after, .weather-input-group button::after, .hero-slogan-card::after { display: none !important; }

.clock-section { padding-bottom: 0.5rem; }
.clock-time { font-size: 3.8rem; font-weight: 200; letter-spacing: 2px; font-variant-numeric: tabular-nums; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); line-height: 1.1; }
.clock-date { font-size: 1.05rem; color: var(--text-secondary); font-weight: 300; margin-top: 0.4rem; }

.hitokoto-card { padding: 1.2rem 1.5rem; cursor: pointer; }
.hitokoto-text { font-size: 1.05rem; font-style: italic; line-height: 1.6; }
.hitokoto-from { font-size: 0.85rem; color: var(--text-secondary); display: block; margin-top: 0.5rem; text-align: right; }

.weather-card { padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.weather-input-group { display: flex; gap: 0.6rem; width: 100%; max-width: 360px; }
.weather-input-group input { flex: 1; padding: 0.65rem 1.2rem; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.25); color: var(--text-primary); outline: none; font-size: 0.95rem; }

/* 天气按钮透明化 */
.weather-input-group button { padding: 0.65rem 1.4rem; border-radius: 14px; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 0.95rem; font-weight: 500; }
.weather-input-group button:hover { background: rgba(255, 255, 255, 0.15); transform: scale(1.02); }

.weather-display-area { width: 100%; display: flex; flex-direction: column; gap: 0.8rem; }
.weather-current { font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary); }
.weather-forecast-highlight { font-size: 0.95rem; padding: 0.6rem 1rem; background: rgba(0, 0, 0, 0.2); border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.2); display: none; color: #ffd880; }
.forecast-toggle-btn { background: none; border: none; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; cursor: pointer; text-decoration: underline; margin-top: -0.4rem; display: none; }
.forecast-toggle-btn:hover { color: #fff; }
.forecast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; width: 100%; margin-top: 0.5rem; display: none; }
.forecast-item { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 0.6rem 0.4rem; font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; }
.forecast-item .f-date { font-weight: bold; color: #fff; }
.forecast-item .f-temp { color: #a8ffb2; }

.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.nav-btn { display: flex; align-items: center; justify-content: center; padding: 1.2rem 1rem; text-decoration: none; color: var(--text-primary); }

.contact-section { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.5rem; }
.contact-section h2 { font-size: 1.2rem; margin-bottom: 0.4rem; font-weight: 500; }
.contact-section p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.email-box { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.5rem; background: rgba(0, 0, 0, 0.3); border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.15); text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; }
.email-box:hover { background: rgba(0, 0, 0, 0.5); transform: scale(1.03); }

.footer { z-index: 1; text-align: center; padding: 2rem 1rem 0.5rem; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; width: 100%; }
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--text-primary); text-decoration: underline; }

@media (max-width: 850px) {
    .hero-container { flex-direction: column; text-align: center; gap: 2.5rem; padding: 0 1.5rem; }
    .hero-left { text-align: center; } .hero-left h1 { font-size: 3.2rem; }
    .hero-right { justify-content: center; } .hero-slogan-card p { font-size: 1.6rem; }
    .top-nav { right: 1.5rem; top: 1.5rem; }
    .main-container { padding: 2rem 1.5rem; gap: 1.5rem; }
    .clock-time { font-size: 2.8rem; }
    .action-grid { grid-template-columns: 1fr 1fr; }
    .forecast-grid { grid-template-columns: repeat(2, 1fr); }
}