/* ================= 核心变量 ================= */
:root {
    --primary: #D4AF37; 
    --primary-light: #F4D078;
    --bg-deep: #050505;
    --text-main: #E0E0E0;
    --border-light: rgba(255, 255, 255, 0.1);
}

body { 
    margin: 0; 
    background-color: var(--bg-deep);
    font-family: 'Noto Serif SC', 'Rajdhani', sans-serif;
    color: var(--text-main); user-select: none;
    overflow-x: hidden; min-height: 100vh;
    position: relative;
}

/* 背景图层 */
body::before {
    content: '';
    position: fixed; inset: 0; 
    background: url('../image/zzzzzzbeij.png') no-repeat center center;
    background-size: cover;
    opacity: 0.08; 
    z-index: -1; 
    pointer-events: none;
}

/* 背景大字 */
.bg-typography {
    position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
    font-family: 'Cinzel', serif; font-weight: 800;
    font-size: 12vw; line-height: 1; text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: 0; pointer-events: none; white-space: nowrap;
    filter: blur(2px);
}

/* ================= 导航栏 ================= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 70px;
    padding: 0 40px; display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light); z-index: 100;
}
.nav-logo { font-family: 'Cinzel'; font-size: 22px; color: #fff; letter-spacing: 3px; font-weight: 700; }
.nav-right-group { display: flex; align-items: center; gap: 20px; }

.nav-back-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    color: #ccc; padding: 8px 20px; font-family: 'Noto Serif SC', sans-serif;
    font-weight: 600; font-size: 13px; letter-spacing: 2px;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center;
}
.nav-back-btn:hover { border-color: var(--primary); color: #fff; background: rgba(255,255,255,0.1); box-shadow: 0 0 10px rgba(212,175,55,0.2); }

.user-profile { display: flex; align-items: center; gap: 20px; border-right: 1px solid rgba(255,255,255,0.15); padding-right: 20px; }
.user-info-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.3s; }
.user-info-trigger:hover { opacity: 0.8; }
.user-name { font-family: 'Rajdhani'; font-size: 16px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.logout-btn-nav { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 6px 12px; font-size: 12px; cursor: pointer; font-family: 'Noto Serif SC'; transition: 0.3s; font-weight: bold; }
.logout-btn-nav:hover { background: var(--primary); color: #000; }

/* ================= 弹窗通用 ================= */
.overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.modal-box {
    width: 400px; padding: 50px 40px 40px; background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--primary); box-shadow: 0 0 50px rgba(0,0,0,0.8);
    text-align: center; position: relative; transform: translateY(20px); transition: transform 0.4s;
}
.overlay.visible .modal-box { transform: translateY(0); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #666; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: #fff; transform: rotate(90deg); }
.modal-back-home { position: absolute; top: 15px; left: 15px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); font-family: 'Noto Serif SC'; font-size: 12px; color: #888; cursor: pointer; transition: 0.3s; }
.modal-back-home:hover { color: #fff; border-color: var(--primary); }

.auth-title { font-family: 'Noto Serif SC'; font-size: 24px; color: #fff; margin-bottom: 30px; letter-spacing: 2px; font-weight: 700; }
.input-group { margin-bottom: 20px; text-align: left; }
.input-label { font-size: 12px; color: var(--primary); font-family: 'Rajdhani'; letter-spacing: 1px; margin-bottom: 5px; display: block; font-weight: 600; }
.auth-input { width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: 'Rajdhani'; font-size: 16px; box-sizing: border-box; transition: 0.3s; }
.auth-input:focus { border-color: var(--primary); outline: none; background: rgba(255,255,255,0.08); }
.auth-btn { width: 100%; padding: 12px; background: var(--primary); border: none; color: #000; font-family: 'Rajdhani'; font-weight: 700; font-size: 16px; letter-spacing: 4px; cursor: pointer; margin-top: 10px; transition: 0.3s; position: relative; overflow: hidden; }
.auth-btn:hover { box-shadow: 0 0 30px var(--primary); transform: translateY(-2px); }
.switch-area { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; color: #888; cursor: pointer; display: flex; justify-content: center; gap: 8px; transition: 0.3s; }
.switch-highlight { color: var(--primary); font-weight: 700; font-family: 'Rajdhani'; transition: 0.3s; position: relative; }
.switch-area:hover .switch-highlight { color: var(--primary-light); text-shadow: 0 0 10px rgba(212,175,55,0.6); }
.hidden-panel { display: none !important; }

.profile-big-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--primary); object-fit: cover; margin: 0 auto 20px; display: block; cursor: pointer; transition: 0.3s; }
.profile-big-avatar:hover { transform: scale(1.05); }
.stats-row { display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; margin-top: 25px; }
.stat-item { flex: 1; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border: none; }
.stat-num { font-family: 'Rajdhani'; font-size: 36px; color: var(--primary); font-weight: 700; line-height: 1; }
.stat-label { font-family: 'Noto Serif SC'; font-size: 12px; color: #888; margin-top: 5px; font-weight: 600; }
.avatar-upload { text-align: center; margin-bottom: 25px; }
.avatar-label { cursor: pointer; display: inline-block; transition: 0.3s; position: relative; }
.avatar-preview { width: 90px; height: 90px; border-radius: 50%; border: 2px dashed var(--primary); background: rgba(212, 175, 55, 0.05); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.upload-hint { font-size: 12px; color: var(--primary); line-height: 1.4; }

/* ================= 酒窖列表布局 ================= */
.cellar-container { display: flex; height: 100vh; padding-top: 70px; opacity: 0; transition: opacity 1s; pointer-events: none; position: relative; z-index: 10; }
.cellar-container.visible { opacity: 1; pointer-events: auto; }
.cellar-section { flex: 1; border-right: 1px solid rgba(255,255,255,0.05); padding: 40px; display: flex; flex-direction: column; overflow-y: auto; }
.cellar-section:last-child { border-right: none; }
.section-header { text-align: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--primary); position: relative; }
.section-title-en { font-family: 'Cinzel'; font-size: 28px; color: var(--primary); letter-spacing: 6px; font-weight: 700; }
.section-title-cn { font-size: 14px; color: #888; margin-top: 8px; letter-spacing: 3px; font-weight: 300; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 25px; padding: 20px; }

.bottle-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: 0.4s; position: relative; background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.005)); padding: 25px 15px; border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; pointer-events: auto !important; }
.bottle-item:hover { background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), rgba(0,0,0,0.2)); border-color: var(--primary); transform: translateY(-10px); }
.delete-btn { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.8); border: 1px solid #555; color: #ccc; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 20; }
.bottle-item:hover .delete-btn { opacity: 1; visibility: visible; }
.delete-btn:hover { background: #D32F2F; border-color: #ff4d4d; color: #fff; transform: scale(1.15) rotate(90deg); }
.bottle-img-box { height: 200px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 20px; pointer-events: none; transition: 0.4s; }
.bottle-img-box img { max-height: 100%; max-width: 100%; object-fit: contain; transition: 0.4s; }
.bottle-item:hover img { transform: scale(1.1); }
.bottle-name { font-family: 'Rajdhani'; font-size: 15px; color: #fff; text-align: center; font-weight: 700; line-height: 1.2; pointer-events: none; }
.bottle-cn { font-size: 12px; color: #999; margin-top: 6px; pointer-events: none; font-weight: 300; }
.collection-time { font-size: 10px; color: var(--primary); margin-top: 12px; opacity: 0.5; pointer-events: none; letter-spacing: 2px; }
.empty-state { text-align: center; color: #444; margin-top: 100px; font-family: 'Noto Serif SC'; }
.empty-icon { font-size: 50px; margin-bottom: 15px; opacity: 0.3; }

/* ================= 奢华详情页 ================= */
.detail-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: #000; 
    display: flex; opacity: 0; visibility: hidden; pointer-events: none;
    overflow: hidden;
}
.detail-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.detail-backdrop {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    filter: blur(40px) brightness(0.2); transform: scale(1.2);
}

.particles-container { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle { position: absolute; background: var(--primary); border-radius: 50%; opacity: 0; filter: blur(1px); animation: floatUp linear infinite; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 20% { opacity: 0.6; } 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } }

.detail-close {
    position: absolute; top: 40px; right: 50px; z-index: 50;
    font-family: 'Noto Serif SC'; font-size: 14px; letter-spacing: 3px; color: rgba(255,255,255,0.6);
    cursor: pointer; display: flex; align-items: center; gap: 15px;
    transition: 0.4s; mix-blend-mode: difference; padding: 10px; font-weight: bold;
}
.detail-close:hover { color: var(--primary); transform: scale(1.1); }
.detail-close span { font-size: 28px; line-height: 0.5; font-weight: 300; }

.detail-content {
    position: relative; z-index: 10; width: 100%; height: 100%;
    display: grid; grid-template-columns: 50% 50%;
}

.detail-visual {
    position: relative; display: flex; align-items: center; justify-content: center;
    perspective: 1000px;
}
.detail-bottle-glow {
    position: absolute; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 60%);
    border-radius: 50%; filter: blur(80px); mix-blend-mode: screen;
    opacity: 0; transition: transform 0.1s linear;
}
.detail-bottle-img {
    max-height: 75vh; max-width: 85%; z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.9));
    opacity: 0; 
}

