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

:root {
    --primary-color: #0078d4;
    --primary-hover: #106ebe;
    --secondary-color: #6c757d;
    --secondary-hover: #5a6268;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
    width: 100%;
}

.header-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.main-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    width: 100%;
    max-width: 800px;
}

.menu-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.menu-card-full {
    grid-column: 1 / -1;
    text-align: left;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.menu-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.menu-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
}

.load-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.load-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 0.2em;
}

.load-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 水印样式 */
.watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.15;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s;
}

.watermark.hidden {
    opacity: 0;
}

.watermark img {
    width: 120px;
    height: auto;
}

/* 提示框样式 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.4s ease-out;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 2px solid #fcc;
}

.timers-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.timer-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-item:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.timer-item-info {
    flex: 1;
}

.timer-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timer-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timer-item-id {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.empty-list {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.main-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    text-align: center;
}

.main-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.main-footer .footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.main-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .main-menu {
        grid-template-columns: 1fr;
    }
    
    .menu-card {
        padding: 2rem;
    }
    
    .menu-card-full {
        grid-column: 1;
    }
    
    .main-footer .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

