/* 基礎變數與全局設定 */
:root {
    --bg-color: #f4f1ea;        /* 和紙米灰 */
    --text-main: #2f2d2b;       /* 墨黑 */
    --text-muted: #5c5855;      /* 灰褐 */
    --accent-color: #8b7d6b;    /* 枯葉褐 */
    --border-color: #d8d3c9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* 強制使用標楷體 */
    font-family: 'BiaoKai', 'DFKai-sb', 'Kaiti TC', serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頭部區域 */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.hero .title {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 15px;
    color: var(--text-main);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* 介紹區塊 */
.intro {
    text-align: center;
    margin-bottom: 60px;
}

.intro h2 {
    font-weight: normal;
    margin-bottom: 10px;
}

.intro .highlight {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* 方案卡片模組 */
.plans {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .plans {
        flex-direction: column;
    }
}

.plan-card {
    flex: 1;
    background-color: #fcfbf9;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.risk-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.risk-label.alert {
    color: #6b705c; /* 蒼竹綠，低調的強調 */
}

.features {
    list-style: none;
}

.features li {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.features li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 試算表模組 */
.calculator {
    background-color: #fcfbf9;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 60px;
}

.calculator h2 {
    text-align: center;
    font-weight: normal;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.input-group input {
    font-family: inherit;
    font-size: 1.1rem;
    padding: 10px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-color);
}

.results {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

@media (max-width: 600px) {
    .results {
        flex-direction: column;
    }
}

.result-col {
    flex: 1;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 4px;
}

.result-col h4 {
    font-weight: normal;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.result-col p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.final-profit {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--accent-color);
}

.note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #a35d5d; /* 柔和的磚紅警示 */
}

/* 頁腳 */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}