/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== 按钮样式 ========== */
button {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 30px;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #666;
    padding: 15px 30px;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-small {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-small:hover {
    background: rgba(255,255,255,0.3);
}

.btn-small.btn-highlight {
    background: linear-gradient(135deg, #ff6b9d, #c44dff);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(196, 77, 255, 0.35);
}

.btn-small.btn-highlight:hover {
    background: linear-gradient(135deg, #ff5a8d, #b33de6);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

/* ========== 输入框样式 ========== */
input, select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

/* ========== 弹窗样式 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #667eea;
}

.modal-content input, .modal-content select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.modal-content input:focus, .modal-content select:focus {
    outline: none;
    border-color: #667eea;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

/* ========== Toast提示 ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2000;
}

.toast.show {
    opacity: 1;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ========== 底部页脚 ========== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 100;
}

.site-footer .footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer .footer-link:hover {
    color: #fff;
}

.site-footer .footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .footer-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

/* 页面底部留出页脚空间，避免内容被遮挡 */
body {
    padding-bottom: 50px;
}

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
