/* 覆盖通用内容样式配色 */
:root {
    --content-primary: #7c3aed;
    --content-primary-dark: #6d28d9;
    --content-primary-light: #a78bfa;
}

/* 分站模板4 - 优雅紫罗风 */
:root {
    --tpl4-primary: #7c3aed;
    --tpl4-primary-dark: #6d28d9;
    --tpl4-primary-light: #a78bfa;
    --tpl4-text: #1f2937;
    --tpl4-text-light: #6b7280;
    --tpl4-bg: #fafafa;
    --tpl4-footer-bg: #1f1f2e;
    --tpl4-border: #e5e7eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Georgia", "PingFang SC", "Microsoft YaHei", serif;
    color: var(--tpl4-text);
    background: var(--tpl4-bg);
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.tpl4-container { max-width: 1400px; width: 95%; margin: 0 auto; }

/* 顶部信息 */
.tpl4-topinfo {
    background: var(--tpl4-primary);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.tpl4-topinfo .tpl4-container {
    display: flex;
    justify-content: space-between;
}

/* Logo区域（居中） */
.tpl4-logo-section {
    background: #fff;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.tpl4-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.tpl4-logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--tpl4-primary), var(--tpl4-primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 800;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.tpl4-logo-text { font-size: 26px; font-weight: 700; letter-spacing: 2px; }
.tpl4-logo-text span { color: var(--tpl4-primary); }

/* 移动端汉堡按钮 */
.tpl4-mobile-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 101;
}
.tpl4-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tpl4-primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.tpl4-logo-section { position: relative; }

/* 导航（居中，下方） */
.tpl4-nav {
    background: #fff;
    border-top: 1px solid var(--tpl4-border);
    border-bottom: 2px solid var(--tpl4-primary);
    padding: 12px 0;
}
.tpl4-nav .tpl4-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
}
.tpl4-nav .tpl4-nav-item > a, .tpl4-dropdown > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: var(--tpl4-text);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    border-radius: 8px;
    line-height: 1;
    height: 44px;
    vertical-align: middle;
}
.tpl4-nav .tpl4-nav-item > a:hover, .tpl4-dropdown > a:hover,
.tpl4-nav .tpl4-nav-item > a.active, .tpl4-dropdown > a.active {
    color: var(--tpl4-primary);
    background: rgba(124, 58, 237, 0.08);
}
.tpl4-nav-item, .tpl4-dropdown { position: relative; display: inline-flex; align-items: center; }
.tpl4-dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: #fff;
    border: 1px solid var(--tpl4-border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    min-width: 160px; padding: 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s; z-index: 100;
}
.tpl4-dropdown:hover .tpl4-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.tpl4-dropdown-menu a {
    display: block; padding: 10px 14px;
    color: var(--tpl4-text); font-size: 14px;
    border-radius: 6px; transition: all 0.2s;
}
.tpl4-dropdown-menu a:hover { background: rgba(124, 58, 237, 0.08); color: var(--tpl4-primary); }

/* Banner */
.page-banner {
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(167,139,250,0.08));
    padding: 50px 0;
    text-align: center;
}
.page-banner h1 { font-size: 34px; font-weight: 700; margin-bottom: 10px; color: var(--tpl4-primary-dark); }
.page-banner p { color: var(--tpl4-text-light); }
.breadcrumb { font-size: 13px; color: var(--tpl4-text-light); margin-bottom: 12px; }
.breadcrumb a { color: var(--tpl4-primary); }

/* 通用 */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.section-title p { color: var(--tpl4-text-light); }

/* CTA */
.tpl4-cta {
    background: linear-gradient(135deg, var(--tpl4-primary), var(--tpl4-primary-light));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.tpl4-cta h2 { font-size: 28px; margin-bottom: 8px; }
.tpl4-cta p { opacity: 0.9; margin-bottom: 24px; }
.tpl4-btn {
    display: inline-block;
    background: #fff;
    color: var(--tpl4-primary);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}
.tpl4-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* 页脚 */
.tpl4-footer { background: var(--tpl4-footer-bg); color: #d1d5db; padding: 50px 0 0; }
.tpl4-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tpl4-footer-brand p { font-size: 14px; color: #9ca3af; margin-top: 16px; line-height: 1.8; }
.tpl4-footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 18px; }
.tpl4-footer-col ul li { margin-bottom: 10px; }
.tpl4-footer-col ul li a { font-size: 14px; color: #9ca3af; transition: color 0.2s; }
.tpl4-footer-col ul li a:hover { color: var(--tpl4-primary-light); }
.tpl4-footer-notice {
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 30px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #9ca3af;
}
.tpl4-footer-notice strong { color: var(--tpl4-primary-light); }
.tpl4-footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 13px;
    color: #6b7280;
}
.tpl4-footer-bottom a { color: #9ca3af; }
.tpl4-footer-bottom a:hover { color: var(--tpl4-primary-light); }

/* 响应式 */
@media (max-width: 1024px) { .tpl4-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .tpl4-topinfo { display: none; }
    .tpl4-logo-section { padding: 16px 20px; }
    .tpl4-logo-section .tpl4-container { text-align: left; }
    .tpl4-logo-icon { width: 40px; height: 40px; font-size: 18px; }
    .tpl4-logo-text { font-size: 20px; letter-spacing: 1px; }
    .tpl4-mobile-toggle { display: flex; }
    .tpl4-nav {
        display: none;
        padding: 0;
        border-bottom: 2px solid var(--tpl4-primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .tpl4-nav.show {
        display: block;
        max-height: 800px;
        padding: 10px 0;
    }
    .tpl4-nav .tpl4-container {
        flex-direction: column;
        padding: 0;
        gap: 2px;
        align-items: stretch;
    }
    .tpl4-nav-item, .tpl4-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    .tpl4-nav .tpl4-nav-item > a, .tpl4-dropdown > a {
        padding: 14px 20px;
        text-align: center;
        width: 100%;
        height: auto;
        min-height: 44px;
        border-radius: 0;
    }
    .tpl4-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 8px 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--tpl4-bg-light);
    }
    .tpl4-dropdown-menu a {
        text-align: center;
        padding: 10px;
        width: 100%;
        font-size: 14px;
        color: var(--tpl4-text-light);
        border-radius: 0;
    }
    .tpl4-footer-grid { grid-template-columns: 1fr; }
    .tpl4-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}




/* Footer Logo 颜色修复（深色背景上使用浅色文字） */
.tpl4-footer .tpl4-logo-text { color: #fff; }
.tpl4-footer .tpl4-logo-text span { color: #a78bfa; }
.tpl4-footer .tpl4-logo-icon { background: rgba(255,255,255,0.15); color: #a78bfa; }


/* Page Banner 文字颜色修复（确保文字和背景对比度） */
.page-banner h1 { color: #6d28d9 !important; }
.page-banner p { color: #7c3aed !important; }
.page-banner .breadcrumb { color: #8b5cf6 !important; }
.page-banner .breadcrumb a { color: #6d28d9 !important; }
