﻿/* ========== blog.css · 八字全書共享樣式（完整整合版）========== */

:root {
    --bg-body: linear-gradient(145deg, #fdf5f0 0%, #f0e7db 100%);
    --bg-container: rgba(255, 255, 255, 0.9);
    --backdrop: blur(8px);
    --shadow-container: 0 12px 30px rgba(0, 0, 0, 0.15);
    --border-container: 1px solid rgba(255, 245, 235, 0.6);
    --text-main: #4a3b2c;
    --text-sub: #9b7b6b;
    --text-light: #7a5d4e;
    --text-muted: #6e5440;
    --primary: #cfa189;
    --primary-hover: #b8866b;
    --primary-shadow: rgba(170, 130, 100, 0.3);
    --bg-form: #fff8f2;
    --bg-ad: #f3ede7;
    --border-ad: 1px dashed #b9a291;
    --text-ad: #7d6657;
    --bg-privacy: #d4edda;
    --text-privacy: #155724;
    --border-privacy: 4px solid #28a745;
    --bg-charity: #e9dad1;
    --text-charity: #4e3e33;
    --border-charity: 6px solid #b3927e;
    --bg-preview: #f0e0d0;
    --border-input: #dccbbd;
    --focus-border: #b28b7a;
    --focus-ring: rgba(210, 150, 130, 0.3);
    --required: #c44536;
    --table-header-bg: #bda79b;
    --table-header-text: white;
    --table-even: #faf3ed;
    --table-border: #ecdacf;
    --dayun-header: #cfa189;
    --positive-color: #c44536;
    --negative-color: #1e90ff;
    --footer-font: 0.95rem;
    --footer-small: 0.82rem;
    --footer-opacity: 0.85;
    --spacing: 1rem;
    --font-base: 16px;
    --ripple-color: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --btn-shadow: 0 8px 16px rgba(170, 130, 100, 0.3);
    --btn-shadow-hover: 0 12px 24px rgba(170, 130, 100, 0.4);
    --btn-press-scale: 0.97;
    --border-radius-card: 32px;
    --border-radius-button: 48px;
    --border-radius-item: 24px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-base);
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-body);
    margin: 0;
    padding: calc(var(--spacing) * 0.8);
    color: var(--text-main);
    line-height: 1.6;
    transition: background 0.3s ease;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-container);
    backdrop-filter: var(--backdrop);
    -webkit-backdrop-filter: var(--backdrop);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-container);
    padding: 1.8rem;
    border: var(--border-container);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.btn {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: var(--btn-shadow);
    min-width: 200px;
    margin: 0.5rem 0;
    letter-spacing: 0.5px;
    width: auto;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: var(--btn-shadow-hover);
}

.btn:active {
    transform: scale(var(--btn-press-scale));
    box-shadow: 0 4px 8px var(--primary-shadow);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--ripple-color);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.back-home {
    display: inline-block;
    margin: 0.5rem 0 1.5rem;
}

.btn-container {
    text-align: center;
}

.site-header {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    border-bottom: 2px solid var(--border-input);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.sub {
    text-align: center;
    font-size: 1.2rem;
    color: #836e5f;
    margin-bottom: 1.5rem;
    font-style: italic;
}

h1 {
    margin-top: 0;
    font-size: 2.0rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    border-bottom: 2px solid var(--border-input);
    padding-bottom: 1rem;
    letter-spacing: 0.5px;
}

h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    border-left: 6px solid var(--primary);
    padding-left: 1rem;
    scroll-margin-top: 80px;
    background: linear-gradient(90deg, rgba(207, 161, 137, 0.08) 0%, rgba(207, 161, 137, 0) 100%);
    border-radius: 0 20px 20px 0;
}

