* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    #app {
        width: 100%;
        min-height: 100vh;
    }

    .screen-saver {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: background 0.5s ease;
        position: relative;
        overflow: hidden;
    }

    .screen-saver::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
        pointer-events: none;
        transition: background 0.5s ease;
    }

    .clock-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        z-index: 1;
    }

    .clock-3d {
        perspective: 800px;
        perspective-origin: center center;
    }

    .clock-face {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: linear-gradient(145deg, #2a2a3e, #1e1e2e);
        border: 3px solid;
        position: relative;
        transform-style: preserve-3d;
        transform: rotateX(15deg) rotateY(-10deg);
        transition: border-color 0.5s ease, box-shadow 0.5s ease;
    }

    .clock-center {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        transition: background 0.5s ease;
    }

    .hour-marks {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
    }

    .hour-mark {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 4px;
        height: 15px;
        border-radius: 2px;
        transform-origin: center center;
        transition: background 0.5s ease;
    }

    .minute-marks {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
    }

    .minute-mark {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2px;
        height: 8px;
        border-radius: 1px;
        transform-origin: center center;
        transition: background 0.5s ease;
    }

    .hour-hand {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 6px;
        height: 55px;
        background: linear-gradient(to bottom, #ffffff, #cccccc);
        border-radius: 3px;
        transform-origin: center bottom;
        margin-left: -3px;
        margin-top: -55px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 3;
    }

    .minute-hand {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 4px;
        height: 75px;
        background: linear-gradient(to bottom, #e0e0e0, #a0a0a0);
        border-radius: 2px;
        transform-origin: center bottom;
        margin-left: -2px;
        margin-top: -75px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 2;
    }

    .second-hand {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2px;
        height: 85px;
        background: linear-gradient(to bottom, #ef4444, #dc2626);
        border-radius: 1px;
        transform-origin: center bottom;
        margin-left: -1px;
        margin-top: -85px;
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
        z-index: 4;
    }

    .clock-center-dot {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        background: #ffffff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        z-index: 6;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }

    .clock-shadow {
        width: 200px;
        height: 30px;
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
        transform: rotateX(90deg) translateZ(-40px) translateY(-110px);
        margin-top: 20px;
    }

    .digital-time {
        text-align: center;
    }

    .time-display {
        font-size: 56px;
        font-weight: 700;
        font-family: 'Courier New', monospace;
        color: #ffffff;
        letter-spacing: 4px;
        transition: text-shadow 0.5s ease;
    }

    .time-digit {
        display: inline-block;
        background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .time-digit.seconds {
        color: #ef4444;
        -webkit-text-fill-color: #ef4444;
        animation: pulse 1s ease-in-out infinite;
    }

    .time-separator {
        animation: blink 1s ease-in-out infinite;
    }

    .date-display {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 10px;
        font-family: 'Microsoft YaHei', sans-serif;
    }

    .controls {
        position: fixed;
        bottom: 30px;
        display: flex;
        gap: 15px;
        z-index: 10;
    }

    .control-btn {
        padding: 12px 24px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #ffffff;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-2px);
    }

    .control-btn.active {
        background: rgba(139, 92, 246, 0.5);
        border-color: #8b5cf6;
    }

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

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }

    @media (max-width: 768px) {
    
}

/* ============ 工具页面通用布局样式 ============ */
.section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.settings-card, .result-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.input-textarea:focus {
    border-color: #8b5cf6;
}

.input-textarea::placeholder {
    color: #9ca3af;
}

/* ============ 工具页面通用按钮样式 ============ */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .btn {
    flex: 1;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: #e8e8e8 !important;
    color: #999 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-purple {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-purple:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

/* ============ 工具页面空状态样式 ============ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: #888;
}

/* ============ 工具页面响应式布局 ============ */
@media (max-width: 768px) {
    .section-row {
        grid-template-columns: 1fr;
    }
}
