/* 全局变量 */
:root {
    --primary-blue: #1a6bc4;
    --dark-blue: #0d4a8c;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --medium-gray: #e1e5eb;
    --dark-gray: #4a5568;
    --text-color: #2d3748;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

.container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}
.header-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}


section {
    padding: 80px 0;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* logo样式 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* 导航栏 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片组件 */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 标签页 */
.tabs {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tab-header {
    display: flex;
    background: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: var(--white);
}

.tab-content {
    padding: 3rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 107, 196, 0.1);
}

/* 页脚样式 - 从news.html中提取 */
footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    margin-bottom: 15px;
    opacity: 0.9;
    color: white; /* 添加白色字体 */
}

.footer-logo h3{
	color: white; /* 改为白色 */
}

.footer-slogan {
    margin-top: 15px;
    color: white; /* 改为白色 */
    font-weight: 600;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: white; /* 改为白色 */
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9; /* 添加透明度 */
}

.footer-links a:hover {
    color: white;
    opacity: 1; /* 悬停时完全不透明 */
}

.footer-contact h3 {
    color: white; /* 添加白色字体 */
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0.9;
    color: white; /* 添加白色字体 */
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: white; /* 改为白色 */
    opacity: 0.8; /* 添加透明度 */
}

.footer-bottom p{
    color: white; /* 改为白色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* 固定侧边栏 */
.fixed-sidebar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 999;
    text-align: center;
    max-width: 160px;
    border: 1px solid var(--medium-gray);
}

.sidebar-text {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
    font-weight: bold;
    line-height: 1.4;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
}

.sidebar-contact p {
    font-size: 0.75rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-contact i {
    margin-right: 5px;
    color: var(--primary-blue);
}

/* 移动端隐藏固定侧边栏 */
@media (max-width: 768px) {
    .fixed-sidebar {
        display: none;
    }
}
/* 添加到现有style.css文件中 */

/* 多级菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* 导航链接箭头 */
.nav-link i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}