h2:first-of-type {
    margin-top: 1rem;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.about-section {
    font-size: 1.1rem;
    line-height: 1.8;
}

.timeline-block {
    background: var(--bg-preview);
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    margin: 1.8rem 0;
    border-left: 4px solid var(--primary);
    box-shadow: var(--card-shadow);
}

.belief-box {
    background: #e3f0f5;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    margin: 2rem 0;
    border-left: 6px solid var(--primary);
}

.quote-block {
    background: var(--bg-charity);
    padding: 1.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    font-style: italic;
    text-align: center;
    font-size: 1.2rem;
    border-left: 6px solid var(--primary);
}

.deduction-list {
    background: var(--bg-charity);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    margin: 1.5rem 0;
    list-style: none;
}

.deduction-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.deduction-list li::before {
    content: "▹";
    color: var(--required);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.citation {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-light, #ecdacf);
}

.small-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.highlight {
    font-weight: 600;
    color: var(--required);
}

.motto {
    text-align: center;
    margin: 2.5rem 0 1rem;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary);
}

.sub-motto {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.signature {
    text-align: right;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.privacy-note {
    background: var(--bg-privacy);
    color: var(--text-privacy);
    padding: 1rem 2rem;
    border-radius: 60px;
    margin: 1.5rem 0 0.5rem;
    text-align: center;
    font-size: 1rem;
    border-left: var(--border-privacy);
}

.footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--footer-font);
    border-top: 1px solid var(--border-input);
    padding-top: 2rem;
    line-height: 1.6;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background: #fefaf5;
    border-radius: 20px;
    padding: 1.5rem;
    border-top: 4px solid var(--primary);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.info-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

th,
td {
    border: 1px solid var(--table-border);
    padding: 0.9rem 1rem;
    text-align: left;
}

th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    font-weight: 600;
}

tr:nth-child(even) {
    background: var(--table-even);
}

.table-of-contents {
    background: rgba(245, 240, 230, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(207, 161, 137, 0.2);
}

.table-of-contents p {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.toc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.toc-btn {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1), box-shadow 0.2s;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.toc-btn:active {
    transform: translateY(0);
    transition: transform 0.05s;
}

.volume-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 1.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-input);
}

.volume-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.volume-links {
    display: flex;
    gap: 1.5rem;
}

.volume-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    transition: all 0.2s;
}

.volume-link:hover {
    background: var(--bg-preview);
    color: var(--primary);
}

.volume-link.current {
    background: var(--primary);
    color: white;
}

.term-list {
    background: var(--bg-preview);
    padding: 1.2rem 1.8rem;
    border-radius: 20px;
    margin: 1.5rem 0;
}

.term-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ccc;
}

.term-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.term-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    width: 130px;
    font-weight: 600;
    color: var(--primary);
}

.chart-bar {
    
    height: 32px;
    background: #e56c2c;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.chart-bar.weak {
    background: #b0b0b0;
}

.meter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.meter-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.2rem 0.5rem;
    text-align: center;
    border: 2px solid #cfa189;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.meter-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.meter-score {
    font-size: 1rem;
    font-weight: 700;
    color: #cfa189;
}

.meter-desc {
    font-size: 0.9rem;
    color: #6e5440;
}

.interact-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.interact-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interact-name {
    width: 60px;
    font-weight: 600;
}

.interact-bar-container {
    flex: 1;
    height: 28px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.interact-bar-xi {
    height: 100%;
    background: #cfa189;
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interact-bar-ji {
    height: 100%;
    background: #b0b0b0;
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.interact-card {
    background: var(--bg-preview);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border-top: 4px solid var(--primary);
}

.interact-card .term-title {
    margin-top: 0;
}

.case-card {
    background: var(--bg-preview);
    border-radius: 24px;
    padding: 1.8rem;
    margin: 2rem 0;
    border-left: 6px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.case-card h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary);
}

.case-birth {
    background: #e3f0f5;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1rem;
}

.case-birth p {
    margin: 0.3rem 0;
}

.case-analysis p {
    margin: 0.8rem 0;
}

.case-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #ccc;
}

.strength-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.history-card {
    background: var(--bg-preview);
    border-radius: 20px;
    padding: 1.2rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.stat-box {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--required);
}

.year-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.geopolitics-block {
    background: #f5f0e6;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    margin: 1.5rem 0;
    border-left: 6px solid #b22222;
}

.geopolitics-block p {
    margin-bottom: 1rem;
}

.geopolitics-block ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1.2rem 0;
}

