/* ============================================
   青春记忆 - 关于本站 公共样式
   https://www.qchun.com
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #fdfaf6;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #e07a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c75b41;
}

/* ---------- 顶部导航 ---------- */
.site-header {
    background: linear-gradient(135deg, #e07a5f 0%, #f2a65a 100%);
    box-shadow: 0 2px 12px rgba(224, 122, 95, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo:hover {
    color: #fff;
    opacity: 0.9;
}

.nav-logo .logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.nav-menu a.active {
    background: #fff;
    color: #e07a5f;
    font-weight: 600;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- 页面横幅 ---------- */
.page-banner {
    background: linear-gradient(120deg, #fff3ec 0%, #fdeedd 100%);
    padding: 56px 24px 48px;
    text-align: center;
    border-bottom: 1px solid #f5e3d5;
}

.page-banner h1 {
    font-size: 2.1rem;
    color: #b5492f;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.page-banner p {
    color: #9c7a67;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ---------- 主内容区 ---------- */
.container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 64px;
    flex: 1;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 44px;
    box-shadow: 0 4px 20px rgba(180, 120, 90, 0.08);
    border: 1px solid #f6e9df;
}

.content-card + .content-card {
    margin-top: 28px;
}

.content-card h2 {
    font-size: 1.35rem;
    color: #b5492f;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid #e07a5f;
    letter-spacing: 1px;
}

.content-card h3 {
    font-size: 1.08rem;
    color: #5b4636;
    margin: 22px 0 10px;
}

.content-card p {
    margin-bottom: 14px;
    color: #4a4a4a;
    text-align: justify;
}

.content-card ul,
.content-card ol {
    margin: 0 0 16px 24px;
    color: #4a4a4a;
}

.content-card li {
    margin-bottom: 8px;
}

/* ---------- 联系信息列表 ---------- */
.contact-list {
    list-style: none;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed #f0ddcf;
    margin-bottom: 0;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbe5da, #fdd9b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #c75b41;
}

.contact-info strong {
    display: block;
    color: #5b4636;
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-info span {
    color: #777;
    font-size: 0.94rem;
}

/* ---------- 合作条目 ---------- */
.coop-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px dashed #f0ddcf;
}

.coop-item:last-child {
    border-bottom: none;
}

.coop-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e07a5f, #f2a65a);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.coop-body strong {
    display: block;
    color: #5b4636;
    margin-bottom: 4px;
}

.coop-body p {
    margin-bottom: 0;
    color: #555;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #e07a5f, #f2a65a);
    color: #fff;
    border-radius: 24px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 122, 95, 0.35);
}

.text-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #3d2f29;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 28px 24px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: auto;
}

.site-footer a {
    color: #f2a65a;
}

.site-footer a:hover {
    color: #ffd3a1;
}

.site-footer .footer-line {
    margin-bottom: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #e07a5f;
        flex-direction: column;
        padding: 12px 16px 20px;
        gap: 4px;
        display: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .page-banner h1 {
        font-size: 1.6rem;
    }

    .content-card {
        padding: 28px 22px;
    }

    .navbar {
        position: relative;
    }
}