.detail-info {
    padding: 100px 80px 80px; display: flex; flex-direction: column; justify-content: center;
    overflow-y: auto;
}
.dt-anim { opacity: 0; transform: translateY(30px); }

.dt-subtitle { 
    font-family: 'Noto Serif SC', sans-serif; font-size: 16px; color: var(--primary); 
    letter-spacing: 4px; margin-bottom: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; 
}
.dt-subtitle::before { content: ''; display: block; width: 30px; height: 2px; background: var(--primary); }

.dt-title-en { font-family: 'Cinzel'; font-size: 64px; color: #fff; line-height: 1; margin: 0; font-weight: 800; letter-spacing: -1px; }
.dt-title-cn { font-family: 'Noto Serif SC'; font-size: 24px; color: #aaa; margin-top: 15px; letter-spacing: 4px; font-weight: 300; }
.dt-divider { width: 0; height: 3px; background: linear-gradient(90deg, var(--primary), transparent); margin: 40px 0; opacity: 0.7; }

/* [核心] 用户笔记区域 */
.user-note-container { margin-bottom: 40px; padding: 20px; background: rgba(255,255,255,0.02); border-left: 2px solid var(--primary); border-radius: 0 4px 4px 0; }
.note-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.note-label { font-family: 'Noto Serif SC'; font-weight: 700; color: #fff; font-size: 16px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.note-label::before { content: '✎'; color: var(--primary); }

/* 日期显示 */
.note-date { 
    font-family: 'Rajdhani'; color: var(--primary); font-size: 12px; letter-spacing: 1px; 
    opacity: 0; transition: 0.5s; font-weight: 600; text-transform: uppercase;
}
.note-date.visible { opacity: 1; }

.user-note-textarea {
    width: 100%; height: 100px; background: transparent;
    border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
    color: #ddd; font-family: 'Noto Serif SC'; font-size: 14px; line-height: 1.8;
    padding: 10px 0; box-sizing: border-box; resize: none; transition: 0.3s;
}
.user-note-textarea:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.02); padding-left: 10px; }
.user-note-textarea::placeholder { color: #555; font-style: italic; }

.note-footer { display: flex; justify-content: flex-end; margin-top: 15px; }
.save-note-btn {
    background: transparent; border: 1px solid #666; color: #888;
    padding: 6px 20px; font-family: 'Noto Serif SC'; font-size: 12px; cursor: pointer; transition: 0.3s; letter-spacing: 1px;
}
.save-note-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(212,175,55,0.05); }

/* [核心] 评分系统 */
.rating-container { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.rating-label { font-family: 'Oswald'; color: #888; font-size: 14px; letter-spacing: 2px; }
.stars-wrapper { display: flex; gap: 8px; cursor: pointer; }
.star { font-size: 24px; color: #333; transition: 0.3s; user-select: none; }
.star.active { color: var(--primary); text-shadow: 0 0 15px var(--primary); }
.star:hover { transform: scale(1.2); color: var(--primary-light); }

.dt-meta { display: flex; gap: 60px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.meta-box span { display: block; font-family: 'Rajdhani'; font-size: 11px; color: #888; letter-spacing: 3px; margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.meta-box strong { font-family: 'Oswald'; font-size: 28px; color: #fff; font-weight: 400; letter-spacing: 1px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
