.exam-countdown-page {
    padding: 24px 20px;
    max-width: var(--medium-width);
    margin: 0 auto;
}

.countdown-display {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.countdown-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.countdown-display-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 30px;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 30px;
    font-weight: 500;
}

.exam-name {
    font-size: 58px;
    font-weight: 700;
    margin: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(90deg, #e11d48, #f59e0b, #ffffff, #f59e0b, #e11d48);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: colorFlow 3s linear infinite;
}

.countdown-tiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.tile-days .tile-value {
    background: rgba(225, 29, 72, 0.3);
    border: 1px solid #e11d48;
    color: white;
    text-shadow: 0 0 20px rgba(225, 29, 72, 0.8), 0 0 40px rgba(225, 29, 72, 0.8);
}

.tile-value {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #e2e8f0;
    font-size: 100px;
    font-weight: 700;
    padding: 0 40px;
    border-radius: 8px;
    line-height: 1.4;
    font-family: 'Courier New', monospace;
}

.tile-label {
    margin-top: 8px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.tile-sep {
    font-size: 80px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    top: -32px;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes colorFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes innerGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(225, 29, 72, 0.6); }
    50% { text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(225, 29, 72, 0.3); }
}

.countdown-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 30px;
    font-family: STKaiti, '华文楷体', serif;
}

.quote {
    font-size: 32px;
    opacity: 0.5;
    font-family: STHupo, '华文琥珀', serif;
}

.config-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.config-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-label {
    flex-shrink: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.config-input {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: #fafafa;
    transition: all 0.2s;
}

.config-input:focus {
    outline: none;
    border-color: #e11d48;
    background: white;
}

.config-actions {
    flex-shrink: 0;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-start:hover {
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

@media (max-width: 640px) {
    .countdown-display {
        padding: 30px 20px;
    }

    .exam-name {
        font-size: 22px;
    }

    .tile {
        min-width: 60px;
    }

    .tile-value {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .tile-days .tile-value {
        font-size: 42px;
    }

    .tile-sep {
        font-size: 28px;
        top: -10px;
    }

    .config-card {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .config-row {
        width: 100%;
    }

    .config-label {
        width: 70px;
    }

    .config-input {
        flex: 1;
        min-width: 180px;
    }
}
