/* 公共变量定义 */
:root {
    --primary-dark: #0f3057;
    --primary-main: #00587a;
    --primary-light: #008891;
    --accent: #00bcd4;
    --accent-light: #26c6da;
    --neutral-dark: #1a237e;
    --neutral-main: #283593;
    --neutral-light: #5c6bc0;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #ffffff;
    --background: #f8f9fa;
    --surface: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
a {
    text-decoration: none;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 12px;
}

nav ul li a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    color: var(--text-primary);
    text-decoration: none;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-main);
    color: var(--primary-main);
}

.btn-outline:hover {
    background: var(--primary-main);
    color: white;
}

/* 章节样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 25px auto 0;
    font-size: 18px;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to bottom, var(--primary-dark), var(--neutral-dark));
    color: var(--text-light);
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/template/jia/images/bangongshi2.jpg') center/cover no-repeat;
    opacity: 0.05;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-light);
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    transition: var(--transition);
    opacity: 0.8;
    color: var(--text-light);
    text-decoration: none;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-column p {
    opacity: 0.8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.footer-column i {
    margin-right: 10px;
    color: var(--accent);
}

.qrcode {
    margin-top: 20px;
    text-align: center;
}

.qrcode img {
    width: 150px;
    height: 150px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.qrcode p {
    margin-top: 10px;
    font-size: 14px;
}

.friend-links {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.friend-links a {
    margin: 0 10px;
    opacity: 0.7;
    transition: var(--transition);
    color: var(--text-light);
    text-decoration: none;
}

.friend-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
    position: relative;
    z-index: 1;
    color: var(--text-light);
}

/* 响应式样式 */
@media (max-width: 992px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 12px 25px;
    }
    
    .section {
        padding: 60px 0;
    }
}