/* style.css - 1:1仿18183天龙发布站样式 */

/* ========== 头部导航 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo a span {
    color: #f59e0b;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #f59e0b;
}

.search {
    display: flex;
    gap: 10px;
}

.search input {
    padding: 8px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    width: 200px;
    outline: none;
    font-size: 14px;
}

.search input:focus {
    border-color: #f59e0b;
}

.search button {
    padding: 8px 20px;
    background: #f59e0b;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    transition: 0.2s;
}

.search button:hover {
    background: #d97706;
}

/* ========== 页面主体 ========== */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========== 今日开服标题 ========== */
.common_title {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.common_title h2 {
    font-size: 24px;
    color: #1f2937;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid #f59e0b;
}

.common_title p {
    color: #6b7280;
    font-size: 14px;
}

.common_title p span {
    color: #f59e0b;
    font-weight: bold;
    font-size: 18px;
}

.today_hot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-left: auto;
}

.today_hot2 {
    color: #6b7280;
    font-size: 14px;
}

/* ========== 开服表格 ========== */
.list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
}

.table_head {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    font-weight: 600;
    color: #4b5563;
}

.table_head li {
    list-style: none;
}

.table_body {
    display: flex;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    align-items: center;
}

.table_body:hover {
    background: #fef9e6;
}

.table_body.hot {
    background: #fff9e6;
    border-left: 3px solid #f59e0b;
}

.name {
    width: 20%;
    font-weight: 600;
    color: #1f2937;
}

.name strong {
    color: #1f2937;
}

.name span {
    font-size: 11px;
    color: #f59e0b;
    margin-left: 8px;
}

.time {
    width: 15%;
    color: #f59e0b;
    font-weight: 500;
}

.serve_name {
    width: 20%;
    color: #6b7280;
}

.vision {
    width: 20%;
    color: #6b7280;
}

.operate {
    width: 25%;
}

.operate a {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.operate a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* 更多按钮 */
.more_btn {
    display: block;
    text-align: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 12px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.more_btn:hover {
    background: #fef9e6;
    color: #f59e0b;
}

/* ========== 友情链接 ========== */
.f_link {
    margin-top: 40px;
}

.f_link .common_title {
    margin-bottom: 15px;
}

.line {
    height: 1px;
    background: #e5e7eb;
    margin-bottom: 20px;
}

.friendly_swiper {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    position: relative;
}

#links_box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#links_box a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

#links_box a:hover {
    color: #f59e0b;
}

/* 轮播按钮 */
.btnWrap {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px;
}

.prevBtn,
.nextBtn {
    width: 30px;
    height: 30px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.prevBtn:hover,
.nextBtn:hover {
    background: #fef9e6;
    border-color: #f59e0b;
}

.prevBtn:before {
    content: "←";
    font-size: 16px;
    color: #6b7280;
}

.nextBtn:before {
    content: "→";
    font-size: 16px;
    color: #6b7280;
}

/* ========== 底部 ========== */
.footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    font-size: 13px;
}

.footer .links {
    margin-bottom: 15px;
}

.footer .links a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 10px;
}

.footer .links a:hover {
    color: #f59e0b;
}

/* ========== 后台入口 ========== */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f59e0b;
    padding: 10px 20px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

.admin-link:hover {
    background: #d97706;
    transform: scale(1.02);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .wrap,
    .wrapper {
        width: 100%;
        padding: 0 15px;
    }
    
    .page {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .header .wrapper {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }
    
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table_head,
    .table_body {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .name,
    .time,
    .serve_name,
    .vision,
    .operate {
        width: 100%;
    }
    
    .common_title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .today_hot {
        margin-left: 0;
    }
    
    .btnWrap {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 15px;
        justify-content: center;
    }
}