/* (app.css) - [V1 - REVERT] */

/* --- 全局和背景 --- */
* {
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333; 
    overflow-x: hidden; 
    padding-top: 90px; 
}
.background-container {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2; overflow: hidden; background: #1a202c;
}
.background-container video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    object-fit: cover; filter: brightness(0.9);
}
.background-container::after {
    content: ''; position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* --- 滚动公告栏 --- */
.announcement-bar {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 30px; 
    background: rgba(255, 165, 0, 0.8);
    color: #fff;
    padding: 5px 0;
    font-size: 0.9rem;
    z-index: 101; 
    overflow: hidden;
    white-space: nowrap;
}
.announcement-bar span { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- 顶部导航栏 (V1) --- */
.main-nav {
    position: fixed;
    top: 30px; 
    left: 0;
    width: 100%;
    height: 60px; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100; 
}
.main-nav .logo a {
    font-size: 1.5rem; font-weight: bold;
    color: #fff; text-decoration: none;
    display: flex; 
    align-items: center;
}
/* (移除 V2 布局的图标和标语) */
.logo-icon { display: none; }
.nav-center-slogan { display: none; }

.nav-links { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}
.nav-button {
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav-button.primary { background: #fff; color: #333; }
.nav-button.primary:hover { background: #eee; }
a.nav-button { color: #fff; background: rgba(255, 255, 255, 0.1); }
a.nav-button:hover { background: rgba(255, 255, 255, 0.2); }
button.nav-button {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}
.nav-welcome-text {
    display: flex; align-items: center;
    font-size: 0.95rem; color: #fff;
    margin-right: 15px; font-weight: 500;
}

/* --- [V1] 三卡片布局 --- */
.container {
    position: relative; z-index: 2; 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 50px;
    flex-wrap: wrap; 
}

/* --- 卡片通用 --- */
.card {
    width: 330px; 
    min-height: 400px;
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px; 
    padding: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1); 
    display: flex; flex-direction: column;
}
.card h3 {
    font-size: 1.8rem; margin-top: 0;
    margin-bottom: 15px; text-align: center; color: #222;
}
.card p { font-size: 0.95rem; line-height: 1.5; color: #444; }
.card label { font-size: 0.9rem; margin-bottom: 8px; color: #555; }
textarea {
    width: 100%; background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px; padding: 12px;
    color: #333; font-size: 1rem;
    resize: none; margin-bottom: 15px;
}
textarea::placeholder { color: #777; }
button {
    background: linear-gradient(145deg, rgba(255, 165, 0, 0.9), rgba(255, 140, 0, 0.7));
    color: #fff; border: none;
    padding: 12px 20px; border-radius: 10px;
    font-size: 1rem; font-weight: bold;
    cursor: pointer; transition: all 0.3s ease;
    margin-top: auto; 
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}
button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5); }
button:disabled { background: #aaa; box-shadow: none; cursor: not-allowed; }
button.secondary-button {
    background: rgba(0, 0, 0, 0.05); color: #555;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}
.reply-buttons-container button.secondary-button {
    margin-top: 0; 
}

/* 卡片2: 捞瓶子 */
#pickup-card { align-items: center; justify-content: center; text-align: center; }
.bottle-icon { width: 100px; height: 100px; margin: 30px 0; }
.bottle-icon svg { width: 100%; height: 100%; fill: rgba(0, 0, 0, 0.4); }

/* 卡片3: 我的瓶子 */
.message-display-area {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 15px;
    max-height: 300px; /* 修复卡片无限长 */
    overflow-y: auto; 
    margin-bottom: 15px;
}
.message-display-area .placeholder {
    color: #666; font-style: italic;
    text-align: center; margin-top: 20px;
}
.message-display-area .placeholder a { color: #e6a800; font-weight: 600; }
#reply-area {
    width: 100%; display: flex; 
    flex-direction: column; 
}
#reply-area textarea { margin-bottom: 10px; }
#reply-area button { margin-top: 0; }
.reply-buttons-container {
    display: flex;
    gap: 10px; 
    margin-top: 10px;
}
.reply-buttons-container button {
    margin-top: 0; 
    flex-grow: 1; 
    width: 50%;
}
/* 捞到瓶子的样式 */
.bottle-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}
.bottle-stats span { font-size: 0.9rem; font-weight: 600; color: #444; }
.message-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(255, 165, 0, 0.7);
    word-wrap: break-word; 
}
.message-item p { margin: 0 0 10px 0; font-size: 0.95rem; line-height: 1.4; color: #333; }
.message-footer {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: #555;
    flex-wrap: wrap; 
}
/* 点亮按钮样式 */
.light-up-button {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #555; box-shadow: none;
    padding: 5px 10px; font-size: 0.8rem;
    font-weight: 500; margin-top: 0;
}
.light-up-button:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: none; box-shadow: none;
}
.light-up-button:disabled {
    background: rgba(0, 0, 0, 0.1);
    color: #888; cursor: not-allowed;
}

/* 适配：确保移动端标语不会太挤 */
@media (max-width: 768px) {
    .nav-center-slogan {
        display: none; /* 在手机上隐藏标语 */
    }
    .main-nav {
        padding: 10px 20px;
    }
    .container {
        padding: 20px;
    }
}