/* 全局样式重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background-image: url("../../images/rangtang/rangtang.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;       /* 移动端可能无效，但不影响缩放体验 */
    background-color: #f5f0e8;
    color: #000000;
    line-height: 1.6;
    /* 阻止移动端自动调整字体大小 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* 确保最小宽度为设计宽度，防止布局被压缩 */
    min-width: 1400px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
    --red: #c91f1f;
    --red-deep: #a31717;
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f5f5f5e6;
    --card-padding: 40px;
    --wrapper-padding: 35px;
    --card-radius: 14px;
    --shadow-light: 0 6px 20px rgba(0,0,0,0.06);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.08);
}

/* --- 吸顶头部 --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}

/* --- 顶部信息栏 --- */
.top-bar {
    background-color: var(--light-gray);
    font-size: 12px;
    height: 30px;
    color: var(--gray);
    padding: 5px 0;
    position: relative;
    z-index: 1001;
}
.container::after {
    content: "";
    display: block;
    clear: both;
}
.container {
    width: 1400px;
    margin: 0 auto;
    padding: 0 var(--wrapper-padding);
}
.top-bar .left { float: left; }
.top-bar .right { float: right; }

/* --- 头部 Logo + 导航 --- */
.navbar .container {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--black);
}
.logo-img {
    width: 40px;
    height: 40px;
    background-color: var(--red);
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 16px;
}
.navbar-links {
    display: flex;
    gap: 15px;
    padding: 0;
    flex-wrap: nowrap;
}
.nav-link {
    white-space: nowrap;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}
.nav-link:hover {
    color: var(--red);
    font-weight: bold;
    background-color: #f0f0f0;
}
.search-box input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    outline: none;
}
.search-box button {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 6px 15px;
    cursor: pointer;
}

/* --- 核心大图区域 --- */
.content {
    height: 700px;
    background-image: url("../../images/rangtang/rangtang.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    position: relative;
    margin: 0 0 20px 0;
    border-radius: 8px;
}
.content::before {
    content: "";
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
    border-radius: 8px;
}
.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}
.hero h1 {
    font-size: 72px;
    color: var(--red);
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.hero .sub-title {
    font-size: 28px;
    color: var(--white);
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 40px;
}

/* --- 极简按钮组 --- */
.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.btn {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-red,
.btn-black,
.btn-outline {
    background: oklch(0.65 0.18 200 / 0.6);
    color: var(--white);
}
.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- 向下滚动提示 --- */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}
.scroll-down i {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 8px auto 0;
}

/* 文章列表基础样式 */
.article-list {
    list-style: none;
    padding: 0;
    width: 100%;
}
.article-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}
.article-item::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--red);
    font-size: 15px;
    opacity: 0.7;
    transition: color 0.3s ease;
}
.article-item:hover::before {
    color: var(--red);
    opacity: 1;
    transform: scale(1.2);
}
.article-link {
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.article-link:hover {
    color: #d92121;
    text-decoration: underline;
}

/* ====================== 专题导航 ====================== */
.topic-main-nav {
    background: var(--white);
    padding: 18px 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: 999;
    margin: 0;
}
.topic-main-nav.fixed-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.topic-main-nav .container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.topic-main-nav .nav-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s;
}
.topic-main-nav .nav-item:hover,
.topic-main-nav .nav-item:active,
.topic-main-nav .nav-item:focus {
    color: var(--red);
    font-weight: bold;
    background-color: #f0f0f0;
}

/* ====================== 专题大框 ====================== */
.topic-wrapper {
    background: var(--light-gray);
    padding: 50px var(--wrapper-padding);
    margin: 0 var(--wrapper-padding) 80px;
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-light);
}

.main-body {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    margin: 0 auto;
}
.main-body h2 {
    font-size: 28px;
    color: var(--black);
    margin-bottom: 10px;
    text-align: center;
}
.main-body > p {
    color: var(--gray);
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 卡片网格 */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 卡片基础样式 */
.card {
    width: 100%;
    background: #fff !important;
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: visible;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}
.card-tag {
    font-size: 26px;
    font-weight: 700;
    padding: 0 0 12px 0;
    border-bottom: 3px solid var(--red);
    width: fit-content;
    align-self: flex-start;
    color: #222;
    letter-spacing: 1px;
}

/* 专题简介文本框 */
.topic-intro-box {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin: 8px 0 16px;
    padding: 22px 26px;
    background-color: #fafbfc;
    border-radius: 10px;
    border-left: 5px solid var(--red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-align: justify;
}

/* ====================== 图片+文章布局 ====================== */
.card-content {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    width: 100%;
    margin-top: 10px;
    position: relative;
    padding-bottom: 55px;
}

/* 文章包装器 */
.card-article-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 卡片图片伪元素 */
.card-content::before {
    content: '';
    flex: 0 0 350px;
    height: 250px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    pointer-events: none;
}
.card:hover .card-content::before {
    transform: scale(1.02);
}

/* 奇数卡片图片 */
.card:nth-child(1) .card-content::before { background-image: url("../../images/背景1.jpg"); }
.card:nth-child(3) .card-content::before { background-image: url("../../images/背景3.jpg"); }
.card:nth-child(5) .card-content::before { background-image: url("../../images/背景5.jpg"); }

/* 偶数卡片：图文交换 */
.card:nth-child(2)>.card-content,
.card:nth-child(4)>.card-content,
.card:nth-child(6)>.card-content { flex-direction: row-reverse; }

.card:nth-child(2) .card-content::before { background-image: url("../../images/背景2.jpg"); }
.card:nth-child(4) .card-content::before { background-image: url("../../images/背景4.jpg"); }
.card:nth-child(6) .card-content::before { background-image: url("../../images/背景6.jpg"); }

/* 列表项样式 */
.card li {
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
    line-height: 1.7;
    color: #333;
    width: 100%;
}
.card li::before {
    content: "•";
    color: var(--red);
    position: absolute; left: 0;
    font-weight: bold;
}

/* ====================== 翻页按钮区域（底部居中） ====================== */
.topic-pager {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    white-space: nowrap;
}

/* 翻页按钮 */
.page-btn {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    font-size: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 悬停效果 */
.page-btn:hover:not(.disabled) {
    background: var(--red-deep);
    border-color: var(--red-deep);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(201,31,31,0.3);
}

/* 禁用状态 */
.page-btn.disabled {
    opacity: 0.35;
    border-color: #ccc;
    color: #999;
    pointer-events: none;
    box-shadow: none;
}

/* 页码指示器 */
.page-indicator {
    font-size: 13px;
    color: #333;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

/* --- 页脚样式 --- */
.footer {
    background: var(--light-gray);
    text-align: center;
    padding: 28px 0;
    margin-top: 30px;
    border-top: 1px solid #ddd;
}
.footer p { margin: 0; font-size: 14px; color: #333; }

/* --- 动画 --- */
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(20px); }
    to { opacity:1; transform: translateY(0); }
}
.hero { animation: fadeInUp 0.8s ease-out; }

/* AI聊天按钮 */
.ai-chat-box {
    position: fixed;
    right: 30px;
    bottom: 120px;
    z-index: 998;
    width: 100px;
    height: 100px;
    background: url("../../images/ai-大背景/04.png") center/contain no-repeat;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.ai-chat-box:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.6);
}
.ai-chat-box a {
    display: block;
    width: 100%;
    height: 100%;
}