/* 公共样式表 */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 链接样式 */
a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.a_text {
    text-decoration: none;
    color: #bdc3c7 !important;
}

a:hover {
    color: #3498db;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
    color: white;
}

.secondary-btn {
    background-color: white;
    color: #3498db;
    border: 1px solid #3498db;
}

.secondary-btn:hover {
    background-color: #f1f9ff;
    color: #3498db;
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
}

/* 列表样式 */
ul {
    margin-bottom: 1rem;
    list-style-position: inside;
}

ul li {
    margin-bottom: 0.5rem;
}

/* 头部样式 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 5px;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 导航菜单样式 */
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 5px;
}

.main-nav li {
    position: relative;
    margin-bottom: 0;
}

.main-nav a {
    display: block;
    padding: 8px 15px;
    font-weight: 500;
}

.main-nav li.active a {
    color: #3498db;
    font-weight: 600;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

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

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f1f1;
}

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

/* 页脚样式 */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 0px 0 20px;
    margin-top: 50px;
}



.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-bottom: 0;
    text-align: left;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-header .container {
        display: block;
        justify-content: none;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
        text-align: center;
    }

    .main-nav ul {
        gap: 5px;
    }

    .main-nav a {
        display: block;
        padding: 8px 8px;
        font-size: 14px;
        font-weight: 500;
    }

    p {
        margin-bottom: 1rem;
        font-size: 12px;
    }
    .site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
    top: 0;
    z-index: 100;
}
}