/* VN11 模板通用样式 - 黑底白字，红色/黄色按钮 */

/* CSS 变量定义 */
:root {
    --bs-blue: #da251d;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #da251d;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffff00;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-black: #1a1919;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #da251d;
    --bs-secondary: #6c757d;
    --bs-success: #ffff00;
    --bs-primary-rgb: 218, 37, 29;
    --bs-success-rgb: 255, 255, 0;
    --bs-white-rgb: 255, 255, 255;
    --bs-heading-color: #fff;
}

/* 重置样式 */
*,
::after,
::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: left;
    background-color: #000;
    -webkit-text-size-adjust: 100%;
}

/* 标题样式 */
h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: calc(1.325rem + .9vw);
}

@media (min-width: 1200px) {
    h2 {
        font-size: 2rem;
    }
}

h3 {
    font-size: calc(1.3rem + .6vw);
}

@media (min-width: 1200px) {
    h3 {
        font-size: 1.75rem;
    }
}

h4 {
    font-size: calc(1.275rem + .3vw);
}

@media (min-width: 1200px) {
    h4 {
        font-size: 1.5rem;
    }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #fff;
    text-decoration: underline;
}

img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 容器和网格系统 */
.container {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 960px;
        margin: auto;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* 按钮样式 */
.btn {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.5;
    --bs-btn-color: var(--bs-body-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 0.375rem;
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    color: #fff;
    border: none;
    font-family: inherit;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #da251d;
    --bs-btn-border-color: #da251d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #b71e17;
    --bs-btn-hover-border-color: #a91c16;
    background-color: #da251d;
    color: #fff;
}

.btn-primary:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.btn-success {
    --bs-btn-color: #000;
    --bs-btn-bg: #ffff00;
    --bs-btn-border-color: #ffff00;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d9d900;
    --bs-btn-hover-border-color: #cccc00;
    background-color: #ffff00;
    color: #000;
}

.btn-success:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.btn-lg {
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1.25rem;
    --bs-btn-border-radius: 0.5rem;
}

/* 工具类 */
.d-flex {
    display: flex !important;
}

.w-100 {
    width: 100% !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.my-2 {
    margin-top: .5rem !important;
    margin-bottom: .5rem !important;
}

.me-2 {
    margin-right: .5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.py-2 {
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

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

.text-decoration-none {
    text-decoration: none !important;
}

.text-white {
    color: #fff !important;
}

.bg-primary {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
}

.rounded-2 {
    border-radius: 0.375rem !important;
}

.rounded-5 {
    border-radius: 2rem !important;
}

/* 布局样式 */
header {
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

section {
    padding: 40px 0;
}

footer {
    padding: 30px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.section-banner {
    background-color: rgba(var(--bs-primary-rgb), 1);
    padding: 20px 0;
}

.footer-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/* VN11 登录注册页面样式 */

.login-container,
.register-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #da251d;
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: #ffff00;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #d9d900;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.register-link a {
    color: #ffff00;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #d9d900;
}

/* VN11 政策页面样式 */

.content-section {
    padding: 40px 15px;
    max-width: 900px;
    margin: 0 auto;
}

.content-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.content-box h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

.content-box p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.content-box ul {
    list-style: none;
    padding: 0;
}

.content-box ul li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #da251d;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
}


/* ==================== Header 样式 ==================== */
.header {
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
    border-bottom: 2px solid rgba(218, 37, 29, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link .logo {
    height: 45px;
    max-width: 150px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 主导航 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #da251d;
    color: #fff;
}

/* 菜单高亮样式 */
.nav-item-active .nav-link {
    background: linear-gradient(135deg, #ff6b35, #da251d) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(218, 37, 29, 0.4);
}

.nav-link-active {
    color: #ff6b35 !important;
    font-weight: 700 !important;
}

/* 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(218, 37, 29, 0.5);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu .nav-link {
    display: block;
    padding: 10px 18px;
    color: #fff;
    white-space: nowrap;
    border-radius: 0;
}

.nav-dropdown-menu .nav-link:hover {
    background: #da251d;
    color: #fff;
}

/* 认证按钮 */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: transparent;
    border: 2px solid #da251d;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
}

.btn-login:hover {
    background: #da251d;
    color: #fff;
}

.btn-register {
    background: #ffff00;
    color: #000;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 700;
}

.btn-register:hover {
    background: #d9d900;
}

/* ==================== Footer 样式 ==================== */
.main-footer {
    background: rgba(0, 0, 0, 0.95);
    padding: 40px 0 20px;
    border-top: 2px solid rgba(218, 37, 29, 0.5);
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #da251d;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(218, 37, 29, 0.3);
}

.footer-column p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffff00;
    padding-left: 5px;
}

.footer-column address {
    font-style: normal;
}

.footer-column address p {
    margin-bottom: 8px;
}

.footer-column address a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-column address a:hover {
    color: #ffff00;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-bottom p {
    margin: 5px 0;
}

/* ==================== Article 样式 ==================== */
.breadcrumb {
    padding: 15px 0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: #ffff00;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 20px 0;
}

.article-container article {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
}

.article-container h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.article-content h2,
.article-content h3 {
    color: #da251d;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content a {
    color: #ffff00;
}

.article-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.author-box {
    background: rgba(218, 37, 29, 0.1);
    border-left: 4px solid #da251d;
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.author-box h4 {
    color: #da251d;
    margin-bottom: 10px;
}

.author-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-nav .label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.post-nav a {
    color: #ffff00;
    text-decoration: none;
    font-size: 14px;
}

.post-nav .prev,
.post-nav .next {
    max-width: 45%;
}

.post-nav .prev {
    text-align: left;
}

.post-nav .next {
    text-align: right;
}

.back-home-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #da251d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-home-link:hover {
    background: #b71e17;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget,
.cta-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.cta-widget {
    background: rgba(218, 37, 29, 0.1);
    border-color: rgba(218, 37, 29, 0.3);
    text-align: center;
}

.widget h3,
.cta-widget h3 {
    color: #da251d;
    font-size: 16px;
    margin-bottom: 15px;
}

.widget p,
.cta-widget p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.widget a {
    color: #ffff00;
}

/* ==================== 相关文章样式 ==================== */
.related-articles-list {
    display: grid;
    gap: 15px;
}

.related-article-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.related-article-item:hover {
    border-color: #da251d;
    transform: translateX(5px);
}

.related-article-title {
    margin: 0 0 8px;
}

.related-article-title a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.related-article-title a:hover {
    color: #ffff00;
}

.related-article-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== 响应式布局 ==================== */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        padding: 15px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-link {
        padding: 12px 15px;
    }
    
    /* 移动端下拉菜单样式 */
    .nav-dropdown-menu {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        margin-left: 15px;
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }
    
    .nav-dropdown.active:hover .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .widget,
    .cta-widget {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .auth-buttons {
        order: 2;
        margin-top: 10px;
    }
    
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .article-container article {
        padding: 20px;
    }
    
    .article-container h1 {
        font-size: 22px;
    }
}
