/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    line-height: 1.6;
    transition: opacity 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* 通用类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.text-primary {
    color: #c41e3a;
}

/* 导航栏 */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    background: transparent;
    transition: all 0.3s;
}

.fixed-navbar.scroll {
    background: #1f2937;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo-icon {
    font-size: 24px;
    color: #c41e3a;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    color: white;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #c41e3a;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.mobile-menu {
    margin-top: 16px;
    background: rgba(31,41,55,0.9);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 16px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white;
}

.mobile-nav a:hover {
    color: #c41e3a;
}

/* 英雄区 */
.hero {
    background: linear-gradient(to right, #1f2937, #1e3a8a);
    padding: 130px 0 80px;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #e5e7eb;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: #c41e3a;
    color: white;
}

.btn-primary:hover {
    background: #a31a31;
}

/* 区块 */
.section {
    padding: 80px 0;
}

.section-white {
    background: white;
}

.section-gray {
    background: #f9fafb;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 12px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #6b7280;
}

/* 卡片布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.card-blue {
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    border: 1px solid #dbeafe;
}

.card-green {
    background: linear-gradient(to bottom right, #f0fdf4, #ecfdf5);
    border: 1px solid #d1fae5;
}

.card-orange {
    background: linear-gradient(to bottom right, #fff7ed, #fef2f2);
    border: 1px solid #ffedd5;
}

.card-white {
    background: white;
    border: 1px solid #f3f4f6;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
}

.card-blue .card-icon {
    background: #3b82f6;
}

.card-green .card-icon {
    background: #10b981;
}

.card-orange .card-icon {
    background: #f97316;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card h4 {
    margin: 12px 0 8px;
    color: #1e40af;
}

.card p, .card li {
    color: #4b5563;
    margin-bottom: 6px;
}

/* 表格 */
.table-box {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
}

.table-box h3 {
    text-align: center;
    margin-bottom: 16px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

thead {
    background: #f3f4f6;
}

th, td {
    padding: 12px 16px;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

/* 布局 */
.flex-grid {
    display: flex;
    gap: 30px;
}

.col-left, .col-right {
    flex: 1;
}

.img-box {
    margin-bottom: 20px;
}

.img-placeholder {
    height: 300px;
    background: #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
}

.data-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.gray { background: #9ca3af; }
.dot.green { background: #10b981; }
.dot.blue { background: #3b82f6; }
.dot.purple { background: #8b5cf6; }

.icon-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.icon-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #c41e3a;
}

.icon-list.yellow li::before { color: #f59e0b; }
.icon-list.blue li::before { color: #1e3a8a; }

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 50px 0;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-logo span {
    color: #c41e3a;
    font-size: 24px;
}

.footer p {
    color: #9ca3af;
    max-width: 400px;
}

.footer-right {
    text-align: right;
}

.social {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.social a {
    color: #9ca3af;
    transition: color 0.3s;
}

.social a:hover {
    color: #c41e3a;
}

/* 回到顶部 */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #c41e3a;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    transform: scale(0);
    z-index: 99;
}

.back-top.show {
    transform: scale(1);
}

.ad-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.ad-placeholder {
    width: 100%;
    height: 105px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* 响应式 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .flex-grid {
        flex-direction: column;
    }
    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-right {
        text-align: center;
    }
}