/* common.css */
@import url('reset.css');

:root {
    --primary-color: #1e88e5;
    --primary-color-rgb: 30, 136, 229;
    --secondary-color: #ff6b6b;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --header-height: 80px;
}

/* 通用布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Logo样式优化 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
    height: 100%;
}

.logo-center {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    font-family: "Microsoft YaHei", sans-serif;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: "Microsoft YaHei", sans-serif;
    line-height: var(--header-height);
}

/* 导航菜单 */
.nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.nav-link {
    font-size: 16px;
    color: var(--text-color);
    padding: 0 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    line-height: var(--header-height);
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    color: #ddd;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* 页面主体 */
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 200px);
}

/* 页面标题 */
.page-title {
    text-align: center;
    padding: 60px 0;
    background-color: var(--light-gray);
}

.page-title h1 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.page-title p {
    font-size: 18px;
    color: #666;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #1a45a0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #ff5252;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 0px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #999;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        height: 60px;
    }

    .logo-center {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .logo-text {
        font-size: 24px;
    }

    .nav {
        display: none;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-center {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .logo-text {
        font-size: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
} 