/**
 * 情境化应对指南样式
 */

/* 头部 */
.guide-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.guide-header h1 {
    font-size: 28px;
    color: #d4af37;
    margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif;
}

.guide-header .subtitle {
    color: #888;
    font-size: 16px;
}

.back-link {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #d4af37;
}

/* 主内容区 */
.guide-main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* 简介卡片 */
.intro-section {
    margin-bottom: 40px;
}

.intro-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.intro-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.intro-card h2 {
    color: #d4af37;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Noto Serif SC', serif;
}

.intro-card p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 区块标题 */
section h2 {
    color: #f5f5f5;
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
}

section h3 {
    color: #d4af37;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Noto Serif SC', serif;
}

.section-desc {
    color: #888;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

/* 原型网格 */
.archetype-section {
    margin-bottom: 50px;
}

.archetype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.archetype-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archetype-card:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.archetype-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.archetype-name {
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.archetype-desc {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.archetype-pattern {
    font-size: 11px;
    color: #666;
}

.archetype-pattern .pattern-label {
    color: #888;
}

.archetype-pattern .pattern-text {
    color: #d4af37;
}

/* 已选中原型 */
.selected-archetype {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.selected-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-icon {
    font-size: 32px;
}

.selected-text {
    flex: 1;
}

.selected-label {
    color: #888;
    font-size: 12px;
}

.selected-name {
    color: #d4af37;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.btn-change {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-change:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 场景网格 */
.scenario-section {
    margin-bottom: 50px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--scenario-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.scenario-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--scenario-color);
    transform: translateY(-3px);
}

.scenario-card:hover::before {
    opacity: 1;
}

.scenario-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.scenario-name {
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.scenario-desc {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.scenario-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.example-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* 策略区域 */
.strategy-section {
    margin-bottom: 50px;
}

.strategy-header {
    margin-bottom: 30px;
}

.strategy-breadcrumb {
    margin-bottom: 15px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #d4af37;
}

.breadcrumb-separator {
    color: #666;
    margin: 0 8px;
}

.strategy-title {
    font-size: 24px;
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 15px;
}

.strategy-danger {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.danger-icon {
    font-size: 18px;
}

.danger-text {
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1.6;
}

/* 策略内容 */
.strategy-content {
    margin-bottom: 30px;
}

.strategy-principles,
.strategy-steps,
.strategy-affirmations {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.strategy-principles h3,
.strategy-steps h3,
.strategy-affirmations h3 {
    margin-bottom: 20px;
}

.strategy-principles ul {
    list-style: none;
    padding: 0;
}

.strategy-principles li {
    color: #ccc;
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.strategy-principles li:last-child {
    border-bottom: none;
}

.strategy-principles li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* 步骤卡片 */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--step-color);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #f5f5f5;
    font-size: 16px;
    margin-bottom: 8px;
}

.step-desc {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-action {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid #d4af37;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
}

.action-label {
    color: #d4af37;
    font-size: 12px;
    font-weight: 600;
}

.action-text {
    color: #ccc;
    font-size: 13px;
}

/* 肯定语句 */
.affirmations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.affirmation-card {
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.affirmation-icon {
    font-size: 20px;
}

.affirmation-text {
    color: #f5f5f5;
    font-size: 14px;
}

/* 紧急提醒 */
.strategy-emergency {
    border: 1px solid;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.emergency-icon {
    font-size: 24px;
}

.emergency-content strong {
    color: #ff6b6b;
    display: block;
    margin-bottom: 5px;
}

.emergency-content p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

/* 策略操作按钮 */
.strategy-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-favorite {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.btn-favorite.favorited {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

/* 收藏区域 */
.favorites-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-favorites {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.empty-favorites p {
    color: #888;
    margin-bottom: 5px;
}

.empty-hint {
    font-size: 13px;
}

.favorite-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.favorite-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--fav-color);
}

.favorite-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.fav-archetype {
    color: #888;
    font-size: 12px;
}

.fav-scenario {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.fav-title {
    color: #f5f5f5;
    font-size: 16px;
    margin-bottom: 8px;
}

.fav-danger {
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 15px;
}

.fav-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    background: rgba(212, 175, 55, 0.2);
}

.btn-remove {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* 底部 */
.guide-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-footer p {
    color: #888;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #f5f5f5;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 响应式 */
@media (max-width: 600px) {
    .guide-header h1 {
        font-size: 22px;
    }
    
    .back-link {
        position: static;
        display: block;
        margin-bottom: 15px;
        transform: none;
    }
    
    .archetype-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .archetype-card {
        padding: 15px 10px;
    }
    
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .strategy-actions {
        flex-direction: column;
    }
    
    .btn-favorite,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
