/* ==================== 单页专用样式 ==================== */

/* 页面主体内容区 */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 120px;
    min-height: 60vh;
}

.content-wrapper {
    background: var(--bg-primary);
}

/* 页面标题区 */
.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 32px;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--text-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* 文本内容区 */
.text-content {
    line-height: 2;
    color: var(--text-primary);
}

.content-heading {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 60px 0 24px;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 16px;
}

.content-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--text-primary);
    border-radius: 2px;
}

.content-heading:first-of-type {
    margin-top: 0;
}

.content-paragraph {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-align: justify;
    text-indent: 2em;
}

.content-paragraph:first-of-type {
    text-indent: 0;
}

/* 页面底部CTA区域 */
.page-cta {
    text-align: center;
    margin-top: 100px;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cta-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 160px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .page-content {
        padding: 80px 20px 80px;
    }
    
    .page-header {
        margin-bottom: 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }
    
    .title-divider {
        width: 50px;
        height: 2px;
    }
    
    .content-heading {
        font-size: 22px;
        margin: 48px 0 20px;
        padding-left: 14px;
    }
    
    .content-heading::before {
        width: 3px;
        height: 20px;
    }
    
    .content-paragraph {
        font-size: 15px;
        line-height: 1.9;
        text-align: left;
    }
    
    .page-cta {
        margin-top: 80px;
        padding: 40px 24px;
        border-radius: 8px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-description {
        font-size: 14px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .content-heading {
        font-size: 20px;
        margin: 40px 0 16px;
    }
    
    .content-paragraph {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* 打印样式优化 */
@media print {
    .page-content {
        max-width: 100%;
        padding: 40px 20px;
    }
    
    .page-cta {
        display: none;
    }
    
    .content-paragraph {
        page-break-inside: avoid;
    }
    
    .content-heading {
        page-break-after: avoid;
    }
}

/* 阅读模式优化 */
@media (prefers-color-scheme: dark) {
    .content-paragraph {
        color: var(--text-secondary);
    }
}

/* 高对比度优化 */
@media (prefers-contrast: high) {
    .content-heading::before {
        background: currentColor;
    }
    
    .title-divider {
        background: currentColor;
    }
}

/* ==================== 主题切换器样式 ==================== */
.theme-switcher {
    position: relative;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.theme-toggle-btn:hover {
    color: #ffffff;
}

.theme-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.theme-toggle-text {
    display: inline-block;
}

.theme-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.theme-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.theme-option:first-child {
    border-radius: 8px 8px 0 0;
}

.theme-option:last-child {
    border-radius: 0 0 8px 8px;
}

.theme-option:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.theme-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-option.active {
    color: var(--accent-black);
    background: var(--bg-tertiary);
}

.theme-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
    stroke: currentColor;
}

.theme-option-text {
    flex: 1;
}

.theme-option-check {
    width: 16px;
    height: 16px;
    opacity: 0;
    color: inherit;
}

.theme-option.active .theme-option-check {
    opacity: 1;
}

/* 浅色模式下的主题选项样式 */
html[data-theme="light"] .theme-option,
html:not([data-theme]) .theme-option {
    color: #666666;
}

html[data-theme="light"] .theme-option:hover,
html:not([data-theme]) .theme-option:hover {
    color: #1a1a1a;
    background: #f5f5f5;
}

html[data-theme="light"] .theme-option.active,
html:not([data-theme]) .theme-option.active {
    color: #1a1a1a;
    background: #f5f5f5;
}

html[data-theme="light"] .theme-option svg,
html:not([data-theme]) .theme-option svg {
    color: #666666;
    stroke: #666666;
}

html[data-theme="light"] .theme-option:hover svg,
html:not([data-theme]) .theme-option:hover svg {
    color: #1a1a1a;
    stroke: #1a1a1a;
}

html[data-theme="light"] .theme-option.active svg,
html:not([data-theme]) .theme-option.active svg {
    color: #1a1a1a;
    stroke: #1a1a1a;
}

/* 深色模式下的主题选项样式 */
html[data-theme="dark"] .theme-option {
    color: #b0b0b0;
}

html[data-theme="dark"] .theme-option:hover {
    color: #ffffff;
    background: #2a2a2a;
}

html[data-theme="dark"] .theme-option.active {
    color: #ffffff;
    background: #2a2a2a;
}

html[data-theme="dark"] .theme-option svg {
    color: #b0b0b0;
    stroke: #b0b0b0;
}

html[data-theme="dark"] .theme-option:hover svg {
    color: #ffffff;
    stroke: #ffffff;
}

html[data-theme="dark"] .theme-option.active svg {
    color: #ffffff;
    stroke: #ffffff;
}

/* 移动端主题切换器优化 */
@media (max-width: 768px) {
    .theme-toggle-text {
        display: none;
    }
}