/* ================= 核心变量 (与我的.html保持一致) ================= */
:root {
    --primary: #D4AF37; 
    --primary-light: #F4D078;
    --bg-deep: #050505;
    --text-main: #E0E0E0;
    --border-light: rgba(255, 255, 255, 0.1);
}

/* --- 基础设置 --- */
body { margin: 0; background: #000000; overflow: hidden; font-family: 'Noto Serif SC', 'Rajdhani', sans-serif; color: #e0e0e0; user-select: none; }
#webgl { position: fixed; inset: 0; z-index: 1; }
::-webkit-scrollbar { width: 0; }

/* --- 首页 UI --- */
.home-ui { position: fixed; inset: 0; z-index: 10; pointer-events: none; transition: opacity 0.8s; }

.hero-text {
    position: absolute; top: 45%; left: 80px; transform: translateY(-50%);
    max-width: 400px; pointer-events: auto;
}
.hero-sub { color: var(--primary); font-size: 0.75rem; margin-bottom: 20px; font-weight: 400; letter-spacing: 4px; font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.hero-title { font-family: 'Noto Serif SC', serif; font-weight: 900; font-size: 3.5rem; line-height: 1.2; margin-bottom: 25px; color: #fff; text-shadow: 0 0 40px rgba(0,0,0,0.8); }
.hero-desc { font-size: 0.9rem; line-height: 1.8; color: #bbb; margin-bottom: 40px; font-weight: 300; border-left: 2px solid var(--primary); padding-left: 20px; }
.hero-cta { display: inline-flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.4s; pointer-events: auto; padding: 10px 0; }
.hero-cta:hover { opacity: 0.8; gap: 20px; }
.cta-text { font-size: 0.9rem; font-weight: 400; color: #fff; letter-spacing: 2px; font-family: 'Oswald'; text-transform: uppercase; }
.cta-icon { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: #fff; transition: 0.4s; }
.hero-cta:hover .cta-icon { border-color: var(--primary); color: var(--primary); transform: rotate(-45deg); }
.drag-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: #666; font-size: 0.7rem; letter-spacing: 3px; animation: fadePulse 3s infinite; opacity: 0; visibility: hidden; transition: opacity 1s; font-family: 'Oswald'; text-transform: uppercase; }
@keyframes fadePulse { 0%,100%{opacity:0.2} 50%{opacity:0.6} }

/* --- 返回按钮 --- */
.back-btn {
    position: absolute; top: 30px; right: 40px; z-index: 100;
    display: flex; align-items: center; gap: 12px; padding: 10px 24px 10px 18px;
    background: rgba(198, 166, 100, 0.05); border: 1px solid rgba(198, 166, 100, 0.4);
    border-radius: 50px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: var(--primary); font-family: 'Oswald', sans-serif; font-size: 0.85rem;
    letter-spacing: 3px; text-transform: uppercase; font-weight: 400;
    cursor: pointer; pointer-events: auto; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0; visibility: hidden; transform: translateY(-20px);
}
.back-btn:hover {
    background: rgba(198, 166, 100, 0.15); border-color: rgba(198, 166, 100, 1);
    box-shadow: 0 0 25px rgba(198, 166, 100, 0.5), inset 0 0 15px rgba(198, 166, 100, 0.2);
    color: #fff; padding-right: 28px; gap: 16px;
}
.back-btn::before { content: '‹'; font-family: system-ui, sans-serif; font-size: 1.6rem; line-height: 0.7; transition: transform 0.4s ease; color: inherit; display: inline-block; margin-top: -2px; }
.back-btn:hover::before { transform: translateX(-5px); }

/* --- 详情页全屏覆盖层 --- */
.detail-layer {
    position: fixed; inset: 0; z-index: 20;
    background: linear-gradient(135deg, rgba(5,5,5,0.98) 0%, rgba(15,15,15,0.95) 100%);
    display: flex; flex-direction: column; padding: 2vh 80px 4vh 80px; 
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1); color: #fff; justify-content: flex-start;
}
.detail-layer.active { opacity: 1; visibility: visible; pointer-events: auto; }

.top-nav { display: flex; justify-content: center; align-items: center; position: relative; margin-bottom: 1vh; min-height: 40px; }
.breadcrumbs { display: flex; gap: 15px; font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; padding: 8px 0; color: #555; font-family: 'Oswald', sans-serif; font-weight: 300; }
.nav-item { transition: 0.3s; position: relative; }
.nav-link { cursor: pointer; color: #777; } .nav-link:hover { color: var(--primary); } .nav-divider { color: #333; } .nav-current { color: #fff; pointer-events: none; }

.header-section { text-align: center; margin-bottom: 2vh; position: relative; z-index: 2; }
.main-title { font-family: 'Oswald', sans-serif; font-size: 3.5rem; line-height: 1; text-transform: uppercase; margin: 0; letter-spacing: 2px; color: #fff; font-weight: 300; background: linear-gradient(to bottom, #fff, #999); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub-title { font-size: 1rem; color: var(--primary); letter-spacing: 8px; margin-top: 5px; font-weight: 300; opacity: 0.9; }

.content-grid { display: grid; grid-template-columns: 260px 1fr 280px; gap: 50px; flex: 1; align-items: center; height: auto; margin-top: 1vh; margin-bottom: 2vh; }
.col-left { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: center; }
.distillery-card { width: 100%; height: 200px; background: #000; position: relative; overflow: hidden; cursor: pointer; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.distillery-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.distillery-card:hover .distillery-img { opacity: 0.4; transform: scale(1.1); }
.distillery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); pointer-events: none; }
.overlay-text { color: #fff; font-family: 'Oswald'; letter-spacing: 2px; font-size: 0.8rem; }
.overlay-sub { color: var(--primary); font-size: 0.6rem; letter-spacing: 1px; margin-top: 5px; opacity: 0; transform: translateY(10px); transition: 0.4s; }
.distillery-card:hover .overlay-sub { opacity: 1; transform: translateY(0); }
.distillery-desc { font-size: 0.85rem; line-height: 1.7; color: #999; text-align: justify; font-weight: 300; }

/* 左侧信息区块 */
.left-info-section { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(198, 166, 100, 0.2); }
.left-info-section:first-of-type { border-top: none; margin-top: 10px; }
.info-block { display: flex; justify-content: space-between; align-items: center; }
.info-label { font-size: 0.75rem; color: #666; letter-spacing: 2px; text-transform: uppercase; font-family: 'Oswald'; font-weight: 300; }
.info-value { font-size: 0.95rem; color: #ddd; font-family: 'Noto Serif SC'; font-weight: 400; text-align: right; }
.info-label-title { font-size: 0.8rem; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; font-family: 'Oswald'; font-weight: 400; margin-bottom: 12px; }
.pairing-items { display: flex; flex-direction: column; gap: 10px; }
.pairing-item { font-size: 0.85rem; color: #aaa; padding: 8px 12px; background: rgba(198, 166, 100, 0.05); border-left: 2px solid var(--primary); padding-left: 12px; font-family: 'Noto Serif SC'; font-weight: 300; }

.col-center { position: relative; height: 100%; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.bottle-bg { position: absolute; width: 80%; height: 80%; top: 10%; background: radial-gradient(closest-side, rgba(198, 166, 100, 0.1) 0%, transparent 100%); z-index: -1; opacity: 0.8; filter: blur(40px); }
@keyframes starFloat { 0% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)); } 50% { transform: translateY(-15px) rotate(1deg); filter: drop-shadow(0 40px 50px rgba(198, 166, 100, 0.2)); } 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)); } }
.bottle-img { height: 100%; max-height: 50vh; object-fit: contain; animation: starFloat 7s ease-in-out infinite; will-change: transform; }

.col-right { display: flex; flex-direction: column; gap: 30px; justify-content: center; }
.premium-section-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 15px; position: relative; padding-left: 15px; }
.premium-section-title::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: var(--primary); }
.title-cn { font-family: 'Noto Serif SC', serif; font-size: 0.95rem; color: #fff; font-weight: 700; letter-spacing: 2px; }
.title-en { font-family: 'Oswald', sans-serif; font-size: 0.6rem; color: #666; letter-spacing: 3px; text-transform: uppercase; }
.note-item { display: grid; grid-template-columns: 60px 1fr; gap: 15px; align-items: baseline; margin-bottom: 12px; }
.n-cn { font-size: 0.85rem; color: #aaa; font-weight: 400; font-family: 'Noto Serif SC'; display: block;}
.n-en { font-size: 0.5rem; color: #555; font-family: 'Oswald'; letter-spacing: 1px; text-transform: uppercase; display: block; margin-top: 2px;}
.note-text { font-size: 0.85rem; color: #ddd; line-height: 1.5; font-weight: 300; }
.flavor-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 5px; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.bar-label-box { width: 70px; text-align: right; }
.b-cn { font-size: 0.8rem; color: #aaa; font-family: 'Noto Serif SC'; }
.b-en { font-size: 0.5rem; color: #555; font-family: 'Oswald'; letter-spacing: 1px; text-transform: uppercase; }
.bar-track { flex: 1; height: 1px; background: rgba(255,255,255,0.1); position: relative; display: flex; align-items: center; }
.bar-fill { height: 2px; background: var(--primary); width: 0%; box-shadow: 0 0 8px rgba(198, 166, 100, 0.6); transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s; }

.stats-container { margin: 0 auto; display: flex; gap: 60px; padding: 15px 60px; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); margin-top: auto; margin-bottom: 2vh; }
.stat-item { text-align: center; min-width: 100px; }
.stat-val { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: 300; color: #fff; line-height: 1; margin-bottom: 5px; }
.s-cn { font-size: 0.75rem; color: #888; letter-spacing: 1px; font-family: 'Noto Serif SC'; font-weight: 500; display: block;}
.s-en { font-size: 0.5rem; color: #444; letter-spacing: 2px; text-transform: uppercase; font-family: 'Oswald'; display: block; margin-top: 2px;}

.fav-btn-container { width: 100%; margin-bottom: 25px; }
.fav-btn {
    position: relative; width: 100%; padding: 12px 0;
    background: rgba(198, 166, 100, 0.05); border: 1px solid rgba(198, 166, 100, 0.3); color: var(--primary);
    font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; align-items: center; justify-content: center; gap: 12px; overflow: hidden;
}
.fav-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 0 25px rgba(198, 166, 100, 0.4); gap: 18px; }
.fav-btn.active { background: transparent; border-color: #fff; color: #fff; }
.fav-btn.active .fav-icon { color: var(--primary); transform: scale(1.2); text-shadow: 0 0 10px rgba(198, 166, 100, 0.8); }
.fav-icon { font-size: 1.1rem; transition: transform 0.4s ease; margin-bottom: 2px; }

/* ================= 统一弹窗样式 (复用我的.html) ================= */
.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; }

/* 头像上传样式 */
.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; }

/* ================= [新增] 成功提示 Toast 样式 ================= */
.toast-notification {
    position: fixed; top: 10%; left: 50%; transform: translate(-50%, -50px);
    background: rgba(198, 166, 100, 0.1); border: 1px solid var(--primary);
    color: #fff; padding: 15px 40px; border-radius: 4px;
    font-family: 'Oswald'; letter-spacing: 2px; text-transform: uppercase;
    box-shadow: 0 0 30px rgba(198, 166, 100, 0.3);
    z-index: 1000; opacity: 0; visibility: hidden; transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; align-items: center; gap: 10px; backdrop-filter: blur(5px);
}
.toast-notification.show { opacity: 1; transform: translate(-50%, 0); }
.check-icon { color: var(--primary); font-size: 1.2rem; }
