:root {
    --bg-main: #181F2A;
    --bg-surface: #232B3A;
    --accent: #35B8A6;
    --accent-faded: #21897A99;
    --text-main: #F1F4FA;
    --text-subtle: #9CA6B9;
    --bar-bg: #293349;
    --shadow: 0 4px 24px #0006;
}
body {
    font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}
.logo {
    display: block;
    margin: 32px auto 0 auto;
    width: 100px;
    border-radius: 13px;
    box-shadow: var(--shadow);
}

/* Year Selector Bar */
.year-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px auto 8px auto;
    padding: 0 0 8px 0;
    flex-wrap: wrap;
}
.year-btn {
    background: var(--bg-surface);
    color: var(--accent);
    border: none;
    border-radius: 18px;
    padding: 7px 24px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background 0.16s, color 0.18s, box-shadow 0.16s;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 8px #0002;
    letter-spacing: 1px;
}
.year-btn.selected,
.year-btn:active {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 4px 12px #35b8a633;
}
.year-btn:hover:not(.selected) {
    background: #263641;
    color: var(--accent);
}

/* Headings */
h2 {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--accent);
}

/* Chart Area */
.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0 auto 32px auto;
    justify-content: center;
    max-width: 1100px;
}
.chart-box {
    flex: 1 1 300px;
    min-width: 250px;
    background: var(--bg-surface);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.accumulated-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.2em;
    margin-top: 0.1em;
    line-height: 1.1;
}
.accumulated-label {
    font-size: 1rem;
    color: var(--text-subtle);
    margin-bottom: 8px;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 95vw;
    max-width: 1100px;
    margin: 0 auto 32px auto;
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
th, td {
    border: none;
    padding: 6px 8px;
    text-align: center;
    color: var(--text-main);
}
th {
    background: #202634;
    color: var(--accent);
    font-weight: 600;
}
tr {
    transition: background .18s;
}
tr:nth-child(even) td {
    background: #202634;
}
tr:hover td {
    background: #253245;
}

/* Progress Bars */
.progress-container {
    background: var(--bar-bg);
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    align-items: center;
}
.progress-bar-height,
.progress-bar-distance,
.progress-bar-time,
.progress-bar {
    background: var(--accent);
    height: 100%;
    color: var(--bg-surface);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-left: 8px;
    border-radius: 8px 0 0 8px;
    transition: width .7s cubic-bezier(.4,2,.6,1);
    letter-spacing: 1px;
}
.progress-bar-distance,
.progress-bar-time {
    /* use same color for consistency */
    background: var(--accent-faded);
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1000px) {
    .charts-container { flex-direction: column; gap: 12px; }
    .chart-box { min-width: 0; }
    table, th, td { font-size: 13px; }
    .accumulated-value { font-size: 1.5rem; }
    .year-bar { gap: 7px; }
    .year-btn { font-size: 1em; padding: 6px 11px;}
}


/* Links */
a { color: var(--accent); text-decoration: underline dotted 1px; transition:.2s; }
a:hover { color: #4ee2d9; }
