* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.8;
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
a:hover {
    color: #e63946;
}
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
.align-items-center {
    align-items: center;
}
.justify-content-end {
    justify-content: flex-end;
}
.d-flex {
    display: flex;
}
.gap-3 {
    gap: 1rem;
}
.mt-4 {
    margin-top: 1.5rem;
}
.navbar-nav {
    display: flex;
    list-style: none;
}
.nav-link {
    padding: 0.5rem 1rem;
}
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    background: transparent;
    border: none;
    display: none;
}
.text-white {
    color: #fff;
}
.collapse:not(.show) {
    display: none;
}
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .offset-md-2 { margin-left: 16.666667%; }
    .navbar-expand-md .navbar-nav { flex-direction: row; }
    .navbar-expand-md .collapse { display: flex !important; }
}
@media (max-width: 768px) {
    .navbar-toggler { display: block; }
    .navbar-nav { flex-direction: column; }
}
.header {
    background-color: #2c3e50;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}
.logo span {
    color: #e63946;
}
.nav-link {
    color: #fff !important;
    font-size: 16px;
    margin: 0 15px;
    font-weight: 500;
}
.nav-link:hover {
    color: #e63946 !important;
}
.toc-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 76px;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.toc-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.toc-link {
    padding: 8px 15px;
    border-radius: 25px;
    background-color: #f1f1f1;
    font-size: 14px;
    font-weight: 500;
}
.toc-link:hover, .toc-link.active {
    background-color: #e63946;
    color: #fff;
}
.search-section {
    background-color: #e63946;
    padding: 20px 0;
    text-align: center;
}
.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
}
.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    outline: none;
}
.search-btn {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://picsum.photos/1920/500?random=1') center/cover no-repeat;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: bold;
}
.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: #e63946;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    font-weight: 500;
    color: #fff;
}
.btn-primary:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}
.main-content {
    padding: 60px 0;
}
.section-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #e63946;
}
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.card-body {
    padding: 20px;
}
.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.card-text {
    color: #666;
    margin-bottom: 20px;
}
.feature-section {
    background-color: #fff;
    padding: 60px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.feature-item {
    margin-bottom: 40px;
}
.feature-subtitle {
    font-size: 22px;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 20px;
}
.feature-list {
    list-style: none;
    padding-left: 0;
}
.feature-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-left: 25px;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e63946;
    font-weight: bold;
}
.tutorial-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}
.tutorial-step {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #e63946;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    margin-right: 15px;
}
.step-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.game-section {
    background-color: #f1f1f1;
    padding: 60px 0;
}
.game-item {
    text-align: center;
    padding: 20px;
}
.game-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}
.game-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.rank-section {
    padding: 60px 0;
}
.rank-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.rank-num {
    width: 40px;
    height: 40px;
    background-color: #e63946;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}
.rank-content {
    flex: 1;
}
.rank-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.rank-desc {
    color: #666;
    font-size: 14px;
}
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}
.footer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}
.footer-link {
    display: block;
    color: #ccc;
    margin-bottom: 10px;
}
.footer-link:hover {
    color: #e63946;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    color: #999;
}
@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .section-title { font-size: 24px; }
    .logo { font-size: 24px; }
    .nav-link { margin: 5px 0; }
    .toc-nav { gap: 8px; }
    .toc-link { padding: 6px 12px; font-size: 13px; }
}