﻿:root {
    --primary-gold: #c5a059;
    --deep-red: #8b0000;
    --bg-gray: #f4f4f4;
}

.stratagem-page {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-gray);
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

    .page-header h1 {
        color: var(--deep-red);
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

/* 六套计策的分组容器 */
.category-group {
    margin-bottom: 60px;
}

.category-title {
    border-left: 5px solid var(--deep-red);
    padding-left: 15px;
    margin-bottom: 25px;
    color: #333;
}

.stratagem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* 计策卡片样式 */
.stratagem-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

    .stratagem-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.strat-id {
    background: var(--primary-gold);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--deep-red);
}

.pinyin {
    display: block;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.original-text {
    font-size: 0.9rem;
    background: #fff9f0;
    padding: 10px;
    border-radius: 4px;
    color: #664d28;
    margin-bottom: 15px;
}

.description {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* 易经卦象链接区域 */
.related-links {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.link-tag {
    display: inline-block;
    background: #eee;
    color: #444;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

    .link-tag:hover {
        background: var(--deep-red);
        color: white;
    }

    .link-tag i {
        margin-right: 4px;
    }
