/* 全局变量（通用主题色、基础配置） */
:root {
    --primary-color: #dc3545;
    --secondary-color: #1a237e;
    --dark-blue: #0a1629;
    --light-gray: #f8f9fa;
    --text-muted: #6c757d;
}

/* 全局基础样式（所有页面通用） */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    scroll-behavior: smooth;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
}

/* 按钮通用样式（所有页面按钮复用） */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* 区块通用样式（所有页面的板块标题、布局复用） */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 导航栏通用样式（所有页面导航复用） */
.navbar {
    background-color: rgba(10, 22, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 二级导航通用样式（所有页面二级导航复用） */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    background-color: rgba(10, 22, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 200px;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(10px);
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: white;
    padding-left: 25px;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 页脚通用样式（所有页面页脚复用） */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff6b6b 100%);
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.7;
}

.footer-links h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

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

.footer-qr img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-qr p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* 通用响应式调整（所有页面共用的移动端适配） */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    /* 移动端隐藏二级导航箭头（避免混乱） */
    .dropdown-toggle::after {
        display: none;
    }
    
    /* 移动端隐藏二级导航（避免排版混乱） */
    .dropdown-menu {
        display: none !important;
    }
}
a {
    text-decoration: none; /* 去除下划线 */
    color: inherit;      /* 继承父元素的字体颜色，或指定为其他颜色，如 #333 */
  }
  
  /* 为了确保所有状态下的样式一致，建议同时设置伪类 */
  a:link {
    text-decoration: none;
    color: inherit;
  }
  
  a:visited {
    text-decoration: none;
    color: inherit;
  }
  
  a:hover {
    text-decoration: none;
    color: #0056b3; /* 悬停时可选颜色 */
    cursor: pointer; /* 鼠标悬停时显示手型 */
  }
  
  a:active {
    text-decoration: none;
    color: inherit;
  }
  