/* ===== 详情页共享样式 ===== */
/* 萌萌哒可爱主题：图表、导图、动画、丰富排版组件 */

/* === 基础页面 === */
.detail-page {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 182, 193, 0.2);
}

.back-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(255, 107, 138, 0.25);
    color: var(--pink-500);
}

.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-header .page-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
    animation: wiggle 2s ease-in-out infinite;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .page-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 6px;
}

/* === 可爱分隔线 === */
.cute-divider {
    text-align: center;
    margin: 28px 0;
    font-size: 16px;
    opacity: 0.5;
    letter-spacing: 8px;
    animation: pulse 3s ease-in-out infinite;
}

/* === 区块标题 === */
.section {
    margin-bottom: 28px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid var(--pink-400);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === 内容段落 === */
.content-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 12px 0;
}

/* === 特色功能网格 === */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.feature-item {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid rgba(255, 182, 193, 0.15);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 138, 0.2);
}

.feature-item .f-emoji {
    font-size: 30px;
    display: block;
    margin-bottom: 6px;
}

.feature-item .f-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.feature-item .f-desc {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
}

/* === 可爱对比表格 === */
.cute-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    margin: 16px 0;
    font-size: 13px;
}

.cute-table th {
    background: linear-gradient(135deg, var(--pink-400), var(--rose));
    color: white;
    padding: 11px 14px;
    font-weight: 600;
    text-align: left;
}

.cute-table td {
    padding: 10px 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 182, 193, 0.1);
    line-height: 1.5;
}

.cute-table tr:nth-child(even) td {
    background: var(--pink-50);
}

.cute-table tr:last-child td {
    border-bottom: none;
}

/* === 思维导图 === */
.mind-map {
    padding: 20px;
    margin: 16px 0;
    text-align: center;
}

.mind-map-center {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-400), var(--rose));
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 107, 138, 0.3);
    margin-bottom: 16px;
    animation: pulse 2.5s ease-in-out infinite;
}

.mind-map-branches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mind-map-branch {
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid rgba(255, 182, 193, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.mind-map-branch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.2);
    border-color: var(--pink-300);
}

/* === 技能/进度条 === */
.skill-bar {
    margin: 10px 0;
}

.skill-bar .skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.skill-bar .skill-name {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-bar .skill-value {
    color: var(--pink-400);
    font-weight: 600;
}

.skill-bar .skill-track {
    height: 8px;
    background: var(--pink-50);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar .skill-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    from { width: 0 !important; }
}

/* === 小贴士框 === */
.tip-box {
    background: linear-gradient(135deg, #fffde7, #fff0f3);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 16px 0;
    border-left: 4px solid #ffcdd2;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tip-box .tip-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === 可爱徽章 === */
.cute-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
}

.badge-pink { background: #fff0f3; color: var(--pink-500); }
.badge-blue { background: #e3f2fd; color: #42a5f5; }
.badge-green { background: #e8f5e9; color: #66bb6a; }
.badge-purple { background: #f3e5f5; color: #ab47bc; }
.badge-orange { background: #fff3e0; color: #ffa726; }
.badge-coral { background: #fbe9e7; color: #ff7043; }

/* === 优缺点 === */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.pros-box, .cons-box {
    border-radius: 14px;
    padding: 14px;
    font-size: 13px;
    line-height: 1.7;
}

.pros-box {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
}

.cons-box {
    background: #fff5f5;
    border: 1px solid #fed7d7;
}

.pros-box .box-title {
    font-weight: 600;
    color: #38a169;
    margin-bottom: 6px;
    font-size: 14px;
}

.cons-box .box-title {
    font-weight: 600;
    color: #e53e3e;
    margin-bottom: 6px;
    font-size: 14px;
}

/* === 步骤列表 === */
.step-list {
    margin: 16px 0;
}

.step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.step-number {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-400), var(--rose));
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.step-content .step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.step-content .step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.6;
}

/* === 时间线 === */
.timeline {
    position: relative;
    padding-left: 24px;
    margin: 16px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--pink-300), var(--pink-100));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pink-400);
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.3);
}

.timeline-item .tl-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-item .tl-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.6;
}

/* === 行动召唤 === */
.cta-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--pink-50), #fff0f3);
    border-radius: 16px;
    margin: 24px 0;
    border: 1px dashed var(--pink-300);
}

.cta-box .cta-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.cta-box .cta-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === 信息卡 === */
.info-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px var(--shadow);
    border: 1px solid rgba(255, 182, 193, 0.15);
    margin: 12px 0;
}

/* === 可爱引用框 === */
.kawaii-quote {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 16px 0;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
    text-align: center;
    font-weight: 500;
    position: relative;
}

.kawaii-quote::before {
    content: '💬';
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 24px;
}

/* === 动画 === */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* === 浮动装饰粒子 === */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 16px;
    opacity: 0.25;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.25;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* === 页脚 === */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 13px;
}

/* === 响应式 === */
@media (max-width: 480px) {
    .detail-page {
        padding: 16px 16px 30px;
    }

    .page-header .page-icon {
        font-size: 44px;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .mind-map-branches {
        flex-direction: column;
        align-items: center;
    }

    .cute-table {
        font-size: 12px;
    }

    .cute-table th, .cute-table td {
        padding: 8px 10px;
    }
}
