/* ===================== QQ电脑登录 - 前端样式 ===================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f5f6fa; color: #333; line-height: 1.6; }
a { color: #667eea; text-decoration: none; }
a:hover { opacity: 0.85; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 导航栏 */
.navbar { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 60px; }
.navbar .container { display: flex; align-items: center; height: 60px; }
.navbar-brand { font-size: 20px; font-weight: 700; color: #667eea; margin-right: 40px; }
.navbar-brand:hover { opacity: 1; }
.navbar-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.navbar-links a { padding: 6px 16px; border-radius: 6px; font-size: 14px; color: #555; transition: all 0.3s; }
.navbar-links a:hover, .navbar-links a.active { background: #f0f2ff; color: #667eea; }
.navbar-user { font-size: 14px; color: #999; margin-left: 8px; padding: 6px 12px; background: #f8f9fe; border-radius: 6px; }

/* Hero 区域 */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 120px 0 80px; text-align: center; color: #fff; margin-top: 0; }
.hero h1 { font-size: 42px; margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; }

/* 按钮 */
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; border: none; cursor: pointer; 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; box-shadow: 0 4px 15px rgba(102,126,234,0.4); }
.btn-outline { background: transparent; color: #667eea; border: 2px solid #667eea; }
.btn-outline:hover { background: #667eea; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 4px; }
.btn-info { background: #1890ff; color: #fff; }
.btn-warning { background: #faad14; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-secondary { background: #d9d9d9; color: #555; }

/* 特性区块 */
.features { padding: 80px 0; background: #fff; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 40px; color: #333; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: #f8f9fe; border-radius: 12px; padding: 30px 20px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature-icon { width: 60px; height: 60px; border-radius: 30px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 20px; font-weight: 700; }
.feature-card h3 { margin-bottom: 10px; font-size: 18px; }
.feature-card p { font-size: 14px; color: #666; }

/* 价格区块 */
.pricing { padding: 80px 0; background: #f5f6fa; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: #fff; border-radius: 16px; padding: 30px 20px; text-align: center; border: 2px solid transparent; position: relative; transition: all 0.3s; }
.pricing-card:hover { border-color: #667eea; transform: translateY(-5px); box-shadow: 0 10px 40px rgba(102,126,234,0.15); }
.pricing-card.featured { border-color: #667eea; box-shadow: 0 8px 30px rgba(102,126,234,0.2); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pricing-card h3 { font-size: 20px; margin-bottom: 10px; }
.price { font-size: 36px; font-weight: 700; color: #667eea; margin-bottom: 8px; }
.pricing-card p { font-size: 14px; color: #999; margin-bottom: 16px; }
.pricing-card ul { list-style: none; margin-bottom: 20px; text-align: center; }
.pricing-card ul li { padding: 6px 0; font-size: 14px; color: #666; }
.pricing-card ul li::before { content: '✓ '; color: #52c41a; }

/* Footer */
.footer { background: #1a1a2e; color: #999; text-align: center; padding: 30px 0; font-size: 14px; }

/* 登录/注册 */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; }
.auth-box { background: #fff; border-radius: 16px; padding: 40px; width: 400px; max-width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 { font-size: 24px; color: #333; }
.auth-header p { color: #999; margin-top: 8px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-group label { display: block; margin-bottom: 6px; color: #555; font-size: 14px; }
.auth-form .form-group input { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; }
.auth-form .form-group input:focus { border-color: #667eea; outline: none; }
.auth-footer { text-align: center; margin-top: 20px; color: #999; font-size: 14px; }

/* 通用组件 */
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.card-header { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; font-size: 16px; font-weight: 600; color: #333; display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.page-header { margin: 20px 0; }
.page-header h2 { font-size: 22px; color: #333; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; }
.tag-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.tag-danger { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.tag-warning { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }
.tag-secondary { background: #fafafa; color: #999; border: 1px solid #e8e8e8; }
.tag-info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.table th { background: #fafafa; font-weight: 600; color: #555; }
.table tr:hover { background: #f8f9fe; }
.table-responsive { overflow-x: auto; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #555; font-size: 14px; font-weight: 500; }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; }
.form-input:focus { border-color: #667eea; outline: none; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.info-item label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.info-item span { font-size: 16px; color: #333; }

.empty-state { text-align: center; padding: 40px 20px; color: #999; }
.empty-state p { margin-bottom: 16px; }

/* 支付选择 */
.pay-methods { display: flex; gap: 16px; margin-bottom: 20px; }
.pay-method { flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid #eee; border-radius: 12px; cursor: pointer; transition: all 0.3s; }
.pay-method:hover { border-color: #667eea; }
.pay-method.selected { border-color: #667eea; background: #f0f2ff; }
.pay-icon { width: 44px; height: 44px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.pay-method small { display: block; color: #999; font-size: 12px; margin-top: 2px; }
.pay-summary { background: #f8f9fe; padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; }
.pay-summary p { font-size: 14px; color: #666; margin: 4px 0; }
.price-text { font-size: 24px; font-weight: 700; color: #667eea; }

/* QR登录 */
.qr-login-form { display: flex; gap: 12px; align-items: flex-end; }
#qrContainer { text-align: center; margin-top: 30px; }
#qrImage { margin: 20px auto; width: 300px; height: 300px; border: 1px solid #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f9f9f9; }
#qrImage img { width: 280px; height: 280px; border-radius: 8px; }
.progress-bar { width: 300px; height: 6px; background: #eee; border-radius: 3px; margin: 10px auto; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 3px; transition: width 1s ease; width: 0%; }

/* 按钮操作组 */
.btn-action { margin: 0 2px; }

/* Toast 提示 */
.toast { position: fixed; top: 80px; right: 20px; padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 14px; z-index: 9999; animation: toastIn 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.toast-success { background: #52c41a; }
.toast-error { background: #ff4d4f; }
.toast-info { background: #1890ff; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-20px); } }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; padding: 10px 0; }
.pagination a { display: inline-block; padding: 6px 14px; border: 1px solid #ddd; border-radius: 6px; color: #555; font-size: 13px; transition: all 0.3s; }
.pagination a.active, .pagination a:hover { background: #667eea; color: #fff; border-color: #667eea; }

/* 响应式 */
@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 28px; }
    .info-grid { grid-template-columns: 1fr; }
    .pay-methods { flex-direction: column; }
    .qr-login-form { flex-direction: column; }
}
@media (max-width: 480px) {
    .features-grid, .pricing-grid { grid-template-columns: 1fr; }
}
