/* ===== 天天传奇发布站 - 全局样式 ===== */

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body { 
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: #d4a853; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ffd700; }

ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
    background: linear-gradient(90deg, #1a0a2e 0%, #2d1057 50%, #1a0a2e 100%);
    border-bottom: 1px solid #3a1a6e;
    padding: 8px 0;
    font-size: 12px;
    color: #a090c0;
}
.top-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-bar .sep { color: #4a3a6e; }
.top-bar a { color: #b0a0d0; font-size: 12px; }
.top-bar a:hover { color: #ffd700; }

/* ===== 头部区域 ===== */
.header {
    background: linear-gradient(180deg, #0f0a2a 0%, #1a0f3a 100%);
    border-bottom: 2px solid #d4a853;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}
.logo h1 a {
    color: #fff;
    text-decoration: none;
}
.logo .highlight {
    color: #d4a853;
    text-shadow: 0 0 10px rgba(212,168,83,0.5);
}
.slogan {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}
.main-nav li a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}
.main-nav li a:hover {
    color: #ffd700;
    background: rgba(212,168,83,0.1);
}
.main-nav li.active a {
    color: #fff;
    background: linear-gradient(135deg, #d4a853, #b8860b);
    box-shadow: 0 2px 10px rgba(212,168,83,0.3);
}

/* ===== 主视觉横幅 ===== */
.hero-banner {
    background: linear-gradient(135deg, #0f0a2a 0%, #1a0f4a 30%, #2a1060 60%, #1a0f4a 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,168,83,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(100,50,200,0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}
.hero-content {
    position: relative;
    text-align: center;
}
.hero-banner h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(212,168,83,0.3);
}
.hero-desc {
    font-size: 16px;
    color: #b0a0d0;
    margin-bottom: 35px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #d4a853;
    text-shadow: 0 0 15px rgba(212,168,83,0.4);
}
.stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

/* ===== 主要内容区域 ===== */
.main-content {
    padding: 30px 0;
    min-height: 600px;
}
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

/* ===== 区块通用样式 ===== */
.section-block {
    background: linear-gradient(180deg, #11102a 0%, #15133a 100%);
    border: 1px solid #2a2050;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2050;
}
.section-header h3 {
    font-size: 20px;
    color: #d4a853;
    display: flex;
    align-items: center;
    gap: 8px;
}
.more-link {
    font-size: 13px;
    color: #888;
}
.more-link:hover { color: #ffd700; }

/* ===== 服务器卡片 ===== */
.server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.server-card {
    background: linear-gradient(135deg, #1a1540 0%, #201a50 100%);
    border: 1px solid #3a2a6e;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}
.server-card:hover {
    border-color: #d4a853;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212,168,83,0.15);
}
.server-card.featured {
    border-color: #d4a853;
    background: linear-gradient(135deg, #2a1f50 0%, #3a2a60 100%);
}
.card-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #ff4500, #ff6a00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255,69,0,0.4);
}
.server-card h4 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 10px;
}
.card-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}
.card-desc {
    font-size: 13px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 12px;
}
.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(212,168,83,0.15);
    color: #d4a853;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid rgba(212,168,83,0.3);
}
.tag-blue { background: rgba(50,120,255,0.15); color: #5a9fff; border-color: rgba(50,120,255,0.3); }
.tag-gold { background: rgba(255,200,0,0.15); color: #ffc800; border-color: rgba(255,200,0,0.3); }
.tag-green { background: rgba(50,200,100,0.15); color: #50d080; border-color: rgba(50,200,100,0.3); }

/* ===== 开服表格 ===== */
.table-wrapper {
    overflow-x: auto;
}
.server-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.server-table th {
    background: #1e1845;
    color: #d4a853;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #3a2a6e;
}
.server-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #2a2050;
    color: #ccc;
}
.server-table tr:hover td {
    background: rgba(212,168,83,0.05);
}
.server-table a { color: #d4a853; }
.status-hot { color: #ff4500; font-weight: 700; }
.status-good { color: #50d080; }
.status-new { color: #5a9fff; }
.status-wait { color: #ffa500; }

/* ===== 公益服卡片 ===== */
.gongyi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gongyi-card {
    background: linear-gradient(135deg, #1a1540 0%, #201a50 100%);
    border: 1px solid #3a2a6e;
    border-radius: 10px;
    padding: 22px;
    position: relative;
    transition: all 0.3s;
}
.gongyi-card:hover {
    border-color: #50d080;
    box-shadow: 0 6px 25px rgba(80,208,128,0.15);
}
.gy-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #50d080, #30a060);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 10px;
}
.gy-badge.gy-gold { background: linear-gradient(135deg, #d4a853, #b8860b); }
.gy-badge.gy-blue { background: linear-gradient(135deg, #5a9fff, #3070d0); }
.gongyi-card h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 12px;
}
.gy-features {
    margin-bottom: 12px;
}
.gy-features li {
    font-size: 12px;
    color: #aaa;
    padding: 3px 0;
}
.gy-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 15px;
}
.btn-detail {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #d4a853, #b8860b);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-detail:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(212,168,83,0.4);
    transform: translateY(-1px);
}

/* ===== 新闻列表 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.news-item {
    padding: 18px;
    background: #1a1540;
    border-radius: 8px;
    border-left: 3px solid #d4a853;
    transition: all 0.3s;
}
.news-item:hover {
    background: #201a50;
    transform: translateX(3px);
}
.news-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
}
.news-date {
    color: #d4a853;
    font-weight: 600;
}
.news-cat {
    background: rgba(212,168,83,0.15);
    color: #d4a853;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 11px;
}
.news-item h4 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
}
.news-item h4 a { color: #e0e0e0; }
.news-item h4 a:hover { color: #ffd700; }
.news-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== SEO内容区 ===== */
.seo-content h3 {
    font-size: 20px;
    color: #d4a853;
    margin: 10px 0 15px;
}
.seo-content h4 {
    font-size: 16px;
    color: #e0e0e0;
    margin: 20px 0 12px;
}
.seo-content p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.9;
    margin-bottom: 12px;
    text-indent: 2em;
}
.seo-content strong {
    color: #d4a853;
    font-weight: 600;
}

/* ===== 优势网格 ===== */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px 0 20px;
}
.adv-item {
    text-align: center;
    padding: 18px 12px;
    background: #1a1540;
    border-radius: 8px;
    border: 1px solid #2a2050;
    transition: all 0.3s;
}
.adv-item:hover {
    border-color: #d4a853;
    transform: translateY(-2px);
}
.adv-icon { font-size: 28px; margin-bottom: 8px; }
.adv-item h5 {
    font-size: 14px;
    color: #d4a853;
    margin-bottom: 6px;
}
.adv-item p {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    text-indent: 0 !important;
    margin: 0 !important;
}

/* ===== 右侧边栏 ===== */
.content-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-widget {
    background: linear-gradient(180deg, #11102a 0%, #15133a 100%);
    border: 1px solid #2a2050;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.sidebar-widget h4 {
    font-size: 15px;
    color: #d4a853;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2050;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
}
.search-box input {
    flex: 1;
    padding: 10px 12px;
    background: #0f0a2a;
    border: 1px solid #3a2a6e;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}
.search-box input:focus { border-color: #d4a853; }
.search-box button {
    padding: 10px 18px;
    background: linear-gradient(135deg, #d4a853, #b8860b);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}
.search-box button:hover {
    box-shadow: 0 2px 10px rgba(212,168,83,0.4);
}

/* 分类列表 */
.cat-list li {
    padding: 8px 0;
    border-bottom: 1px solid #1e1845;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
    color: #ccc;
    font-size: 13px;
    flex: 1;
}
.cat-list a:hover { color: #ffd700; }
.cat-count {
    background: #2a2050;
    color: #888;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
}

/* 排行榜 */
.rank-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1e1845;
    font-size: 13px;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #2a2050;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}
.rank-list li:nth-child(1) .rank-num { background: #ff4500; color: #fff; }
.rank-list li:nth-child(2) .rank-num { background: #ff8c00; color: #fff; }
.rank-list li:nth-child(3) .rank-num { background: #d4a853; color: #fff; }
.rank-list a {
    color: #ccc;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-hot {
    font-size: 11px;
    color: #50d080;
    white-space: nowrap;
}

/* 公告列表 */
.notice-list li {
    padding: 8px 0;
    border-bottom: 1px solid #1e1845;
    font-size: 12px;
    line-height: 1.5;
}
.notice-list li:last-child { border-bottom: none; }
.notice-date {
    display: inline-block;
    color: #d4a853;
    font-size: 11px;
    margin-right: 6px;
}
.notice-list a {
    color: #bbb;
}
.notice-list a:hover { color: #ffd700; }

/* 快速导航 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.qn-btn {
    display: block;
    padding: 10px;
    text-align: center;
    background: #1e1845;
    color: #d4a853;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid #3a2a6e;
}
.qn-btn:hover {
    background: #d4a853;
    color: #fff;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tc-item {
    display: inline-block;
    padding: 5px 12px;
    background: #1e1845;
    color: #aaa;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #2a2050;
    transition: all 0.3s;
}
.tc-item:hover {
    background: rgba(212,168,83,0.15);
    color: #d4a853;
    border-color: #d4a853;
}

/* ===== 底部区域 ===== */
.footer {
    background: linear-gradient(180deg, #0f0a2a 0%, #080520 100%);
    border-top: 2px solid #d4a853;
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h5 {
    font-size: 15px;
    color: #d4a853;
    margin-bottom: 15px;
}
.footer-col ul li {
    padding: 5px 0;
}
.footer-col ul li a {
    color: #999;
    font-size: 13px;
}
.footer-col ul li a:hover { color: #ffd700; }
.footer-about {
    font-size: 12px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 10px;
}
.footer-domain {
    font-size: 12px;
    color: #d4a853;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a2050;
    font-size: 12px;
    color: #666;
    line-height: 2;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .content-right { order: -1; }
    .server-grid { grid-template-columns: 1fr; }
    .gongyi-grid { grid-template-columns: repeat(2, 1fr); }
    .advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 25px; }
}

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    .hero-banner h2 { font-size: 24px; }
    .hero-stats { gap: 15px; }
    .stat-num { font-size: 24px; }
    .gongyi-grid { grid-template-columns: 1fr; }
    .advantage-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .server-table { font-size: 12px; }
    .server-table th, .server-table td { padding: 8px 6px; }
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-block {
    animation: fadeInUp 0.5s ease-out;
}
.server-card, .gongyi-card, .news-item {
    animation: fadeInUp 0.4s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: #3a2a6e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4a853; }

/* 选中文本颜色 */
::selection { background: rgba(212,168,83,0.3); color: #fff; }
