﻿/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a5276;
    --secondary-color: #2e86c1;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --border-color: #eaeaea;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* 为固定导航栏预留空间 */
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* ==================== 导航栏样式 ==================== */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    
    /* 新增边框细节 */
    border-bottom: 3px solid transparent;
    background-clip: padding-box;
}

/* 顶部装饰边框 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #c0392b, var(--accent-color));
    z-index: 1001;
}

/* 底部装饰边框 */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* 增加导航栏宽度 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8% 20px 2%; /* 左侧2%，右侧8% */
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

/* 左右装饰边框 */
.navbar::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.navbar::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 20px;
    color: var(--accent-color);
}

/* 菜单样式 */
.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    align-items: center;
}

.nav-menu > li {
    position: relative;
    margin-left: 10px;
}

.nav-menu > li > a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 12px 16px;
    display: block;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    color: var(--primary-color);
    background-color: rgba(44, 62, 80, 0.05);
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    width: 240px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
    border: 1px solid var(--border-color);
}

.nav-menu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown li a {
    padding: 12px 22px;
    display: block;
    color: var(--text-color);
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 28px;
}

.dropdown li a i {
    margin-right: 10px;
    font-size: 14px;
}

/* 注册按钮 */
.register-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.register-btn:hover {
    background-color: #e67e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 汉堡菜单（移动端） */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 26px;
    color: var(--dark-color);
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(44, 62, 80, 0.05);
}

/* 修复页面标题样式问题 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
    color: white;
    padding: 80px 0 60px; /* 增加高度，恢复正常间距 */
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: 0; /* 移除负margin */
}

/* 添加背景装饰元素 */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(243, 156, 18, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(243, 156, 18, 0.05) 0%, transparent 40%);
    z-index: 1;
}

/* 添加顶部装饰边框 */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #c0392b, var(--accent-color));
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
    max-width: 1200px; /* 使用与网站其他部分相同的最大宽度 */
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

/* 标题装饰效果 - 横线优化 */
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 50%; /* 横线宽度为标题内容的一半 */
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: translateX(-50%); /* 水平居中 */
}

.page-header p {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 800px;
    margin: 30px auto 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* 确保内容区域宽度一致 */
.page-container {
    padding: 60px 0;
}

.page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 页脚样式优化 - 减少高度 */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a2530 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

/* 添加顶部装饰边框 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #c0392b, var(--accent-color));
    z-index: 1;
}

/* 添加背景装饰元素 */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(243, 156, 18, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(243, 156, 18, 0.05) 0%, transparent 40%);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    position: relative;
}

/* 添加左侧装饰边框 */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    border-radius: 2px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    flex-grow: 1;
}

.footer-links li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 12px;
}

/* 添加列表项装饰 */
.footer-links li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.footer-links li:hover::before {
    transform: translateX(3px);
}

.footer-links a {
    color: #ddd;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
    position: relative;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

/* 添加链接下划线效果 */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.contact-info {
    list-style: none;
    flex-grow: 1;
}

.contact-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-info li:hover {
    border-bottom-color: rgba(243, 156, 18, 0.3);
    transform: translateX(5px);
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 16px;
    width: 18px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-info li:hover i {
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-icons a::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: left 0.5s ease;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icons a:hover::before {
    left: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 添加页脚底部装饰边框 */
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* 其他样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease; /* 改为all以包含边框变化 */
    border: 1px solid rgba(26, 82, 118, 0.15); /* 添加浅色主题边框 */
    position: relative;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 82, 118, 0.3); /* 悬停时加深边框颜色 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* 悬停时增强阴影 */
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 可选：为卡片添加顶部装饰边框 */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 8px 8px 0 0;
    opacity: 0.3;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 当前页面高亮样式 */
.nav-menu a.active {
    color: #e67e22;
    font-weight: bold;
    border-bottom: 2px solid #3498db;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1100px) {
    .nav-menu > li {
        margin-left: 18px;
    }
    
    .nav-menu > li > a {
        padding: 10px 14px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 25px 0;
        z-index: 999;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        margin: 12px 0;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 15px 30px;
        border-radius: 0;
    }

    .dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0;
        border-radius: 0;
        padding: 0;
        border: none;
    }

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

    .hamburger {
        display: block;
    }
    
    /* 移动端隐藏装饰边框 */
    .navbar::before,
    .navbar::after {
        display: none;
    }
    
    .register-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* 在移动端取消logo的自动右边距 */
    .logo {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .page-header {
        padding: 40px 0 30px;
        margin-top: -70px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .footer-section {
        min-height: auto;
        margin-bottom: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section::before {
        left: 0;
        height: 25px;
    }
    
    footer {
        padding: 30px 0 15px;
    }
    
    .navbar {
        padding: 18px 20px;
    }
    
    .logo {
        font-size: 22px;
    }
}


/* 响应式设计 */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .page-header p {
        font-size: 1.2rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}