/* ----------------------------------
   🌤 今日心天氣 · 精緻柔霧美學版（輸入頁專用）
---------------------------------- */

:root {
    --blue-main: #7fa4c4;
    --blue-dark: #6a8fc0;
    --soft-yellow: #e5f6ed;
    --bg-blue: #f5f7fb;
    --text-gray: #4a4a4a;
    --text-light: #7a889a;
    --card-white: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 14px rgba(150, 170, 190, 0.12);
}

/* Body */
body {
    background: var(--bg-blue);
    font-family: 'Noto Sans TC', sans-serif;
    padding: 28px 20px;
    color: var(--text-gray);
    line-height: 1.6;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
}

/* Logo */
.logo-box {
    text-align: center;
    margin-bottom: 10px;
}

.logo-img {
    width: 140px;
    height: auto;
}

/* Title */
.title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--blue-main);
    margin-top: -30px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    margin: 32px 0 14px;
    letter-spacing: 0.5px;
}

/* Intro Card */
.intro-card {
    background: #f9fcff;
    padding: 22px 20px;
    border-radius: 14px;
    max-width: 720px;
    margin: 40px auto 24px auto;
    border: 1px solid #eef1f5;
    text-align: center;
    animation: fadeIntro 0.6s ease-out;
}

.intro-title {
    font-size: 17px;
    font-weight: 600;
    color: #a1c1de;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
    color: #6a7f98;
    text-align: left;
}

.intro-sign {
    margin-top: 10px;
    color: #9bb3c8;
    font-size: 14px;
    text-align: right;
}

/* Intro Animation */
@keyframes fadeIntro {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    background: var(--card-white);
    padding: 22px 20px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    border: 1px solid #e7eaf0;
}

/* Label */
.label {
    font-weight: 700;
    font-size: 15px;
    color: var(--blue-main);
    margin-bottom: 10px;
}

.label small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-weight: 400;
}

/* Input */
.input-select,
.input-text {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1.6px solid var(--soft-yellow);
    margin-top: 12px;
    background: #fafafa;
    font-size: 15px;
}

.input-select:focus,
.input-text:focus {
    outline: none;
    border-color: var(--blue-main);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(135, 166, 197, 0.15);
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    margin-top: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #5a6575;
}

/* ✔ SVG 勾勾（最穩定版本） */
.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cce7d8;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

.checkbox-group input[type="checkbox"]:checked {
    border-color: #b4dfc6;
    background-color: #e5f6ed;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234a5056' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Buttons */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--blue-main);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(135, 166, 197, 0.25);
}

.history-btn {
    width: 100%;
    padding: 14px;
    background: #ffffff;
    color: var(--blue-main);
    border: 2px solid var(--blue-main);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.history-btn:hover {
    background: var(--blue-main);
    color: #ffffff;
}

/* Result */
.result {
    min-height: 120px;
    margin-top: 24px;
}

.placeholder {
    color: #a1aab7;
    font-size: 15px;
}

/* Weather Card */
.weather-card {
    background: #ffffff;
    padding: 36px 30px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e6ebf2;
    margin: 40px auto;
    text-align: center;
}

.weather-tag {
    font-size: 28px;
    margin-bottom: 16px;
    color: #6a87b6;
}

.weather-text {
    font-size: 18px;
    color: var(--blue-main);
    margin-bottom: 22px;
}

.weather-advice {
    font-size: 16px;
    line-height: 1.7;
}

.weather-stats-box {
    background: #f7faff;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1.5px solid #e3e8f0;
    margin: 24px auto;
    text-align: left;
    max-width: 520px;
}

.weather-end {
    color: var(--blue-main);
    font-size: 16px;
    margin-top: 24px;
    opacity: 0.9;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 20px 10px;
    color: #8fa2b6;
    font-size: 13px;
}

/* -------------------------------------------
   📱 RWD – 手機優化
------------------------------------------- */
@media (max-width: 480px) {

    body {
        padding: 18px;
        font-size: 15px;
    }

    .logo-img {
        width: 100px;
    }

    .title {
        margin-top: -5px;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .intro-card {
        padding: 20px 18px;
        border-radius: 12px;
    }

    .card {
        padding: 18px;
        border-radius: 12px;
    }

    .checkbox-group {
        grid-template-columns: 1fr 1fr;
        gap: 12px 12px;
    }

    .history-btn {
        font-size: 14px;
        padding: 16px;
    }

    .weather-card {
        padding: 28px 20px;
        border-radius: 18px;
        margin: 28px 0 34px;
    }

    .weather-tag {
        font-size: 22px;
    }
}