/* 全局样式 */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* 特点卡片 */
.feature-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

/* 服务器卡片 */
.server-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.server-card .card-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
}

.price-tag {
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
}

.price-tag .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-tag .period {
    color: #64748b;
    font-size: 0.9rem;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

/* 表单样式 */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-container h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 600;
    color: #374151;
}

/* 订单页面 */
.order-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.order-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-paid {
    background: #d1fae5;
    color: #059669;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* 购买页面 */
.buy-container {
    max-width: 600px;
    margin: 40px auto;
}

.payment-info {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.usdt-address {
    background: white;
    padding: 15px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin: 15px 0;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    margin: 20px auto;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* 后台管理 */
.admin-sidebar {
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-content {
    padding: 30px;
    background: #f8fafc;
    min-height: 100vh;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .auth-container {
        margin: 20px;
        padding: 25px;
    }
    
    .price-tag .price {
        font-size: 2rem;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* 警告提示 */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* 表格样式 */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.table thead {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.table th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table td {
    padding: 15px;
    vertical-align: middle;
}

/* 复制按钮 */
.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
}
