/* --- ⬇️ (这是 app.css 的完整最终代码) ⬇️ --- */

/* (全部 CSS 样式... ) */
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    overflow-y: auto; 
    overflow-x: hidden;
    color: #fff;
    background: transparent; 
    padding-bottom: 60px; /* (新增) 为固定页脚腾出空间 */
}
* { box-sizing: border-box; }
#video-background {
    position: fixed; right: 0; bottom: 0; min-width: 100%; min-height: 100%;
    z-index: -100; filter: brightness(0.7);
}
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; background-color: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(5px); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; z-index: 10;
}
.nav-logo { font-size: 1.5rem; font-weight: bold; color: #fff; text-decoration: none; cursor: pointer; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-right .info-text { font-size: 0.9rem; color: #ccc; }
.nav-right a { color: #fff; text-decoration: none; font-size: 1rem; padding: 5px 10px; border-radius: 4px; transition: background-color 0.3s; cursor: pointer; }
.nav-right a:hover { background-color: rgba(255, 255, 255, 0.2); }
.btn-primary { background-color: #007bff; border: none; color: white !important; }
.btn-secondary { background-color: #6c757d; border: none; color: white !important; }
.user-info { display: flex; align-items: center; gap: 20px; }
.hidden { display: none !important; }

/* (这是用于登录/注册/表单的弹窗) */
.form-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px);
    z-index: 100; display: none; align-items: center; justify-content: center;
}
.form-modal {
    background: #fff; padding: 25px 30px; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 350px; color: #333; position: relative;
}
.modal-close {
    position: absolute; top: 10px; right: 15px; font-size: 1.8rem;
    font-weight: bold; color: #aaa; cursor: pointer;
    z-index: 101; 
}
.modal-close:hover { color: #333; }
.modal-form h2 { text-align: center; margin-top: 0; margin-bottom: 20px; }
.modal-form input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.modal-form button { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.modal-form p { margin-top: 15px; font-size: 0.9rem; text-align: center; }
.modal-form a { color: #007bff; text-decoration: none; cursor: pointer; }
.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
}
.form-links a { color: #007bff; text-decoration: none; }
#register-modal button { background: #28a745; }
#reset-password-modal button { background: #ffc107; }

/* (这是主页的样式) */
.main-content {
    display: flex; justify-content: center; align-items: flex-start; 
    min-height: calc(100vh - 70px); 
    height: auto; 
    position: relative; z-index: 1;
    padding: 30px 15px; 
}
.content-wrapper
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
}
.feature-container { display: flex; gap: 30px; }
.feature-card {
    width: 320px; padding: 25px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}
.feature-card h2 { font-size: 1.75rem; font-weight: 600; margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: #eee; margin-bottom: 15px; }
.feature-card textarea { width: 100%; height: 100px; border: none; border-radius: 8px; padding: 10px; background: rgba(255, 255, 255, 0.9); color: #333; resize: none; }

/* --- ⬇️ (这就是您需要的 CSS 样式) ⬇️ --- */
/* (这是您截图中“普通瓶”那排按钮的样式) */
.bottle-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.bottle-type-selector label {
    flex-grow: 1; /* 让它们平分宽度 */
    flex-basis: 0; /* 基础宽度为0 */
    text-align: center;
    min-width: 70px; /* 最小宽度 */
}
.bottle-type-selector input {
    display: none; /* 隐藏原始的 radio 按钮 */
}
.bottle-type-selector span {
    display: block;
    padding: 8px 5px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap; /* (新增) 防止文字换行 */
}
.bottle-type-selector input:checked + span {
    background: #f7b733;
    color: #333;
    font-weight: bold;
    border-color: #f7b733;
}
.bottle-type-selector input:disabled + span {
    opacity: 0.5;
    cursor: not-allowed;
}
/* --- ⬆️ (CSS 结束) ⬆️ --- */

.pickup-icon { font-size: 6rem; text-align: center; margin: 30px 0; opacity: 0.8; }
.my-bottles-list { list-style: none; padding: 0; margin: 0; height: 100px; overflow-y: auto; }
.my-bottles-list li { 
    display: flex; 
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.2); 
    padding: 10px; 
    border-radius: 5px; 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
}
.my-bottles-list li span { 
    margin-left: 10px; 
    color: #ccc; 
    font-size: 0.8rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-action { width: 100%; padding: 12px; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; background: linear-gradient(to right, #f7b733, #fc4a1a); color: #fff; margin-top: 20px; }
.btn-action:hover { opacity: 0.9; box-shadow: 0 2px 10px rgba(252, 74, 26, 0.4); }
.btn-secondary-action { background: none; border: 1px solid #fc4a1a; }

/* (这是 'my-bottles-modal' 的样式) */
#my-bottles-modal .form-modal {
    width: 500px;
}
#my-bottles-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}
#my-bottles-list li {
    padding: 12px;
    background: #f4f4f4;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
#my-bottles-list li:hover {
    background: #e9e9e9;
}
#my-bottles-list li .msg-preview {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
#my-bottles-list li .date-preview {
    font-size: 0.8rem;
    color: #777;
}

/* (这是 'card-pickup' 卡片的 UI 样式) */
.pickup-icon-disabled {
    font-size: 6rem; text-align: center; margin: 30px 0; opacity: 0.4;
}
.bottle-stats {
    display: flex; gap: 15px; align-items: center;
    font-size: 0.8rem; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}
.btn-like {
    background: rgba(255, 255, 255, 0.2); border: none; color: #fff;
    padding: 4px 8px; border-radius: 4px; cursor: pointer;
}
.btn-like:disabled {
    opacity: 0.5; cursor: not-allowed;
}
.bottle-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px; border-radius: 8px; margin-bottom: 15px;
    max-height: 150px;
    overflow-y: auto;
}
.bottle-content p { margin: 0; font-size: 0.9rem; white-space: pre-wrap; word-wrap: break-word; }
.bottle-content .meta {
    font-size: 0.75rem; color: #ccc; margin-top: 10px;
    display: block;
}
.bottle-reply p {
    font-size: 0.9rem; margin-bottom: 10px;
}
.bottle-reply textarea {
    height: 60px; 
}
.bottle-reply-actions {
    display: flex; gap: 10px; margin-top: 15px;
}
.bottle-reply-actions button {
    flex: 1; 
    margin-top: 0; 
    padding: 10px;
}
.btn-throw-back {
    background: #6c757d; 
}
.btn-throw-back:hover {
    background: #5a6268;
}

/* (这是 激活条 的样式) */
.activation-bar
{
    width: 100%; 
    max-width: 980px; 
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px; 
    padding: 15px 20px; 
    display: none;      
    align-items: center;
    justify-content: center; 
    z-index: 50;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.activation-bar p
{
    margin: 0;
    font-size: 0.9rem;
    color: #f7b733;
    font-weight: 500;
}
.activation-bar input
{
    width: 150px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}
.activation-bar button
{
    padding: 8px 15px;
    background: #f7b733;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
.activation-bar button:hover
{
    background: #e0a72f;
}
.activation-bar button:disabled
{
    background: #6c757d;
    cursor: not-allowed;
}

/* --- ⬇️ (这是从 profile.css 合并过来的新样式) ⬇️ --- */

.page-container {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 0;
    min-height: 0;
}
.profile-card {
    width: 100%;
    max-width: 800px;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
    position: relative; 
}
.profile-close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
    z-index: 10;
}
.profile-close-btn:hover {
    color: #fff;
}
.profile-card h1 {
    text-align: center;
    margin-top: 0;
    font-weight: 600;
}
.profile-greeting {
    text-align: center;
    font-size: 1.1rem;
    color: #eee;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 25px;
}
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.tab-button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; 
}
.tab-button:hover {
    background: rgba(255, 255, 255, 0.3);
}
.tab-button.active {
    background: #f7b733;
    border-color: #f7b733;
    font-weight: bold;
}
.tab-content {
    min-height: 200px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* (令牌 (Token) 样式) */
.token-section h2 { margin-top: 0; font-weight: 500; }
.token-description { background: rgba(0, 0, 0, 0.2); padding: 15px; border-radius: 8px; font-size: 0.9rem; color: #eee; margin-bottom: 20px; }
.token-list { list-style: none; padding: 0; margin: 0; }
.token-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.9); color: #333; padding: 15px; border-radius: 8px; margin-bottom: 10px; }
.token-info { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.token-code { font-family: 'Courier New', Courier, monospace; font-size: 1.3rem; font-weight: bold; background: #eee; padding: 5px 10px; border-radius: 4px; }
.token-status { font-size: 0.9rem; color: #555; }
.token-actions button { border: none; padding: 8px 12px; border-radius: 5px; font-size: 0.9rem; cursor: pointer; margin-left: 10px; color: white; transition: background-color 0.3s; }
.btn-publish { background-color: #28a745; }
.btn-delete { background-color: #dc3545; }
.btn-share { background-color: #007bff; }
.btn-share:hover { background-color: #0056b3; }
.btn-publish:disabled,
.btn-share:disabled { 
     background-color: #6c757d; 
     opacity: 0.7; 
     cursor: not-allowed; 
}


/* ("我的瓶子" Tab 样式) */
.my-bottles-pane-list { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.my-bottles-pane-list li { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    padding: 12px; 
    background: rgba(255, 255, 255, 0.9); 
    color: #333; 
    border-radius: 5px; 
    margin-bottom: 10px; 
}
.bottle-list-info {
    flex: 1; 
    cursor: pointer;
    margin-right: 15px; 
    min-width: 0; 
}
.my-bottles-pane-list li:hover { background: #f0f0f0; }
.my-bottles-pane-list li .msg-preview { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.my-bottles-pane-list li .date-preview { font-size: 0.8rem; color: #777; }

/* ("封存" 按钮样式) */
.bottle-list-actions {
    margin-top: 5px;
}
.btn-archive {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-archive:hover {
    background-color: #0056b3;
}
.status-archived {
    font-size: 0.9rem;
    font-weight: bold;
    color: #28a745; 
}

/* ("扔回大海" 按钮样式 - profile.html) */
.bottle-list-actions .btn-throw-back {
    background-color: #6c757d; 
    border: none;
    color: white;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 0; 
}
.bottle-list-actions .btn-throw-back:hover {
    background-color: #5a6268;
}


/* ("我的回响" Tab 样式) */
.echo-list { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.echo-item { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 15px; 
    border-left: 4px solid #f7b733;
    position: relative; 
}
.echo-reply { font-size: 1.1rem; font-weight: 600; margin: 0 0 10px 0; }
.echo-meta { font-size: 0.8rem; color: #ccc; margin-bottom: 10px; }
.echo-original-message { background: rgba(0, 0, 0, 0.2); padding: 10px; border-radius: 5px; font-size: 0.9rem; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-hide-echo,
.btn-hide-notification {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-hide-echo:hover,
.btn-hide-notification:hover {
    background: rgba(255, 255, 255, 0.4);
}


/* ("我的通知" Tab 样式) */
.notification-list { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.notification-item { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    border-left: 4px solid #6c757d; 
    position: relative; 
}
.notification-item.unread { background: rgba(247, 183, 51, 0.2); border-left: 4px solid #f7b733; }
.notification-icon { font-size: 1.5rem; }
.notification-content { flex: 1; }
.notification-content p { margin: 0; line-height: 1.4; }
.notification-content .message { font-weight: 600; }
.notification-content .bottle-preview { font-size: 0.9rem; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 500px; }
.unread-dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; background-color: #dc3545; border-radius: 50%; border: 2px solid #fff; }

/* (地图 Modal 样式) */
.map-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px);
    z-index: 100; display: none; align-items: center; justify-content: center;
}
.map-modal-content {
    background: #fff; 
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 80vw;
    height: 80vh;
    color: #333; 
    position: relative;
    display: flex;
    padding: 0;
}

.map-sidebar {
    flex-basis: 30%; 
    min-width: 250px;
    height: 100%;
    background: #f4f4f4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
}
.map-sidebar h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
.map-bottle-content {
    flex: 1; 
    overflow-y: auto; 
    white-space: pre-wrap; 
    line-height: 1.6;
    font-size: 0.9rem;
}

.map-main-content {
     flex-basis: 70%; 
     height: 100%;
     border-radius: 0 8px 8px 0;
}
#echarts-map-container {
    width: 100%;
    height: 100%;
}

/* (新增) 下拉排行榜样式 */
.leaderboard-nav-item {
    position: relative; 
}
#leaderboard-trigger {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}
#leaderboard-trigger:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
#leaderboard-dropdown {
    position: absolute;
    top: 120%; 
    right: 0;
    width: 420px; 
    background: rgba(20, 20, 20, 0.9); 
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 110;
    max-height: 400px; 
    overflow-y: auto;  
    padding: 10px;
}
#leaderboard-list-content {
    list-style: none;
    padding: 0;
    margin: 0;
}
.leaderboard-list-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.leaderboard-list-item:last-child {
    border-bottom: none;
}
.leaderboard-list-item .rank {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f7b733;
    width: 40px; 
    flex-shrink: 0;
}
.leaderboard-list-item .details {
    flex-grow: 1;
    font-size: 0.9rem;
}
.leaderboard-list-item .details strong {
    color: #fff;
    font-weight: 600;
    display: block;
}
.leaderboard-list-item .details .stats {
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    gap: 15px; 
    margin-top: 5px;
}

/* (新增) 页脚和打赏样式 */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 10px 0;
    z-index: 9;
}
.footer-bar a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}
.footer-bar a:hover {
    color: #fff;
}

#coffee-modal-content {
    width: 350px;
    padding: 25px 30px;
}
#coffee-modal-content h2 {
    text-align: center;
    margin-top: 0;
}
.qr-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.qr-tab-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #555;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}
.qr-tab-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.qr-code-container {
    text-align: center;
}
.qr-code-container img {
    /* (这是对 "二维码太大" Bug 的修复) */
    width: 100%;
    max-width: 250px; 
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}
/* --- ⬆️ (合并样式结束) ⬆️ --- */


/* --- ⬇️ (手机/平板 响应式布局) ⬇️ --- */

@media (max-width: 1020px) {
    
    .main-content {
        padding: 30px 15px;
        align-items: flex-start; 
    }
    
    .feature-container {
        flex-direction: column;   
        align-items: center;    
        width: 100%;
    }

    .feature-card {
        width: 100%;       
        max-width: 500px; 
        flex-shrink: 1;   
        padding: 20px 15px; 
    }
    
    /* (这是对 "卡片太长" Bug 的修复) */
    .feature-card h2 {
        font-size: 1.4rem; 
        margin-bottom: 15px;
    }
    .feature-card p {
        margin-bottom: 10px; 
    }
    .feature-card textarea {
        height: 70px; /* 缩短文本框 */
    }
    .btn-action {
        margin-top: 15px; 
    }
    
    .pickup-icon, .pickup-icon-disabled {
        font-size: 4rem; /* 缩小酒瓶图标 */
        margin: 20px 0;
    }
    
    .my-bottles-list {
        height: 80px; /* 缩短 "我的瓶子" 预览列表 */
    }
    
    .activation-bar {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .activation-bar input {
        width: 100%;
        max-width: 250px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: flex-end; 
    }

    .nav-right .info-text {
        display: none !important; 
    }

    .form-modal {
        width: 90vw;
    }
    
    .profile-card {
        width: 100%;
        padding: 20px;
    }
    
    #leaderboard-dropdown {
        width: 90vw;
        max-width: 400px; 
    }
    
    .map-modal-content {
        width: 95vw;
        height: 70vh;
        flex-direction: column; 
    }
    .map-sidebar {
        flex-basis: 40%; 
        border-right: none;
        border-bottom: 1px solid #ddd;
        border-radius: 8px 8px 0 0;
    }
    .map-main-content {
        flex-basis: 60%; 
        border-radius: 0 0 8px 8px;
    }
    
    .footer-bar {
        gap: 15px;
    }
    .footer-bar a {
        font-size: 0.75rem;
    }
    /* (这是对 "二维码太大" Bug 的修复) */
    #coffee-modal-content {
        width: 90vw;
    }
    #coffee-modal-content .qr-code-container img {
        width: 100%;
        height: auto;
        max-width: 250px;
    }
}

@media (max-width: 400px) {
    .top-nav {
        padding: 15px 10px; 
        flex-wrap: wrap; 
        justify-content: center;
    }
    .nav-logo {
        font-size: 1.2rem; 
    }
}
/* --- ⬇️ (强力修复版) 滚动公告栏样式 ⬇️ --- */

/* 1. 外层条：半透明黑色背景 */
.announcement-bar {
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.65) !important; /* 强制黑色半透明 */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* 关键：给子元素定位 */
    z-index: 8;
    overflow: hidden; /* 关键：隐藏跑出去的字 */
    display: flex;
    align-items: center;
    justify-content: center; /* 让内容居中 */
    margin-bottom: -15px; /* 稍微调整位置 */
}

/* 2. 滚动区域包裹器 (新增，为了稳住布局) */
.announcement-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 3. 滚动的文字本体 */
.announcement-text {
    position: absolute;
    top: 0;
    height: 100%;
    line-height: 36px; /* 垂直居中 */
    white-space: nowrap; /* 绝不换行 */
    font-size: 0.9rem;
    color: #f7b733; /* 亮黄色 */
    font-weight: 500;
    
    /* 动画：20秒跑完一圈，无限循环，匀速 */
    animation: real-scroll 20s linear infinite;
    
    /* 初始位置 */
    left: 100%;
    transform: translateX(0);
}

/* 4. 动画定义：从屏幕最右边跑到最左边 */
@keyframes real-scroll {
    from {
        transform: translateX(0);
    }
    to {
        /* 这里的 -100vw 保证它跑出屏幕宽度，-100% 保证文字本身长度也跑出去 */
        transform: translateX(calc(-100vw - 100%));
    }
}

/* 5. 那个"小白块"的修复：去背景、去边框、定位到右边 */
.close-announcement {
    position: absolute !important;
    right: 10px !important;
    top: 0 !important;
    height: 36px !important;
    width: 30px !important;
    
    background: transparent !important; /* ⚠️ 去掉白色背景 */
    border: none !important;            /* ⚠️ 去掉边框 */
    outline: none !important;
    
    color: #fff !important;
    font-size: 1.5rem !important;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.close-announcement:hover {
    color: #f7b733 !important;
}

/* 鼠标放上去暂停 */
.announcement-bar:hover .announcement-text {
    animation-play-state: paused;
}
/* --- ⬆️ 样式结束 ⬆️ --- */