﻿:root {
    --bg: #f4f0e5;
    --panel: #fffdf7;
    --ink: #182328;
    --muted: #5a6670;
    --accent: #0f766e;
    --accent-soft: #c7ebe7;
    --signal: #c56b1f;
    --line: #d8d2c4;
    --shadow: 0 16px 40px rgba(15, 30, 35, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, serif;
    line-height: 1.7;
    background:
        radial-gradient(circle at 8% 10%, rgba(15, 118, 110, 0.12), transparent 34%),
        radial-gradient(circle at 94% 18%, rgba(197, 107, 31, 0.14), transparent 38%),
        linear-gradient(180deg, #f7f3e8, #f2ece0 45%, #eee7da);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(130deg, rgba(15, 118, 110, 0.12), rgba(197, 107, 31, 0.12));
}

.header-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 28px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-title {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}

.brand-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-list a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 118, 110, 0.25);
    background: rgba(255, 255, 255, 0.55);
    font-family: "Sora", sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
}

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 8px;
}

.hero h1 {
    margin: 0;
    font-family: "Sora", "Trebuchet MS", sans-serif;
    font-weight: 800;
    line-height: 1.2;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

.hero p { max-width: 860px; color: #30424c; margin-top: 12px; font-size: 1.06rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 24px 20px 56px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 20px 0 12px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Sora", sans-serif;
    font-size: 1.2rem;
}

.toolbar { display: grid; gap: 12px; grid-template-columns: 1.2fr 0.5fr; margin-bottom: 18px; }
.toolbar input, .toolbar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.96rem;
    font-family: "Sora", sans-serif;
    background: rgba(255, 255, 255, 0.9);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

.post-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(18, 32, 37, 0.18); }

.chip {
    display: inline-block;
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #0f5f57;
}

.post-card h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 1.08rem; line-height: 1.35; }
.post-card p { margin: 0; color: #3c4b56; }
.meta { color: #5a6770; font-size: 0.88rem; }
.cta { font-family: "Sora", sans-serif; font-weight: 700; }

.result-count {
    margin: 6px 0 10px;
    color: #485965;
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 4px;
}

.page-btn {
    border: 1px solid #c9c2b3;
    background: rgba(255, 255, 255, 0.92);
    color: #1f303a;
    border-radius: 10px;
    padding: 7px 11px;
    font-family: "Sora", sans-serif;
    font-size: 0.84rem;
    cursor: pointer;
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: default;
}

.page-btn.is-active {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

.article-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.article-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.article-meta { margin: 0 0 18px; color: #56646d; font-size: 0.93rem; }
.article-card h1 {
    margin: 0 0 12px;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.3rem);
    line-height: 1.24;
}

.lede { font-size: 1.08rem; color: #2f414b; margin-top: 0; margin-bottom: 18px; }
.content-block { border-top: 1px dashed #d9d0bc; padding-top: 16px; margin-top: 16px; }
.content-block h2 { margin: 0 0 8px; font-family: "Sora", sans-serif; font-size: 1.25rem; }
.content-block h3 { margin-bottom: 6px; font-family: "Sora", sans-serif; font-size: 1rem; }
.content-block p, .content-block li { color: #25363f; }
.keyword-list { columns: 2; gap: 18px; padding-left: 20px; }

.ad-slot {
    border: 1px dashed #c9b49e;
    background: rgba(197, 107, 31, 0.06);
    border-radius: 12px;
    padding: 10px;
    margin: 16px 0;
}

.ad-slot .adsbygoogle {
    min-height: 90px;
}

.toc-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 14px;
    align-self: start;
}

.toc-card h3 { margin: 0 0 8px; font-family: "Sora", sans-serif; }
.toc-card ol { margin: 0; padding-left: 20px; }
.toc-card li { margin: 5px 0; font-size: 0.92rem; }

.related { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
.related h3 { margin: 0 0 8px; font-family: "Sora", sans-serif; }

.content-page { max-width: 940px; margin: 0 auto; padding: 24px 20px 56px; }
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
}
.content-page h1 { margin-top: 0; font-family: "Sora", sans-serif; }

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 20px 44px;
    text-align: center;
    color: #4c5a64;
    font-size: 0.92rem;
}

.fade-in { opacity: 0; transform: translateY(8px); animation: floatIn 0.55s ease forwards; }
.fade-in:nth-child(2) { animation-delay: 0.06s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
.fade-in:nth-child(4) { animation-delay: 0.14s; }
.fade-in:nth-child(5) { animation-delay: 0.18s; }
.fade-in:nth-child(6) { animation-delay: 0.22s; }
.fade-in:nth-child(7) { animation-delay: 0.26s; }

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

@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; }
    .toc-card { position: static; }
    .keyword-list { columns: 1; }
}

@media (max-width: 720px) {
    .toolbar { grid-template-columns: 1fr; }
    .article-card { padding: 16px; }
    .hero { padding-top: 18px; }
}
