/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background: #f5f5f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #e74c3c; transition: all 0.3s; }
a:hover { color: #c0392b; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
ul { list-style: none; }

/* ========== 顶部公告栏 ========== */
.top-bar { background: #2c3e50; color: #fff; font-size: 13px; padding: 6px 0; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; }
.notice-icon { margin-right: 8px; }
.notice-marquee { flex: 1; overflow: hidden; }
.notice-marquee marquee { color: #ecf0f1; }
.top-bar-actions a { color: #f1c40f; font-weight: bold; }

/* ========== 头部 ========== */
.header { background: linear-gradient(135deg, #8b0000 0%, #a52a2a 50%, #8b0000 100%); padding: 20px 0; color: #fff; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 42px; }
.logo h1 { font-size: 32px; font-weight: 900; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.logo-sub { font-size: 20px; color: #f1c40f; }
.slogan { font-size: 13px; color: #f5cac3; margin-top: 4px; }
.header-search { display: flex; gap: 8px; }
.header-search input { padding: 10px 15px; border: none; border-radius: 4px; width: 280px; font-size: 14px; }
.header-search button { padding: 10px 20px; background: #f1c40f; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.3s; }
.header-search button:hover { background: #f39c12; }

/* ========== 导航菜单 ========== */
.nav-menu { background: #1a1a1a; padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.nav-menu .container { display: flex; justify-content: center; }
.nav-menu ul { display: flex; }
.nav-menu li a { display: block; padding: 14px 22px; color: #ccc; font-size: 15px; font-weight: 500; transition: all 0.3s; }
.nav-menu li a:hover, .nav-menu li.active a { background: #8b0000; color: #fff; }

/* ========== 主内容 ========== */
.main-content { padding: 30px 0; min-height: 500px; }
.tab-panel { display: none; animation: fadeIn 0.4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 板块标题 ========== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid #8b0000; }
.section-header h2 { font-size: 22px; color: #8b0000; display: flex; align-items: center; gap: 8px; }
.section-header .icon { font-size: 24px; }
.section-tools { display: flex; align-items: center; gap: 12px; }
.update-time { font-size: 13px; color: #666; }
.section-tools select { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }

/* ========== 服务器卡片网格 ========== */
.server-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.server-card { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.3s; border-top: 4px solid #8b0000; }
.server-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.server-card h3 { font-size: 17px; color: #222; margin-bottom: 8px; }
.server-card .server-info { font-size: 13px; color: #555; margin-bottom: 6px; }
.server-card .server-tags { margin: 10px 0; }
.server-card .badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-right: 6px; }
.badge-hot { background: #e74c3c; color: #fff; }
.badge-new { background: #27ae60; color: #fff; }
.badge-welfare { background: #f39c12; color: #fff; }
.server-card .server-btn { display: inline-block; padding: 8px 20px; background: #8b0000; color: #fff; border-radius: 4px; font-size: 14px; font-weight: bold; margin-top: 8px; }
.server-card .server-btn:hover { background: #a52a2a; color: #f1c40f; }

/* ========== 活动卡片 ========== */
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.activity-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative; transition: 0.3s; border-left: 4px solid #8b0000; }
.activity-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.activity-card.highlight { background: linear-gradient(135deg, #fff5f5, #ffeaea); border-left-color: #e74c3c; }
.activity-tag { position: absolute; top: 15px; right: 15px; background: #e74c3c; color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: bold; }
.activity-card h3 { font-size: 18px; color: #222; margin-bottom: 6px; padding-right: 60px; }
.activity-time { font-size: 13px; color: #888; margin-bottom: 10px; }
.activity-details { font-size: 14px; color: #444; margin-bottom: 12px; padding-left: 18px; }
.activity-details li { margin-bottom: 5px; }
.btn-activity { display: inline-block; padding: 8px 18px; background: #8b0000; color: #fff; border-radius: 4px; font-size: 13px; font-weight: bold; }
.btn-activity:hover { background: #a52a2a; }

/* ========== 攻略布局 ========== */
.guide-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.guide-main .guide-item { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); border-left: 4px solid #27ae60; transition: 0.3s; }
.guide-main .guide-item:hover { border-left-color: #e74c3c; transform: translateX(5px); }
.guide-item h3 { font-size: 16px; color: #222; margin-bottom: 8px; }
.guide-item p { font-size: 14px; color: #555; margin-bottom: 10px; }
.guide-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gtag { display: inline-block; padding: 2px 10px; background: #f0f0f0; border-radius: 10px; font-size: 12px; color: #666; }

/* 侧边栏 */
.guide-side { display: flex; flex-direction: column; gap: 15px; }
.side-widget { background: #fff; border-radius: 8px; padding: 15px 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.side-widget h4 { font-size: 15px; color: #8b0000; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.guide-rank { counter-reset: rank; }
.guide-rank li { counter-increment: rank; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.guide-rank li::before { content: counter(rank); display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: #8b0000; color: #fff; border-radius: 50%; font-size: 12px; margin-right: 8px; }
.guide-rank a { font-size: 14px; }
.daily-rec p { font-size: 13px; color: #555; margin-bottom: 8px; }
.btn-more { font-size: 13px; }

/* ========== 问答 ========== */
.qa-search { display: flex; gap: 10px; margin-bottom: 20px; }
.qa-search input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.qa-search button { padding: 12px 25px; background: #8b0000; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: bold; }
.qa-search button:hover { background: #a52a2a; }
.qa-list { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.qa-item { border-bottom: 1px solid #f0f0f0; }
.qa-item:last-child { border-bottom: none; }
.qa-question { padding: 15px 20px; cursor: pointer; font-size: 15px; display: flex; align-items: center; gap: 10px; background: #fafafa; transition: 0.3s; }
.qa-question:hover { background: #f0f0f0; }
.qa-arrow { transition: transform 0.3s; color: #8b0000; font-size: 12px; }
.qa-item.open .qa-arrow { transform: rotate(90deg); }
.qa-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.qa-item.open .qa-answer { padding: 0 20px 18px; max-height: 500px; }
.qa-answer p, .qa-answer ul { font-size: 14px; color: #555; line-height: 1.8; }
.qa-answer ul { padding-left: 20px; margin-top: 8px; }

/* ========== 签到 ========== */
.sign-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sign-calendar { background: #fff; border-radius: 8px; padding: 25px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.sign-month { font-size: 20px; font-weight: bold; color: #8b0000; margin-bottom: 20px; }
.sign-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.sign-day { aspect-ratio: 1; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; background: #f8f8f8; border: 1px solid #eee; }
.sign-day.signed { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; }
.sign-day.today { background: #fff3e0; border-color: #ff9800; color: #e65100; font-weight: bold; }
.sign-day .day-num { font-size: 16px; font-weight: bold; }
.sign-day .day-reward { font-size: 10px; margin-top: 2px; }
.btn-sign-now { width: 100%; padding: 14px; background: linear-gradient(135deg, #e74c3c, #c0392b); color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-sign-now:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(231,76,60,0.4); }
.btn-sign-now:disabled { background: #ccc; cursor: not-allowed; }
.sign-streak { margin-top: 12px; font-size: 14px; color: #666; }
.streak-num { color: #e74c3c; font-weight: bold; font-size: 18px; }

.sign-rewards { background: #fff; border-radius: 8px; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.sign-rewards h3 { font-size: 18px; color: #8b0000; margin-bottom: 15px; }
.reward-list { margin-bottom: 15px; }
.reward-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.reward-item span:first-child { color: #888; }
.reward-item span:last-child { color: #333; font-weight: 500; }
.sign-tip { background: #fff8e1; padding: 12px 15px; border-radius: 6px; font-size: 13px; color: #666; }

/* ========== 排行榜 ========== */
.rank-note { font-size: 12px; color: #888; }
.rank-tabs { display: flex; gap: 0; margin-bottom: 15px; }
.rank-tab { padding: 10px 20px; background: #ddd; border: none; cursor: pointer; font-size: 14px; transition: 0.3s; color: #555; }
.rank-tab:first-child { border-radius: 6px 0 0 0; }
.rank-tab:last-child { border-radius: 0 6px 0 0; }
.rank-tab.active { background: #8b0000; color: #fff; font-weight: bold; }
.rank-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rank-table th { background: #8b0000; color: #fff; padding: 12px 10px; text-align: center; font-size: 14px; }
.rank-table td { padding: 12px 10px; text-align: center; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.rank-table tr:hover td { background: #fafafa; }
.rank-no { display: inline-block; width: 28px; height: 28px; line-height: 28px; border-radius: 50%; font-weight: bold; font-size: 14px; }
.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; color: #fff; }
.btn-enter { display: inline-block; padding: 5px 14px; background: #27ae60; color: #fff; border-radius: 4px; font-size: 13px; }
.btn-enter:hover { background: #219653; }
.tag { padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tag-176 { background: #e3f2fd; color: #1565c0; }
.tag-180 { background: #f3e5f5; color: #7b1fa2; }
.tag-super { background: #fff3e0; color: #e65100; }
.tag-gold { background: #e8f5e9; color: #2e7d32; }
.tag-micro { background: #e0f7fa; color: #00695c; }
.tag-single { background: #fce4ec; color: #c62828; }
.tag-3 { background: #fff9c4; color: #f57f17; }

/* ========== 玩家好评 ========== */
.review-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.stat-item { background: #fff; border-radius: 8px; padding: 18px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.stat-num { display: block; font-size: 28px; font-weight: bold; color: #8b0000; }
.stat-label { font-size: 13px; color: #888; }
.review-list { background: #fff; border-radius: 8px; padding: 5px 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.review-card { padding: 18px 0; border-bottom: 1px solid #f0f0f0; }
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #8b0000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; }
.review-meta { font-size: 12px; color: #888; margin-top: 2px; }
.stars { color: #f1c40f; }
.review-server { font-size: 13px; color: #888; }
.review-card p { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 8px; }
.review-actions { font-size: 12px; color: #999; }
.review-pagination { text-align: center; margin-top: 20px; }
.page-btn { padding: 8px 14px; margin: 0 3px; background: #fff; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; font-size: 13px; }
.page-btn.active { background: #8b0000; color: #fff; border-color: #8b0000; }
.page-btn:disabled { color: #ccc; cursor: not-allowed; }

/* ========== 关于我们 ========== */
.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.about-text p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 12px; }
.about-text strong { color: #8b0000; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-stat { background: #fff; border-radius: 8px; padding: 15px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.as-num { display: block; font-size: 22px; font-weight: bold; color: #8b0000; }
.as-label { font-size: 12px; color: #888; }

/* ========== 订阅区域 ========== */
.subscribe-area { background: linear-gradient(135deg, #1a1a1a, #2c3e50); padding: 40px 0; margin-top: 30px; }
.subscribe-box { text-align: center; color: #fff; }
.subscribe-box h2 { font-size: 24px; margin-bottom: 10px; }
.subscribe-box p { font-size: 14px; color: #ccc; margin-bottom: 20px; }
.subscribe-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto 10px; }
.subscribe-form input { flex: 1; padding: 12px 15px; border: none; border-radius: 6px; font-size: 14px; }
.subscribe-form button { padding: 12px 30px; background: #f1c40f; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 15px; }
.subscribe-form button:hover { background: #f39c12; }
.subscribe-tip { font-size: 12px; color: #999; }

/* ========== 底部 ========== */
.footer { background: #1a1a1a; color: #999; padding: 30px 0 0; }
.footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h3 { color: #fff; font-size: 16px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #8b0000; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #999; font-size: 13px; }
.footer-col ul li a:hover { color: #f1c40f; }
.contact-list li { font-size: 13px; line-height: 2; }
.footer-bottom { background: #0d0d0d; padding: 15px 0; margin-top: 20px; text-align: center; }
.footer-bottom p { font-size: 12px; color: #666; }
.footer-notice { font-size: 11px !important; color: #555 !important; margin-top: 5px; }

/* ========== 浮动工具条 ========== */
.floating-bar { position: fixed; right: 20px; bottom: 30px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; background: #8b0000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: 0.3s; cursor: pointer; }
.float-btn:hover { background: #a52a2a; transform: scale(1.1); }

/* ========== 弹窗 ========== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 12px; padding: 30px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; color: #999; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #333; }
.modal-content h3 { color: #8b0000; margin-bottom: 15px; font-size: 20px; }
.modal-content p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 10px; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .server-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-layout, .sign-container, .about-content { grid-template-columns: 1fr; }
    .review-stats { grid-template-columns: repeat(2, 1fr); }
    .footer .container { grid-template-columns: repeat(2, 1fr); }
    .activity-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .header .container { flex-direction: column; gap: 15px; }
    .header-search input { width: 100%; }
    .server-grid { grid-template-columns: 1fr; }
    .review-stats { grid-template-columns: 1fr 1fr; }
    .nav-menu ul { flex-wrap: wrap; justify-content: center; }
    .nav-menu li a { padding: 10px 12px; font-size: 13px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer .container { grid-template-columns: 1fr; }
}
