/* 星光启动器 - 主样式文件 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-color: #0f172a;
    --darker-color: #020617;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
    color: var(--light-color);
    min-height: 100vh;
    line-height: 1.6;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 180px);
}

/* 导航栏 */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.logo i {
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover:before {
    left: 100%;
}

.nav-links a:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn: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:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: var(--gray-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
    color: var(--dark-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #f87171);
}

/* 表单样式 */
.form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
        margin: 15px 0;
    }
}

/* 首页英雄区域 */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 25px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
}

/* 功能卡片网格 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    border: 1px solid var(--card-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

th {
    background: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--gray-color);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 消息提示 */
.alert {
    padding: 18px 24px;
    border-radius: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--success-color);
    color: #d1fae5;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger-color);
    color: #fee2e2;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--warning-color);
    color: #fef3c7;
}

.alert i {
    font-size: 1.2rem;
}

/* API密钥显示 */
.api-key-status {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
}

.api-key-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    border: 2px dashed rgba(239, 68, 68, 0.3);
}

.api-key-status.active {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.api-key-status i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.api-key-status.inactive i {
    color: var(--danger-color);
}

.api-key-status.active i {
    color: var(--success-color);
}

.api-key-display {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.api-key-display:before {
    content: 'API密钥';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--dark-color);
    padding: 0 10px;
    font-size: 0.8rem;
    color: var(--gray-color);
}

.copy-api-key {
    margin-top: 15px;
}

.note {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

/* 下载卡片 */
.download-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 40px;
}

.download-icon {
    font-size: 5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.version {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, var(--accent-color), #f472b6);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.download-features {
    margin: 25px 0;
}

.download-features p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.download-features i {
    color: var(--success-color);
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* QQ按钮样式 */
.qq-button {
    background: linear-gradient(135deg, #12B7F5, #0d9cdb);
    color: white;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(18, 183, 245, 0.3);
}

.qq-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(18, 183, 245, 0.4);
    background: linear-gradient(135deg, #0d9cdb, #0a8bc2);
}

/* 爱发电按钮 */
.afdian-button {
    background: linear-gradient(135deg, #946ce6, #7e5fd9);
    color: white;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(148, 108, 230, 0.3);
}

.afdian-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(148, 108, 230, 0.4);
    background: linear-gradient(135deg, #7e5fd9, #6b51c4);
}

/* 页脚 */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--card-border);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 用户信息 */
.user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.user-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info strong {
    color: var(--primary-color);
    min-width: 100px;
}

/* 活动列表 */
.activity-list {
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.activity-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

/* 系统信息 */
.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.system-info p {
    margin: 10px 0;
}

.system-info strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

/* 文字居中 */
.text-center {
    text-align: center;
}

/* 管理员备注 */
.admin-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.admin-note p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

.admin-note code {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    color: var(--warning-color);
}

/* 内边距工具类 */
.p-20 { padding: 20px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.ml-10 { margin-left: 10px; }
.mr-10 { margin-right: 10px; }
/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 5px;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.strength-weak { background: var(--danger-color); width: 25%; }
.strength-fair { background: var(--warning-color); width: 50%; }
.strength-good { background: var(--success-color); width: 75%; }
.strength-strong { background: var(--success-color); width: 100%; }

/* 安全提示框 */
.security-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.security-alert i {
    color: var(--danger-color);
}

/* 登录尝试记录 */
.login-attempts {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.login-attempts .success { color: var(--success-color); }
.login-attempts .failed { color: var(--danger-color); }

/* 管理员特殊样式 */
.admin-badge {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, var(--warning-color), #fbbf24);
    color: var(--dark-color);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 5px;
    text-transform: uppercase;
}