/* ================= Main ================= */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 20px 20px;
}

.page-head {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}

.main .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.main .chips .chip {
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    border: 1px solid var(--border);
}

.main .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-head h1 {
    margin: 0 0 12px;
    font-size: 30px;
    color: var(--primary);
}

.page-head p {
    margin: 0;
    max-width: 900px;
    font-size: 14px;
}

.page-head .hero-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-top: 15px;
}

.page-head .hero-card h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--ink);
}

.page-head .hero-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-head .hero-card li {
    font-size: 13px;
    color: var(--muted);
    line-height: 2;
    padding-left: 12px;
    position: relative;
}

.page-head .hero-card li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.mobile-cta {
    margin-top: 20px;
}

.cta-top,
.cta-mid {
    margin-top: 20px;
    text-align: center;
    width: 100%;

}

.cta-mid a {
    border: var(--primary) 1px solid;
    border-radius: 10px;
    padding: 10px;
    color: var(--primary);
    background-color: rgba(242, 232, 229, 0.4);
    width: 100%;
    display: inline-block;
}

.cta-top a {
    border: var(--primary) 1px solid;
    border-radius: 10px;
    padding: 10px;
    color: var(--primary);
    font-weight: 600;
    width: 100%;
    display: inline-block;
    background-color: rgba(232, 222, 219, 0.5);
    box-shadow: 0 3px 5px rgba(246, 72, 24, 0.4);
}

.cta-mid a:hover {
    border: var(--primary) 1px solid;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(246, 98, 24, 0.3);
}

.cta-top a:hover {
    border: var(--primary) 2px solid;
    font-weight: 600;
    text-decoration: underline;
}

/* ================= CTA Section ================= */
.cta-section {
    margin-top: 36px;
    /* 与内容区块拉开节奏 */
    padding: 28px;
    border-radius: 16px;
    background: #fff5f8;
    border: 1px solid #f2c2d4;
}

.cta-section p {
    max-width: 720px;
}

.cta-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-disclaimer {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}


.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d6336c, #f06292);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(214, 51, 108, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(214, 51, 108, 0.35);
    text-decoration: underline;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    font-weight: 700;
    line-height: 40px;
}

.btn-ghost:hover {
    color: var(--primary);
    border: 1px solid var(--soft-hot);
}

.page-section {
    margin-top: 28px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}

.page-section h2 {
    margin-top: 0;
    font-size: 22px;
    /* color: var(--primary); */
}

.page-section h3 {
    margin-top: 0;
    font-size: 20px;
}

.page-section p {
    font-size: 14px;
}

.tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.tag-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 20px;
}

.tag-section h3 {
    margin: 0 0 14px;
    font-size: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.tag-section .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tag-section .tag {
    background: #fdf1f7;
    color: #c22d63;
    padding: 5px 10px;
    border-radius: 99px;
    font-size: 13px;
    border: 1px solid #f7d9e6;
    font-weight: 500;
}

.tag-section .tag:hover {
    background: #fcf7f1;
    text-decoration: underline;
    color: var(--primary);
}

.page-section .grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.page-section .card {
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    min-width: 0;
    transition: box-shadow .2s ease, transform .2s ease;
    color: var(--soft-hot);
}

.page-section .card-link {
    border: 1px solid #e6e9f0;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    min-width: 0;
    transition: box-shadow .2s ease, transform .2s ease;
    color: var(--soft-hot);
    box-shadow: 0 14px 30px rgba(16, 24, 40, .12);
}

.page-section .card-link:hover,
.page-section .card-link h2:hover,
.page-section .card-link h3:hover {
    color: var(--primary);
}


.page-section .card h2,
.page-section .card h3 {
    margin-top: 0;
    font-size: 17px;
    color: #000;
}

.page-section .card-link:hover {
    transform: translateY(-2px);
}


.page-section .card p,
.page-section .card-link p {
    margin: 0;
    color: #5b6574;
    font-size: 14px;
}

.page-section .card .meta,
.main .meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.main input,
.main select,
.main textarea,
.main button {
    min-height: 40px;
}

.page-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 18px;
}

.page-section ul li {
    font-size: 14px;
    line-height: 1.6;
}

.page-section ul li a {
    color: var(--soft-hot);
    text-decoration: none;
    position: relative;
    padding-left: 14px;
}

.page-section ul li a::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    opacity: 0.6;
}

.page-section ul li a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.page-section .text-list {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 14px;
}

.page-section .text-list li {
    margin: 6px 0;
}

.page-section .text-list a {
    color: #c0265a;
    font-weight: 600;
}

.page-section .directory-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}

.page-section .directory-card h2 {
    margin-top: 0;
    font-size: 20px;
    /* color: var(--primary); */
}

.page-section .directory-card p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 0;
}

/* 要“卡片之间”是 20px（首尾不留空） */
.page-section>.directory-card+.directory-card {
    margin-top: 20px;
}

.main .link {
    color: var(--soft-hot);
}

.main .link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.page-section .story-meta {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.main .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 10px;
}

.main .notice {
    margin-top: 28px;
    padding: 18px;
    border-radius: 12px;
    background: #fff5f8;
    border: 1px solid #f2c2d4;
    color: #9c1f4b;
    font-size: 14px;
}

/* 独立风格 */
.context-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.context-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #f1dce4;
    background: #ffffff;
    text-decoration: none;
    color: var(--soft-hot);
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(16, 24, 40, .12);

}

.context-links a:hover {
    background: var(--soft);
    transform: translateY(-2px);
    color: var(--primary);
    box-shadow: 0 14px 30px rgba(16, 24, 40, .12);
    border: 1px solid var(--primary);
}

.context-links span {
    display: block;
}

.context-links .link-title {
    font-weight: 600;
    font-size: 14px;
}

.context-links .link-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.highlight-box {
    background: #fff8fb;
    border: 1px dashed #f1dce4;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 24px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.cta-box {
    background: #fdf2f7;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    margin: 30px 0 0 0;
}

.cta-box p {
    font-size: 14px;
    color: #5b6574;
    margin-bottom: 14px;
}

.cta-box a {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: #c0265a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cta-box a:hover {
    background: #f0265a;
    text-decoration: underline;
}

.disclosure {
    font-size: 13px;
    color: #7a7f8a;
    margin-top: 24px;
    padding: 12px;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
}

/* ================= Mobile ================= */
@media (max-width: 768px) {
    .main {
        padding: 20px 14px 16px;
    }

    .page-head {
        padding: 24px;
    }

    .cta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-head h1 {
        font-size: 18px;
    }

    .page-section h2 {
        font-size: 18px;
    }

    .page-section h3 {
        font-size: 17px;
    }

    .page-section .directory-card h2 {
        font-size: 18px;
    }

    .tag-grid,
    .page-section .grid,
    .page-section ul {
        grid-template-columns: 1fr;
    }

    .page-section {
        padding: 18px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .cta-actions,
    .cta-row {
        width: 100%;
    }
}