/* Content Page Styles - 用于纯文本描述内容呈现页面 */

/* 基础布局 */
.content-section {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.content-bg {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 900px;
    border-radius: 50%;
    z-index: -10;
    background:
        radial-gradient(60% 60% at 50% 45%, rgba(167,139,250,0.22) 0%, rgba(167,139,250,0.10) 40%, transparent 70%),
        radial-gradient(40% 40% at 80% 30%, rgba(110,37,237,0.12) 0%, transparent 60%);
    filter: blur(18px) saturate(120%);
}

/* 页面头部 */
.content-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content-header .subtitle {
    color: var(--text-subtle);
    font-size: 1.1rem;
}

/* 内容区域 */
.content-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 内容卡片 */
.content-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.content-item h2 {
    color: var(--text-strong);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.content-item h2 i {
    margin-right: 0.5rem;
    color: var(--glow);
    font-size: 1.05rem;
}

.content-item p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-item ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-item li {
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 联系邮箱按钮 */
.contact-email {
    display: inline-block;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.35);
    color: white;
}

/* 页脚 */
.content-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-subtle);
    font-size: 0.9rem;
}

/* 语言切换器 */
.language-toggle {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
}

.toggle-container {
    display: flex;
    align-items: center;
    background: #F3F4F6; /* slate-100：浅灰，保证未激活文字对比 */
    border-radius: 25px;
    position: relative;
    width: 100px;
    height: 40px;
    cursor: pointer;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.toggle-container:hover {
    border-color: var(--glow);
}

.toggle-option {
    flex: 1;
    text-align: center;
    line-height: 36px;
    font-size: 14px;
    color: #6B7280; /* slate-500 */
    transition: color 0.3s ease;
    z-index: 1;
    font-weight: 600;
}

.toggle-option.active {
    color: white;
    font-weight: 600;
}

.toggle-slider {
    position: absolute;
    width: 50%;
    height: 36px;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.toggle-slider.en {
    transform: translateX(0);
}

.toggle-slider.zh {
    transform: translateX(100%);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-section {
        padding: 1rem 0;
    }

    .content-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .content-header h1 {
        font-size: 1.8rem;
    }

    .content-header .subtitle {
        font-size: 1rem;
    }

    .content-body {
        padding: 0 1rem;
    }

    .content-item {
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }

    .content-item h2 {
        font-size: 1.2rem;
    }

    .language-toggle {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 1.5rem;
    }
}

/* 工具类 */
.text-rose-400 { color: var(--glow); }

.text-rose-500 { color: var(--glow); }

.gradient-text {
    color: var(--text-strong);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}
