/**
 * 黔前智算 - 用户端统一主题样式
 * 所有 user 页面引用此样式文件
 */

/* ==================== CSS 变量 ==================== */
:root {
    --primary: #20D492;
    --primary-dark: #14A873;
    --primary-light: #6EF5C4;
    --primary-rgb: 32, 212, 146;
    --secondary: #177A59;
    --success: #20D492;
    --warning: #ff9500;
    --danger: #ff3b30;
    --info: #2A9B74;
    
    --gray-50: #F4FBF8;
    --gray-100: #E8F8F1;
    --gray-200: #D1DDD6;
    --gray-300: #8A9690;
    --gray-400: #6B7772;
    --gray-500: #4B5854;
    --gray-600: #2D3532;
    --gray-700: #1A2428;
    --gray-800: #12181B;
    
    --bg-primary: #ffffff;
    --bg-secondary: #F4FBF8;
    --hero-bg: #F5F5F5;
    --text-primary: #12181B;
    --text-secondary: #4B5854;
    --border-color: #E2EBE7;
    --card-bg: #ffffff;
    
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== 导航栏 ==================== */
nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav .container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-300);
    font-size: 15px;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-btns {
    display: flex;
    gap: 12px;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
}

.btn-ghost:hover {
    background: rgba(0,113,227,0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ==================== 页面容器 ==================== */
.page {
    display: none;
    padding-top: 72px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ==================== Hero区域 ==================== */
.hero {
    background: var(--hero-bg, #F5F5F5);
    padding: 120px 20px 80px;
    text-align: center;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,113,227,0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--gray-300);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-300);
}

/* ==================== 服务区域 ==================== */
.services {
    padding: 100px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-300);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-300);
    font-size: 15px;
}

/* ==================== 特性区域 ==================== */
.features {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,113,227,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--gray-300);
    font-size: 15px;
}

/* ==================== 页脚 ==================== */
footer {
    background: var(--gray-700);
    color: white;
    padding: 60px 20px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--gray-300);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

.form-control::placeholder {
    color: var(--gray-300);
}

/* ==================== 卡片样式 ==================== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 24px;
}

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

/* ==================== 表格样式 ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-400);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tr:hover td {
    background: var(--bg-secondary);
}

/* ==================== 状态徽章 ==================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active { background: #d1f4e0; color: #00a25e; }
.status-badge.inactive { background: var(--gray-100); color: var(--gray-400); }
.status-badge.pending { background: #fff4d6; color: #c98800; }

/* ==================== 警告框 ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: #d1f4e0; color: #00a25e; }
.alert-warning { background: #fff4d6; color: #c98800; }
.alert-danger { background: #fee2e2; color: #dc2626; }
.alert-info { background: #E8F8F1; color: #20D492; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 36px; }
    .hero-stats { gap: 30px; }
    .stat-value { font-size: 28px; }
    .section-header h2 { font-size: 28px; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 16px 60px; }
    .services { padding: 60px 16px; }
    .features { padding: 60px 16px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==================== 登录/注册页面 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-section img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.logo-section p {
    color: var(--gray-300);
    font-size: 14px;
}

/* 登录表单样式 */
.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"],
.login-container input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.login-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

.login-container input::placeholder {
    color: var(--gray-300);
}

.error-msg {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.form-group.error input {
    border-color: var(--danger);
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-400);
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--gray-300);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    padding: 0 16px;
}

/* 社交登录 */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--gray-300);
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-400);
}

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

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

/* 注册页面特殊样式 */
.register-container {
    max-width: 480px;
}

.bonus-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.terms-agreement {
    margin: 20px 0;
    font-size: 13px;
    color: var(--gray-400);
}

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

/* 步骤指示器 */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step.active {
    background: var(--primary);
    color: white;
}

.step.completed {
    background: var(--success);
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 8px;
}

.step-line.completed {
    background: var(--success);
}

/* 表单步骤 */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* 验证码输入组 */
.verify-group {
    display: flex;
    gap: 12px;
}

