/* ============================================
   阅后即焚系统 v3.0 - 极光渐变主题
   墨桅博客出品
   ============================================ */

/* ========== CSS变量定义 ========== */
:root {
    /* 极光渐变配色 */
    --aurora-1: #667eea;
    --aurora-2: #764ba2;
    --aurora-3: #f093fb;
    --aurora-4: #f5576c;
    
    /* 主色调 */
    --primary: #667eea;
    --primary-light: #8b9ff5;
    --primary-dark: #5568d3;
    
    /* 背景色 */
    --bg-main: #0f0c29;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-input: rgba(255, 255, 255, 0.08);
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* 边框色 */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* 状态色 */
    --success: #00d4aa;
    --warning: #ffd166;
    --danger: #ff6b6b;
    --info: #4ecdc4;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* 阴影 */
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 极光背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand i {
    font-size: 26px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.navbar-menu a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.navbar-menu a span {
    display: inline;
}

.btn-logout {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(245, 87, 108, 0.2)) !important;
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff8a8a !important;
}

.btn-logout:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(245, 87, 108, 0.3)) !important;
}

/* ========== 主容器 ========== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    position: relative;
    z-index: 1;
}

/* ========== 卡片样式 ========== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    animation: fadeIn 0.5s ease;
}

.card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

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

.card-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.card-header i {
    margin-right: 0;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    margin-right: 0;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
    line-height: 1.8;
}

/* ========== 滑块样式 ========== */
.slider-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.slider-group {
    position: relative;
}

.slider-value {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin-top: 12px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
    color: white;
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #f5576c);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

/* ========== 特性网格 ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card i {
    font-size: 32px;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== 首页按钮组 ========== */
.auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* ========== 提示框 ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(78, 205, 196, 0.2));
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: #00d4aa;
}

.alert-error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(245, 87, 108, 0.2));
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff8a8a;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 159, 67, 0.2));
    border: 1px solid rgba(255, 209, 102, 0.3);
    color: #ffd166;
}

/* ========== 倒计时显示 ========== */
.countdown-display {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.countdown-label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.countdown-number {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.countdown-number.warning {
    color: var(--warning);
    -webkit-text-fill-color: var(--warning);
}

.countdown-number.danger {
    color: var(--danger);
    -webkit-text-fill-color: var(--danger);
    animation: pulse 1s ease-in-out infinite;
}

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

.countdown-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 10px;
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3));
    border-radius: 10px;
    transition: width 1s linear;
}

.countdown-progress.warning {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

/* ========== 内容框 ========== */
.content-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    font-size: 15px;
}

/* ========== 二维码盒子 ========== */
.qrcode-box {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    display: inline-block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.qrcode-box canvas {
    display: block;
}

/* ========== 参数网格 ========== */
.params-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.param-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.param-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.param-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.param-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== 链接展示 ========== */
.link-box,
.link-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.link-box i,
.link-display i {
    color: var(--primary);
    font-size: 18px;
}

.link-box input,
.link-display input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: 'Monaco', monospace;
}

/* ========== 成功页面 ========== */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success), #00cec9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 36px;
    color: white;
}

.success-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* ========== 联系盒子 ========== */
.contact-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
}

.contact-box h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-box h3 i {
    color: var(--primary);
}

.contact-info {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 内容销毁提示 ========== */
.content-destroyed {
    text-align: center;
    padding: 60px 20px;
}

.content-destroyed i {
    font-size: 64px;
    color: var(--danger);
    margin-bottom: 20px;
    opacity: 0.8;
}

.content-destroyed h3 {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== 控制台表格 ========== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--bg-input);
}

.table th,
.table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: var(--bg-card-hover);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(0, 212, 170, 0.2);
    color: var(--success);
}

.status-destroyed {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
}

.status-expired {
    background: rgba(255, 209, 102, 0.2);
    color: var(--warning);
}

/* ========== 复制提示 ========== */
.copy-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 12, 41, 0.5);
}

.footer p {
    margin-bottom: 8px;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .navbar-menu a span {
        display: none;
    }
    
    .navbar-menu a {
        padding: 10px 12px;
    }
    
    .container {
        padding: 40px 16px 60px;
    }
    
    .card {
        padding: 28px 20px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .countdown-number {
        font-size: 56px;
    }
    
    .slider-container,
    .params-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .link-box,
    .link-display {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-box .btn,
    .link-display .btn {
        width: 100%;
    }
    
    .auth-buttons,
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .table {
        display: block;
        overflow-x: auto;
    }
}
