* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    padding: 30px 15px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    letter-spacing: 2px;
}

/* Architecture Section */
.architecture {
    background: linear-gradient(135deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #c9a227;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.arch-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #c9a227;
}

.arch-card.control-card {
    border-left-color: #2a5298;
}

.arch-card h4 {
    color: #c9a227;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.arch-card.control-card h4 {
    color: #4a7fd4;
}

.arch-card p {
    color: #999;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    color: #666;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tab-btn .badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.3rem;
}

.tab-btn.heavy .badge {
    background: rgba(201, 162, 39, 0.2);
    color: #c9a227;
}

.tab-btn.control .badge {
    background: rgba(42, 82, 152, 0.2);
    color: #4a7fd4;
}

.tab-btn.active.heavy {
    background: linear-gradient(135deg, #c9a227 0%, #a07f1a 100%);
    border-color: #c9a227;
    color: #000;
}

.tab-btn.active.heavy .badge {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.tab-btn.active.control {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border-color: #2a5298;
    color: #fff;
}

.tab-btn.active.control .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Day Header */
.day-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.day-badge {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 50%;
}

.day-badge.heavy {
    background: linear-gradient(135deg, #c9a227 0%, #8b6914 100%);
    color: #000;
}

.day-badge.control {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: #fff;
}

.day-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.day-info .rest {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Exercise Card */
.exercise-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.exercise-main {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.exercise-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 50%;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #c9a227;
    flex-shrink: 0;
}

.exercise-name {
    flex: 1;
}

.exercise-name h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.exercise-name .subtitle-tag {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

/* 正式組 - 最大最醒目 */
.working-set {
    text-align: right;
}

.working-set .weight {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #c9a227;
    line-height: 1;
}

.working-set .reps {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #fff;
}

.working-set .sets-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 4px;
}

.working-set .work-tag {
    display: inline-block;
    background: #c9a227;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* 過渡組/熱身組 - 反灰較小 */
.feeder-section {
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feeder-label {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 55px;
    flex-shrink: 0;
}

.feeder-sets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.feeder-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feeder-item .fw {
    color: #888;
    font-weight: 500;
}

.feeder-item .fr {
    color: #555;
}

.feeder-item.transition {
    border-color: #3a3a2a;
    background: #1a1a15;
}

.feeder-item.transition .fw {
    color: #a89040;
}

.feeder-arrow {
    color: #333;
    font-size: 0.8rem;
}

/* Control Day 特殊樣式 */
.control-tag {
    display: inline-block;
    background: #2a5298;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.tab-content.control-day .working-set .weight {
    color: #4a7fd4;
}

.tab-content.control-day .exercise-number {
    color: #4a7fd4;
}

.tab-content.control-day .working-set .work-tag {
    background: #2a5298;
    color: #fff;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: #333;
    font-size: 0.8rem;
}

/* ==================== 第一層類別導航 ==================== */
.category-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.category-btn {
    flex: 1;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #333;
    border-radius: 12px;
    color: #888;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #555;
    color: #ccc;
}

.category-btn.active {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: #c9a227;
    color: #fff;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==================== Push Day 主題（紅/橘色系） ==================== */
.arch-card.push-card {
    border-left-color: #e74c3c;
}

.arch-card.push-card h4 {
    color: #e74c3c;
}

.tab-btn.push .badge {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.tab-btn.active.push {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    color: #fff;
}

.tab-btn.active.push .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.day-badge.push {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.tab-content.push-day .working-set .weight {
    color: #e74c3c;
}

.tab-content.push-day .exercise-number {
    color: #e74c3c;
}

.tab-content.push-day .working-set .work-tag {
    background: #e74c3c;
    color: #fff;
}

/* ==================== Pull Day 主題（綠色系） ==================== */
.arch-card.pull-card {
    border-left-color: #27ae60;
}

.arch-card.pull-card h4 {
    color: #27ae60;
}

.tab-btn.pull .badge {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.tab-btn.active.pull {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    border-color: #27ae60;
    color: #fff;
}

.tab-btn.active.pull .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.day-badge.pull {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
}

.tab-content.pull-day .working-set .weight {
    color: #27ae60;
}

.tab-content.pull-day .exercise-number {
    color: #27ae60;
}

.tab-content.pull-day .working-set .work-tag {
    background: #27ae60;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .category-btn {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .tab-btn {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .tab-btn .badge {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .exercise-main {
        flex-wrap: wrap;
    }

    .working-set {
        width: 100%;
        text-align: left;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #222;
    }

    .working-set .weight {
        font-size: 1.8rem;
    }

    .feeder-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feeder-label {
        width: auto;
    }
}