/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102,126,234,0.4); }
.btn-danger { background: #f56c6c; color: #fff; }
.btn-success { background: #67c23a; color: #fff; }
.btn-warning { background: #e6a23c; color: #fff; }
.btn-default { background: #fff; color: #606266; border: 1px solid #dcdfe6; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 15px; font-size: 14px; }
.btn-lg { padding: 15px 40px; font-size: 18px; }

/* 卡片 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: #303133; }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: #606266; }
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-color: #667eea; }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background: #fff; }

/* 提示框 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-danger { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.alert-success { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.alert-warning { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.alert-info { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }

/* 风险提示 */
.risk-notice {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}
.risk-notice h4 { color: #ff4757; margin-bottom: 10px; font-size: 16px; }
.risk-notice p { color: #ff6b6b; font-size: 14px; margin-bottom: 5px; }
.risk-notice .checkbox-label {
    display: flex;
    align-items: center;
    margin-top: 15px;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}
.risk-notice .checkbox-label input { margin-right: 10px; width: 18px; height: 18px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ebeef5; }
.table th { background: #fafafa; font-weight: 600; color: #606266; }
.table tr:hover { background: #f5f7fa; }

/* 标签 */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.tag-success { background: #f0f9eb; color: #67c23a; }
.tag-warning { background: #fdf6ec; color: #e6a23c; }
.tag-danger { background: #fef0f0; color: #f56c6c; }
.tag-info { background: #ecf5ff; color: #409eff; }
.tag-default { background: #f4f4f5; color: #909399; }

/* 导航 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.navbar .logo { font-size: 20px; font-weight: 700; color: #667eea; }
.navbar .nav-links { display: flex; gap: 30px; }
.navbar .nav-links a { color: #606266; font-size: 15px; }
.navbar .nav-links a:hover { color: #667eea; }

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; }
.footer h4 { color: #fff; margin-bottom: 15px; }
.footer a { color: #bdc3c7; display: block; margin-bottom: 8px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .copyright { width: 100%; text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #34495e; font-size: 13px; }

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-box h2 { text-align: center; margin-bottom: 30px; color: #303133; }
.login-box .tips { text-align: center; color: #909399; font-size: 14px; margin-top: 20px; }

/* 后台布局 */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .logo {
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid #34495e;
    text-align: center;
}
.admin-sidebar .menu { padding: 10px 0; }
.admin-sidebar .menu a {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    font-size: 14px;
    transition: all 0.3s;
}
.admin-sidebar .menu a:hover, .admin-sidebar .menu a.active {
    background: #34495e;
    color: #fff;
    border-left: 3px solid #667eea;
}
.admin-main {
    margin-left: 220px;
    flex: 1;
    padding: 20px;
}
.admin-header {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header h2 { font-size: 20px; }
.admin-header .user-info { color: #606266; font-size: 14px; }
.admin-header .user-info a { color: #667eea; margin-left: 15px; }

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.stat-card .label { color: #909399; font-size: 14px; margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #303133; }
.stat-card.primary .value { color: #667eea; }
.stat-card.success .value { color: #67c23a; }
.stat-card.warning .value { color: #e6a23c; }
.stat-card.danger .value { color: #f56c6c; }

/* 套餐卡片 */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.package-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}
.package-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.package-card.featured { border-color: #667eea; position: relative; }
.package-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 0;
    right: 20px;
    background: #667eea;
    color: #fff;
    padding: 5px 15px;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
}
.package-card h3 { font-size: 20px; margin-bottom: 15px; color: #303133; }
.package-card .price { font-size: 36px; font-weight: 700; color: #667eea; margin-bottom: 5px; }
.package-card .price span { font-size: 16px; color: #909399; }
.package-card .days { color: #909399; font-size: 14px; margin-bottom: 20px; }
.package-card ul { list-style: none; text-align: left; margin-bottom: 25px; }
.package-card ul li { padding: 8px 0; color: #606266; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.package-card ul li:last-child { border-bottom: none; }
.package-card ul li::before { content: '✓ '; color: #67c23a; font-weight: bold; }

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 20px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero .btn { background: #fff; color: #667eea; font-weight: 600; }

/* 步骤 */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.step { text-align: center; }
.step .number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 15px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { color: #909399; font-size: 14px; }

/* 报告页 */
.report-container { max-width: 800px; margin: 40px auto; }
.report-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px 12px 0 0;
}
.report-header h2 { margin-bottom: 10px; }
.report-header .meta { opacity: 0.9; font-size: 14px; }
.report-body { background: #fff; padding: 30px; border-radius: 0 0 12px 12px; }
.report-section { margin-bottom: 30px; }
.report-section h3 { font-size: 18px; margin-bottom: 15px; color: #303133; border-left: 4px solid #667eea; padding-left: 10px; }
.report-section p { color: #606266; line-height: 1.8; }
.score-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}
.score-display .score { font-size: 64px; font-weight: 700; color: #667eea; }
.score-display .label { color: #909399; font-size: 16px; margin-top: 10px; }
.chat-screenshot {
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background: #fafafa;
}
.chat-screenshot .chat-bubble {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 8px 0;
    max-width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chat-screenshot .chat-bubble.left { background: #fff; }
.chat-screenshot .chat-bubble.right { background: #95ec69; margin-left: auto; }
.chat-screenshot .chat-meta { font-size: 12px; color: #909399; margin-bottom: 5px; }

/* 响应式 */
@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .admin-sidebar { width: 60px; }
    .admin-sidebar .logo { font-size: 14px; padding: 15px 5px; }
    .admin-sidebar .menu a { padding: 12px 10px; font-size: 12px; text-align: center; }
    .admin-main { margin-left: 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .package-grid { grid-template-columns: 1fr; }
}