.geopolitics-block li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.geopolitics-block li::before {
    content: "·";
    color: #b22222;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.geopolitics-summary {
    background: #e3f0f5;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
}

.contrast-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contrast-item {
    background: rgba(255, 255, 240, 0.6);
    padding: 1.2rem 1.8rem;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px #e5c9a8;
}

.contrast-item .title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #8b3c1c;
    margin-bottom: 1rem;
}

.contrast-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contrast-item li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contrast-item li::before {
    content: "·";
    color: #b22222;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.sv-poem-box {
    background: linear-gradient(145deg, #fff7e6 0%, #feedcc 100%);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 20px 30px -10px rgba(198, 108, 73, 0.2);
    border-left: 8px solid #b22222;
}

.sv-poem-box .intro {
    background: #fff9f0;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #8b3c1c;
    border-left: 6px solid #b22222;
}

.sv-poem-box .poem {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 2.5rem;
    text-align: center;
    color: #8b3c1c;
    background: rgba(255, 255, 240, 0.6);
    padding: 1.8rem 1rem;
    border-radius: 24px;
    margin: 0;
    box-shadow: inset 0 0 0 1px #e5c9a8;
    white-space: pre-line;
}

.conclusion {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #8b5a2b;
    margin: 1.5rem 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #c29a6b;
}

.personal-story {
    background: #f0e9d8;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    margin: 2rem 0;
    border-left: 6px solid #b22222;
}

.modem-spec {
    background: #2a3f5e;
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-block;
    margin-left: 0.5rem;
    font-family: monospace;
}

.emotional {
    font-weight: 500;
    color: #b22222;
}

.formula {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.sv-highlight {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.intro-text {
    font-size: 1.2rem;
}

.footer-note {
    margin-top: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
}

.knowledge-grid h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.knowledge-grid .btn {
    margin: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    padding: 0.8rem 0.2rem;
    box-shadow: var(--btn-shadow);
    text-decoration: none;
}

.knowledge-grid .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-shadow-hover);
}
.btn {
  text-decoration: none;
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        font-size: 18px;
    }

    .container {
        padding: 1.2rem;
        border-radius: 24px;
        gap: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
        min-height: 56px;
        margin: 0.5rem 0;
    }

    .timeline-block,
    .belief-box,
    .quote-block {
        padding: 1rem 1.2rem;
    }

    .deduction-list {
        padding: 1rem 1.2rem;
    }

    .table-of-contents {
        padding: 1rem 1.2rem;
    }

.toc-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border-radius: 30px;
}

    .volume-nav {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .meter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .chart-label {
        width: 100px;
        font-size: 0.9rem;
    }

    .chart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-bar {
        width: 100%;
    }

    .interact-row {
        flex-wrap: wrap;
    }

    .interact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-card {
        padding: 1rem;
    }

    .case-card h3 {
        font-size: 1.2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .geopolitics-block,
    .contrast-item,
    .sv-poem-box {
        padding: 1rem 1.2rem;
    }

    .sv-poem-box .poem {
        font-size: 1.3rem;
        line-height: 1.8rem;
        padding: 1rem 0.5rem;
    }

    .sv-poem-box .intro {
        font-size: 1rem;
        padding: 1rem;
    }

    .contrast-item .title {
        font-size: 1.2rem;
    }

    .conclusion {
        font-size: 1.1rem;
    }

    .personal-story {
        padding: 1rem 1.2rem;
    }

    .year-badge {
        font-size: 0.8rem;
        padding: 0.15rem 0.7rem;
    }

    .modem-spec {
        font-size: 0.8rem;
        padding: 0.15rem 0.7rem;
    }

    .motto {
        font-size: 1.1rem;
    }

    .sub-motto {
        font-size: 1rem;
    }

    .signature {
        font-size: 1rem;
    }

    .knowledge-grid {
        gap: 0.8rem;
        justify-items: center;
    }

.knowledge-grid .btn {
    font-size: 14px;
    padding: 6px 12px;
    line-height: 1.3;
    border-radius: 40px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    min-width: 70px;
    margin: 0.2rem;
}

    .btn::after {
        display: none;
    }
}

.poem-line {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8rem;
    margin-bottom: 0.3rem;
}