/* ===== css/style.css ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
}

body {
    background-color: #2f2216;  /* 深咖啡底 */
    color: #f0e1cf;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 动态背景canvas由common.js绘制，这里做备用颜色 */
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 40%, #5e4b3a, #281f15);
    opacity: 0.9;
}

.layout-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
}

/* 导航栏 咖啡色玻璃效果 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(70, 50, 35, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #b59d7a55;
    border-radius: 60px;
    padding: 0.6rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.nav-brand {
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(145deg, #f7d9aa, #c7a15e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-menu a {
    color: #eddbbc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
    background: #96755f;
    color: #231b12;
    border-color: #e2c294;
    box-shadow: 0 0 15px #dbb47a;
}

.nav-toggle { display: none; } /* 移动端略，保持简洁 */

/* 首页布局 */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.intro-card {
    flex: 2;
    min-width: 280px;
    background: rgba(80, 60, 45, 0.6);
    backdrop-filter: blur(8px);
    padding: 2rem 2rem;
    border-radius: 40px;
    border: 1px solid #b48b5c;
    box-shadow: 0 15px 35px #1f150e;
}

.glow-text {
    font-size: 2.2rem;
    background: linear-gradient(120deg, #fbe6c5, #cbad7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px #ac874e;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.feature-tags span {
    background: #463829;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    border: 1px solid #b29363;
    font-weight: 400;
}

.countdown-card {
    flex: 1;
    min-width: 220px;
    background: rgba(60, 45, 30, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbb072;
}

.countdown-timer {
    font-size: 3.2rem;
    font-weight: 700;
    font-family: monospace;
    color: #fad89d;
    text-shadow: 0 0 20px #ffb347;
    margin: 0.5rem 0;
}

.coffee-btn {
    background: #a17f5f;
    border: none;
    color: #231b12;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #ebc28b;
}

.coffee-btn:hover { background: #c7a16b; box-shadow: 0 0 25px #ffd48a; }

/* 表格 */
.latest-section {
    background: rgba(50, 35, 25, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #ba9b71;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.data-table th {
    background: #3f2f20;
    color: #fad393;
    padding: 1rem 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 0.8rem 0.3rem;
    border-bottom: 1px solid #756047;
}

.data-table tbody tr:hover {
    background: #5c4a36;
}

.live-badge {
    background: #b34a3b;
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    margin-left: 1rem;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } }

/* 功能卡片 */
.function-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem 0;
}

.func-card {
    background: #3a2c1fcc;
    backdrop-filter: blur(4px);
    padding: 1.8rem 1.2rem;
    border-radius: 30px;
    border: 1px solid #b59264;
    transition: transform 0.2s;
}

.func-card:hover { transform: translateY(-6px); background: #4f3b2b; }
.arrow-link { color: #ffd79c; font-weight: 600; text-decoration: none; }

/* 弹窗可控 */
.popup-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #7a6246;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px #e9b35f;
    z-index: 99;
}

.trigger-text {
    font-size: 0.8rem;
    color: white;
    font-weight: bold;
}

.popup-modal {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 240px;
    background: #382c1f;
    border: 2px solid #dcb47a;
    border-radius: 30px;
    padding: 1.5rem;
    display: none;
    box-shadow: 0 20px 40px black;
}

.popup-trigger.active .popup-modal { display: block; }

.jump-btn, .close-modal {
    background: #a18458;
    border: none;
    color: #1f170f;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    margin: 0.3rem;
    font-weight: 600;
    cursor: pointer;
}

.close-modal { background: #58493a; color: #e7cfad; }

/* 走势页 */
.chart-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: #302519cc;
    backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 1.5rem;
    border: 1px solid #b29066;
}

/* 预测页 */
.prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.prediction-card {
    background: #4b3a27;
    border-radius: 35px;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid #eac181;
}
.big-number { font-size: 2.5rem; font-weight: 700; color: #fad093; }

/* 反馈页 */
.feedback-form {
    background: #3e2e1d;
    border-radius: 40px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}
.feedback-form input, .feedback-form textarea {
    background: #281f15;
    border: 1px solid #b58f58;
    color: #ffeaca;
    padding: 1rem;
    border-radius: 30px;
}
.fake-comments { background: #2e241b; border-radius: 30px; padding: 1.5rem; }

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding: 1.5rem;
    border-top: 1px dashed #8f7654;
    color: #bda686;
}

/* 响应式 */
@media (max-width: 720px) {
    .layout-container { padding: 0.8rem; }
    .navbar { flex-wrap: wrap; }
    .nav-menu { order: 3; margin-top: 1rem; width: 100%; justify-content: center; }
    .intro-section { flex-direction: column; }
    .chart-container { grid-template-columns: 1fr; }
}
.news-list {
    list-style: none;
    background: rgba(50,35,25,0.7);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 2rem;
    border: 1px solid #b59264;
}
.news-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #8f7654;
    color: #f0dbbc;
}
.news-list li span {
    display: inline-block;
    background: #644f3a;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    margin-right: 1rem;
    font-size: 0.85rem;
    color: #fad393;
}
.news-note {
    margin-top: 1.5rem;
    color: #c7a875;
    text-align: center;
}