/* =====================================================
   SVIP卡密验证系统 - 白色浅蓝玻璃风格
   风格: Apple iOS 风格 / 白色玻璃 / 浅蓝渐变
   ===================================================== */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== 浅蓝渐变背景 ===== */
body {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ebf9 25%, #c5e3f6 50%, #b8d9f2 75%, #e8f4fd 100%);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    color: #1a1a2e;
    position: relative;
    min-height: 100vh;
}

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

/* ===== 背景装饰光斑 ===== */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(135, 206, 250, 0.5) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: floatOrb1 25s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(176, 224, 250, 0.4) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: floatOrb2 30s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-80px, 80px) scale(1.1); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(60px, -50px) scale(1.15); }
}

/* ===== 玻璃卡片通用样式 ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow:
        0 8px 32px rgba(135, 206, 235, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

/* ===== 页面淡入动画 ===== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

/* ===== 首页主容器 ===== */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ===== Logo和标题 ===== */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #87ceeb, #64b5f6, #42a5f5);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow:
        0 10px 40px rgba(135, 206, 235, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.6);
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a2e 0%, #4a90d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.site-subtitle {
    font-size: 14px;
    color: rgba(26, 26, 46, 0.6);
}

/* ===== 卡密验证卡片 ===== */
.verify-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.card-desc {
    font-size: 14px;
    color: rgba(26, 26, 46, 0.6);
}

/* ===== 输入框样式 ===== */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 13px;
    color: rgba(26, 26, 46, 0.7);
    margin-bottom: 10px;
    font-weight: 500;
}

.glass-input {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    font-size: 16px;
    color: #1a1a2e;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(135, 206, 235, 0.3);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 2px;
    font-family: inherit;
}

.glass-input::placeholder {
    color: rgba(26, 26, 46, 0.3);
    letter-spacing: normal;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 181, 246, 0.6);
    box-shadow:
        0 0 0 4px rgba(100, 181, 246, 0.15),
        0 0 30px rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
}

/* ===== 玻璃按钮 ===== */
.glass-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #64b5f6, #42a5f5, #2196f3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 20px rgba(100, 181, 246, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    letter-spacing: 2px;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(100, 181, 246, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:active {
    transform: scale(0.97) translateY(0);
}

.glass-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(135, 206, 235, 0.3);
    color: #1a1a2e;
    box-shadow:
        0 4px 15px rgba(135, 206, 235, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 25px rgba(135, 206, 235, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ===== 结果展示区域 ===== */
.result-section {
    display: none;
    margin-top: 24px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(135, 206, 235, 0.2);
    animation: slideUp 0.5s ease-out;
}

.result-section.show {
    display: block;
}

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

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.status-badge.warning {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #e65100;
}

.status-badge.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

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

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(135, 206, 235, 0.15);
    font-size: 14px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(26, 26, 46, 0.6);
}

.info-value {
    color: #1a1a2e;
    font-weight: 500;
}

.info-value.highlight {
    color: #1976d2;
    font-weight: 600;
    font-size: 18px;
}

.info-value.warning {
    color: #e65100;
    font-weight: 600;
}

.info-value.error {
    color: #c62828;
    font-weight: 600;
}

.info-value.info-email {
    font-size: 12px;
}

.result-message {
    text-align: center;
    color: rgba(26, 26, 46, 0.75);
    line-height: 1.6;
    margin-top: 10px;
    font-size: 14px;
}

.info-list-extra {
    margin-top: 16px;
}

/* ===== 按钮波纹效果 ===== */
.glass-btn,
.mode-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

.mode-btn .ripple {
    background: rgba(100, 181, 246, 0.25);
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== 抖动动画 ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ===== 公告区域 ===== */
.announcement {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid #64b5f6;
    font-size: 13px;
    color: rgba(26, 26, 46, 0.7);
    line-height: 1.6;
}

.announcement-title {
    font-weight: 600;
    color: rgba(26, 26, 46, 0.9);
    margin-bottom: 6px;
    font-size: 14px;
}

/* ===== Loading动画 ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-top-color: #42a5f5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.loading-spinner.light {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Toast提示 ===== */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: rgba(76, 175, 80, 0.9);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #fff;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
}

.toast.error {
    background: rgba(244, 67, 54, 0.9);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #fff;
    box-shadow: 0 8px 30px rgba(244, 67, 54, 0.3);
}

.toast.info {
    background: rgba(100, 181, 246, 0.9);
    border: 1px solid rgba(100, 181, 246, 0.5);
    color: #fff;
    box-shadow: 0 8px 30px rgba(100, 181, 246, 0.3);
}

/* ===== 页脚 ===== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    color: rgba(26, 26, 46, 0.4);
    font-size: 12px;
}

.footer a {
    color: rgba(26, 26, 46, 0.5);
    text-decoration: none;
}

.footer a:hover {
    color: rgba(26, 26, 46, 0.8);
}

/* ===== 模式切换 ===== */
.mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.mode-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(135, 206, 235, 0.3);
    background: rgba(255, 255, 255, 0.6);
    color: rgba(26, 26, 46, 0.6);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.25), rgba(66, 165, 245, 0.25));
    color: #1976d2;
    border-color: rgba(100, 181, 246, 0.4);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2);
    font-weight: 600;
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.85);
    color: rgba(26, 26, 46, 0.85);
    transform: translateY(-1px);
}

.mode-btn:active {
    transform: scale(0.97);
}

/* ===== 输入框提示文字 ===== */
.input-hint {
    font-size: 12px;
    color: rgba(26, 26, 46, 0.5);
    margin-top: 8px;
    padding-left: 4px;
    line-height: 1.4;
}

/* ===== 联系方式 ===== */
.contact-info {
    margin-top: 24px;
    text-align: center;
    color: rgba(26, 26, 46, 0.55);
    font-size: 13px;
}

.contact-info a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .site-title {
        font-size: 26px;
    }

    .verify-card {
        padding: 28px 24px;
    }

    .card-title {
        font-size: 18px;
    }

    .glass-input,
    .glass-btn {
        height: 50px;
        font-size: 15px;
    }

    body::before,
    body::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 16px;
    }

    .verify-card {
        padding: 24px 20px;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
