/* ========== CSS 变量 ========== */
:root {
    --red: #990000;
    --red-dark: #770000;
    --red-light: #b30000;
    --red-hover: #cc0000;
    --white: #ffffff;
    --white-60: rgba(255,255,255,0.6);
    --white-10: rgba(255,255,255,0.1);
    --white-20: rgba(255,255,255,0.2);
    --card-bg: #880000;
    --border: #b30000;
}

/* ========== 重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--red);
    color: var(--white);
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.container { width: 1200px; margin: 0 auto; }

/* ========== 页头导航 ========== */
header {
    background: var(--red);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
}
.menu { display: flex; gap: 30px; }
.menu a {
    font-size: 15px;
    color: var(--white);
    transition: 0.3s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.menu a:hover,
.menu a.active {
    color: #ffdddd;
    font-weight: 700;
    border-bottom-color: var(--white);
}
.search-box { display: flex; align-items: center; gap: 10px; }
.search-input {
    background: var(--red-light);
    border: 1px solid var(--white-20);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--white);
    width: 220px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}
.search-input::placeholder { color: var(--white-60); }
.search-input:focus { border-color: var(--white-60); background: #cc0000; }

/* 按钮：白底红字（主要） */
.btn-white {
    background: var(--white);
    color: var(--red);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}
.btn-white:hover { background: #ffdddd; transform: translateY(-1px); }

/* 按钮：红底白字边框（次要） */
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* 按钮：深红实心 */
.btn-red {
    background: var(--red-light);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-red:hover { background: var(--red-hover); }

/* ========== 板块标题 ========== */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}
.see-all {
    color: var(--white-60);
    font-size: 14px;
    transition: 0.3s;
}
.see-all:hover { color: var(--white); }

/* ========== 标签页切换 ========== */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.tab {
    padding: 8px 24px;
    border-radius: 20px;
    background: var(--red-light);
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.tab.active,
.tab:hover {
    background: var(--white);
    color: var(--red);
    font-weight: 600;
}

/* ========== 页脚 ========== */
footer {
    background: #b30000;
    padding: 40px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
}
.footer-brand .logo {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.footer-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 22px;
}
.footer-info { line-height: 2; }
.footer-info a { color: #fff; text-decoration: none; }
.footer-info a:hover { opacity: 0.7; }
.copyright {
    margin-bottom: 4px;
}
.footer-beian {
    margin-top: 2px;
}
.footer-beian,
.footer-beian a {
    font-size: 14px !important;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
}
.footer-beian a:hover { opacity: 0.7; }

.footer-share { text-align: right; }
.footer-share h4 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 16px;
    color: #fff;
}
.share-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}
.share-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.share-btn svg { width: 24px; height: 24px; fill: #fff; }
.share-btn.qq  { background: #12b7f5; }
.share-btn.wechat { background: #07c160; }
.share-btn.douyin { background: #111; }
.share-btn.weibo { background: #e6162d; }

/* ========== 卡片hover动效 ========== */
.card-hover {
    transition: 0.3s;
    cursor: pointer;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ========== 悬浮广告 ========== */
.float-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 420px;
    z-index: 997;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
    transition: opacity 0.3s;
}
.float-ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-ad-left  { left: 8px; }
.float-ad-right { right: 8px; }
.float-ad-close {
    position: absolute;
    top: 6px; right: 6px;
    width: 26px; height: 26px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    line-height: 26px;
    text-align: center;
    z-index: 2;
}
.float-ad-close:hover { background: rgba(0,0,0,0.85); }

@media (max-width: 1400px) {
    .float-ad { display: none; }
}

/* ========== 红色板块包裹 ========== */
.section-wrap {
    background: var(--red);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