.verify-group input {
    flex: 1;
}

.btn-verify {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-verify:hover {
    background: var(--gray-200);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 返回链接 */
.back-link {
    text-align: center;
    margin-top: 24px;
}

.back-link a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--primary);
}

/* 成功消息 */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.success-message h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .verify-group {
        flex-direction: column;
    }
}

/* ==================== 从 index.html 补充的样式 ==================== */

/* GPU 区域 */
.gpu-section { background: #f5f5f7; padding: 100px 20px; }
.gpu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gpu-card { background: white; border-radius: 20px; padding: 32px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.08); position: relative; }
.gpu-badge { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 12px; font-size: 12px; color: white; }
.gpu-badge.hot { background: #ff3b30; }
.gpu-badge.pro { background: #1d1d1f; }
.gpu-badge.elite { background: linear-gradient(135deg, var(--secondary), var(--primary)); }
.gpu-icon { font-size: 64px; margin-bottom: 16px; }
.gpu-card h3 { font-size: 24px; margin-bottom: 8px; }
.gpu-desc { color: #666; font-size: 14px; margin-bottom: 20px; }
.gpu-specs { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.gpu-price { margin-bottom: 20px; }
.gpu-price .price { font-size: 36px; font-weight: 700; color: #20D492; }

/* 模型区域 */
.models-section { padding: 100px 20px; background: white; }
.models-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.model-category { background: white; border-radius: 16px; padding: 24px; border: 1px solid #e5e5e5; }
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.category-icon { font-size: 24px; }
.category-header h3 { flex: 1; font-size: 18px; font-weight: 600; }
.model-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #f5f5f7; border-radius: 10px; margin-bottom: 8px; }
.model-icon { font-size: 20px; }
.model-info h4 { font-size: 14px; font-weight: 600; }
.model-info p { font-size: 12px; color: #999; }
.model-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; color: white; }
.model-tag.elite { background: var(--secondary); }
.model-tag.hot { background: #ff3b30; }
.model-tag.new { background: #34c759; }

/* 解决方案区域 */
.solutions { padding: 100px 20px; background: #f5f5f7; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card { background: white; border-radius: 20px; padding: 32px; border: 1px solid #e5e5e5; transition: all 0.3s; }
.solution-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #20D492; transform: translateY(-4px); }
.solution-icon { width: 56px; height: 56px; background: #f5f5f7; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.solution-card h3 { font-size: 20px; margin-bottom: 12px; color: #1d1d1f; }
.solution-card p { font-size: 14px; line-height: 1.6; color: #666; margin-bottom: 16px; }
.solution-card ul { list-style: none; }
.solution-card li { padding: 6px 0; padding-left: 20px; position: relative; font-size: 13px; color: #666; }
.solution-card li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: #34c759; }

/* 用户评价区域 */
.testimonials { padding: 100px 20px; background: white; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial-card { background: #f5f5f7; border-radius: 20px; padding: 32px; position: relative; }
.testimonial-quote { font-size: 48px; color: #20D492; opacity: 0.3; position: absolute; top: 20px; right: 24px; }
.testimonial-content { font-size: 15px; line-height: 1.7; color: #333; margin-bottom: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #20D492, #177A59); display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: 600; }
.testimonial-info h4 { font-size: 15px; margin-bottom: 4px; }
.testimonial-info p { font-size: 13px; color: #999; }

/* 案例区域 */
.cases { padding: 100px 20px; background: #f5f5f7; }
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.case-card { background: white; border-radius: 20px; overflow: hidden; border: 1px solid #e5e5e5; transition: all 0.3s; }
.case-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-4px); }
.case-header { background: linear-gradient(135deg, #1d1d1f, #434344); padding: 32px; color: white; }
.case-header h3 { font-size: 20px; margin-bottom: 8px; }
.case-header p { font-size: 14px; opacity: 0.8; }
.case-body { padding: 24px 32px; }
.case-metrics { display: flex; gap: 32px; margin-bottom: 20px; }
.case-metric h4 { font-size: 24px; color: #20D492; margin-bottom: 4px; }
.case-metric p { font-size: 13px; color: #999; }
.case-desc { font-size: 14px; line-height: 1.7; color: #666; }
.case-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.case-tag { padding: 4px 12px; background: #f5f5f7; border-radius: 12px; font-size: 12px; color: #666; }

/* Section Tag */
.section-tag { display: inline-block; background: rgba(0,113,227,0.1); color: #20D492; padding: 6px 16px; border-radius: 16px; font-size: 12px; margin-bottom: 16px; }

/* Service Features */
.service-features { list-style: none; margin-bottom: 20px; }
.service-features li { padding: 8px 0; color: #666; }
.service-features li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #34c759; margin-right: 8px; }

/* Service Card Featured */
.service-card.featured { border: 2px solid #20D492; }

/* 弹窗样式 */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.active { display: block; opacity: 1; }

.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: white; border-radius: 20px; padding: 40px; width: 90%; max-width: 420px; z-index: 2001; display: none; opacity: 0; transition: all 0.3s; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }

.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: #f5f5f7; border-radius: 50%; font-size: 20px; cursor: pointer; color: #666; transition: all 0.3s; }
.modal-close:hover { background: #e5e5e5; color: #333; }

.modal-content h2 { font-size: 28px; margin-bottom: 8px; }

/* 表单样式补充 */
.form-group input { width: 100%; padding: 12px 16px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; transition: all 0.3s; }
.form-group input:focus { outline: none; border-color: #20D492; box-shadow: 0 0 0 3px rgba(0,113,227,0.1); }
.form-options a { color: #20D492; text-decoration: none; }
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #666; }
.checkbox input { width: 18px; height: 18px; accent-color: #20D492; }
.modal-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid #eee; font-size: 14px; color: #666; }
.modal-footer a { color: #20D492; text-decoration: none; font-weight: 500; }

/* 用户菜单 */
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 24px; background: #f5f5f7; border: none; cursor: pointer; transition: all 0.2s; }
.user-menu-btn:hover { background: #e5e5e5; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #20D492, #177A59); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; font-weight: 600; }
.user-avatar.admin { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.dropdown { position: absolute; top: 100%; right: 0; margin-top: 12px; background: white; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); padding: 12px; min-width: 220px; display: none; z-index: 1001; border: 1px solid #f0f0f0; }
.dropdown.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.dropdown-header h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.dropdown-header p { font-size: 12px; color: #999; }
.dropdown-divider { height: 1px; background: #f0f0f0; margin: 8px 0; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #333; text-decoration: none; font-size: 14px; border-radius: 10px; transition: all 0.2s; cursor: pointer; }
.dropdown-item:hover { background: #f5f5f7; }
.dropdown-item-icon { width: 28px; height: 28px; border-radius: 8px; background: #f5f5f7; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.dropdown-item:hover .dropdown-item-icon { background: #e5e5e5; }
.dropdown-item.danger { color: #ff3b30; }
.dropdown-item.danger:hover { background: #fff2f0; }
.dropdown-item.danger .dropdown-item-icon { background: #fff2f0; }
.dropdown-item.danger:hover .dropdown-item-icon { background: #ffccc7; }
.badge-admin { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; background: linear-gradient(135deg, #ff6b6b, #feca57); color: white; font-size: 11px; font-weight: 600; border-radius: 10px; margin-left: 8px; }

/* Toast 提示 */
.toast { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 3000; display: none; animation: slideDown 0.3s ease; }
.toast.success { background: #34c759; }
.toast.error { background: #ff3b30; }
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* 响应式补充 */
@media (max-width: 768px) {
    .services-grid, .gpu-grid, .models-grid, .solutions-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .footer-grid, .footer-links { grid-template-columns: 1fr; }
    .modal { padding: 24px; width: 95%; }
}

/* ==================== Models 页面样式 ==================== */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
}
.search-box input {
    width: 100%;
    padding: 16px 24px 16px 50px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}
.search-box input:focus {
    outline: none;
    border-color: #20D492;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

.filter-panel {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}
.filter-content {
    max-width: none; width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}
.filter-row:last-child {
    margin-bottom: 0;
}
.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 80px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.filter-chip {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip:hover {
    border-color: #20D492;
    color: #20D492;
}
.filter-chip.active {
    background: #20D492;
    border-color: #20D492;
    color: white;
}
.filter-chip .count {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.8;
}
.filter-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 16px 0;
}

.results-bar {
    background: #f5f5f7;
    padding: 12px 20px;
}
.results-content {
    max-width: none; width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.results-count {
    font-size: 14px;
    color: #666;
}
.clear-filters {
    font-size: 14px;
    color: #20D492;
    cursor: pointer;
}
.clear-filters:hover {
    text-decoration: underline;
}

.models-container {
    max-width: none; width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-block {
    margin-bottom: 40px;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 24px;
}
.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #20D492, #177A59);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.category-title h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}
.category-title p {
    font-size: 14px;
    color: #999;
}
.category-count {
    margin-left: auto;
    font-size: 14px;
    color: #20D492;
    font-weight: 500;
}

/* Model Card */
.model-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}
.model-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #20D492;
    transform: translateY(-4px);
}
.model-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.model-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.model-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.model-provider {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}
.model-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}
.model-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.model-metric {
    text-align: center;
}
.model-metric .value {
    font-size: 16px;
    font-weight: 600;
    color: #20D492;
}
.model-metric .label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.model-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.model-price {
    font-size: 20px;
    font-weight: 700;
    color: #20D492;
}
.model-price-unit {
    font-size: 13px;
    color: #999;
}

/* GPU 页面样式补充 */
.hero-stat {
    text-align: center;
}
.hero-stat .value {
    font-size: 36px;
    font-weight: 700;
    color: #20D492;
}
.hero-stat .label {
    font-size: 14px;
    color: #999;
    margin-top: 4px;
}

.section {
    padding: 80px 20px;
    background: white;
}
.section.light {
    background: #f5f5f7;
}

.gpu-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}
.gpu-tab {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}
.gpu-tab:hover {
    background: #f5f5f7;
}
.gpu-tab.active {
    background: #20D492;
    color: white;
}

.gpu-card-header {
    text-align: center;
    padding: 24px;
    position: relative;
}
.gpu-card-header .gpu-icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.gpu-card-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}
.gpu-card-header p {
    font-size: 14px;
    color: #999;
}
.gpu-card-body {
    padding: 24px;
}
.gpu-spec {
    text-align: center;
}
.gpu-spec .value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.gpu-spec .label {
    font-size: 12px;
    color: #999;
}
.gpu-features {
    list-style: none;
    margin-bottom: 20px;
}
.gpu-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 13px;
    color: #666;
}
.gpu-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: bold;
}
.gpu-price {
    text-align: center;
    margin-bottom: 16px;
}
.gpu-price .amount {
    font-size: 32px;
    font-weight: 700;
    color: #20D492;
}
.gpu-price .unit {
    font-size: 14px;
    color: #999;
}
.gpu-price .period {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Footer 样式补充 */
.footer-brand {
    display: flex;
    flex-direction: column;
}
.footer-brand .logo {
    margin-bottom: 12px;
}

/* Modal 样式补充 */
.modal-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}
.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}
.modal-header p {
    font-size: 14px;
    color: #999;
}
.modal-body {
    margin-bottom: 24px;
}

/* Order List 侧边栏 */
.order-list {
    position: fixed;
    top: 72px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 72px);
    background: white;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 999;
}
.order-list.active {
    right: 0;
}
.order-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}
.order-list-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.order-list-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}
.order-list-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}
.order-toggle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #20D492;
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(0,113,227,0.3);
    cursor: pointer;
    z-index: 998;
    transition: all 0.3s;
}
.order-toggle:hover {
    transform: scale(1.1);
}
.order-toggle .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
