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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.lottery-card, .query-card, .login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.fu-display {
    text-align: center;
    margin-bottom: 30px;
}

.fu-char {
    font-size: 120px;
    color: #d4380d;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary, .btn-secondary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-top: 10px;
}

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

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    animation: slideIn 0.5s;
}

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

.result.success {
    background: #f6ffed;
    border: 2px solid #52c41a;
    color: #52c41a;
}

.result.error {
    background: #fff2f0;
    border: 2px solid #ff4d4f;
    color: #ff4d4f;
}

.result .fu-prize {
    font-size: 80px;
    font-weight: bold;
    margin: 20px 0;
    color: #d4380d;
}

.hidden {
    display: none !important;
}

.info-box {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 8px 0;
    color: #666;
}

.info-box li:before {
    content: "🎁 ";
    margin-right: 8px;
}

.captcha-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.captcha-question {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    background: white;
    padding: 15px;
    border-radius: 8px;
    letter-spacing: 10px;
}

/* 管理后台样式 */
.admin-panel {
    min-height: 60vh;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: rgba(255,255,255,0.3);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.4);
}

.tab-btn.active {
    background: white;
    color: #667eea;
}

.tab-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-bar input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
}

.action-bar button {
    padding: 12px 24px;
    white-space: nowrap;
}

.data-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.data-item:last-child {
    border-bottom: none;
}

.data-item button {
    padding: 6px 12px;
    margin-left: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.btn-delete {
    background: #ff4d4f;
    color: white;
}

.probability-settings {
    max-width: 500px;
}

.prob-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.prob-item label {
    width: 120px;
    font-weight: bold;
}

.prob-item input {
    flex: 1;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.prob-total {
    margin-top: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.account-settings {
    max-width: 500px;
}

.account-settings .input-group {
    margin-bottom: 20px;
}

.account-settings label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #666;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
}

.error {
    color: #ff4d4f;
    margin-top: 10px;
    text-align: center;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    opacity: 0.8;
}

footer a {
    color: white;
    text-decoration: underline;
}

#logoutBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: auto;
}

header {
    position: relative;
}

/* 响应式设计 */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .fu-char {
        font-size: 80px;
    }
    
    .lottery-card, .query-card, .login-card {
        padding: 25px;
    }
    
    .action-bar {
        flex-direction: column;
    }
}
/* 极验验证码样式 */
#captcha-box {
    margin: 20px 0;
    min-height: 60px;
}

.geetest_holder {
    margin: 0 auto;
}

/* 验证码加载动画 */
#captcha-box:empty::before {
    content: "验证码加载中...";
    display: block;
    text-align: center;
    color: #999;
    padding: 20px;
}
/* 极验验证码样式 */
#captcha-box {
    margin: 20px 0;
    min-height: 60px;
}

.geetest_holder {
    margin: 0 auto;
}

.geetest_radar_tip {
    text-align: center;
}

/* 验证码加载提示 */
#captcha-box:empty::before {
    content: "验证码加载中...";
    display: block;
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
}

/* 极验按钮样式优化 */
.geetest_btn {
    border-radius: 5px !important;
}

.geetest_success_btn {
    background: #52c41a !important;
}

/* 响应式调整 */
@media (max-width: 600px) {
    #captcha-box {
        margin: 15px 0;
    }
}
/* 验证码加载提示 */
.captcha-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* 简易滑块验证码样式 */
.simple-captcha {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.captcha-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.captcha-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}

.captcha-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    user-select: none;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.captcha-slider.dragging {
    transition: none;
}

.captcha-slider:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.captcha-status {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* 极验验证码样式 */
#captcha-box {
    margin: 20px 0;
    min-height: 60px;
}

@media (max-width: 600px) {
    .captcha-slider {
        width: 45px;
        height: 36px;
        font-size: 18px;
    }
    
    .captcha-track {
        height: 36px;
    }
}
/* 验证码加载提示 */
.captcha-loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.captcha-error {
    text-align: center;
    padding: 20px;
    color: #ff4d4f;
    font-size: 14px;
    background: #fff2f0;
    border-radius: 8px;
}

/* 切换验证方式按钮 */
.switch-captcha {
    margin: 15px 0;
    text-align: center;
}

.btn-switch {
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.btn-switch:hover {
    background: #e6e6e6;
    border-color: #b3b3b3;
    color: #333;
}

.btn-switch:active {
    transform: scale(0.98);
}

/* 简易滑块验证码样式 */
.simple-captcha {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.captcha-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.captcha-track {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-bottom: 10px;
    overflow: hidden;
}

.captcha-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    user-select: none;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.captcha-slider.dragging {
    transition: none;
}

.captcha-slider:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.captcha-status {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* 极验验证码样式 */
#captcha-box {
    margin: 20px 0;
    min-height: 60px;
}

@media (max-width: 600px) {
    .captcha-slider {
        width: 45px;
        height: 36px;
        font-size: 18px;
    }
    
    .captcha-track {
        height: 36px;
    }
    
    .btn-switch {
        font-size: 12px;
        padding: 8px 15px;
    }
}