/* ========================================
   AI做图网站 - 前台样式
   蓝白极简配色，浅天蓝色主按钮
   ======================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2563eb;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 卡片 */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: #ffffff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}

.btn-outline:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #ffffff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 头部导航 */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.site-logo .logo-icon {
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    padding: 8px 16px;
    color: #64748b;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3b82f6;
    background: #eff6ff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-points {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f9ff;
    border-radius: 20px;
    color: #0284c7;
    font-weight: 500;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu-toggle:hover {
    background: #f1f5f9;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-weight: 600;
}

/* 公告栏 */
.announcement-bar {
    background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%);
    padding: 10px 0;
    font-size: 13px;
    color: #0369a1;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 底部 */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #64748b;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #3b82f6;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* 消息提示 */
.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 登录注册页面 */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 32px;
}

.auth-form .btn {
    margin-top: 8px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    cursor: pointer;
}

.forgot-password {
    color: #3b82f6;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 13px;
    position: relative;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-icon {
    font-size: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
    font-size: 14px;
}

/* 生成页面 */
.generate-page {
    padding: 30px 0;
}

.generate-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
}

.generate-settings .card {
    margin-bottom: 16px;
}

.model-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.model-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.model-option input[type="radio"] {
    margin-right: 10px;
}

.model-option input[type="radio"]:checked + .model-name {
    color: #3b82f6;
    font-weight: 600;
}

.model-name {
    flex: 1;
    font-weight: 500;
}

.model-cost {
    color: #64748b;
    font-size: 13px;
}

.prompt-templates h4 {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.template-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-name {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.template-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-tag {
    padding: 4px 10px;
    background: #f1f5f9;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.template-tag:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.batch-selector {
    display: flex;
    gap: 8px;
}

.batch-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.batch-btn:hover {
    border-color: #93c5fd;
}

.batch-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 600;
}

.generate-tips {
    margin-top: 16px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 13px;
    color: #0369a1;
}

.preview-card {
    min-height: 500px;
}

.preview-area {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.preview-placeholder {
    text-align: center;
    color: #94a3b8;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.generated-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.generated-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.generated-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.preview-actions .btn {
    flex: 1;
}

.generating {
    text-align: center;
    color: #64748b;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.generate-error {
    text-align: center;
    color: #dc2626;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-label {
    color: #64748b;
}

.balance-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* 个人中心 */
.profile-page {
    padding: 30px 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.user-card {
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #0284c7;
}

.user-info .username {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.user-level {
    margin-bottom: 16px;
}

.level-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

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

.user-stats .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.user-stats .stat-label {
    font-size: 12px;
    color: #94a3b8;
}

.profile-nav {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 12px;
}

.profile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-nav a {
    display: block;
    padding: 10px 14px;
    color: #475569;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.profile-nav a:hover {
    background: #f8fafc;
    color: #3b82f6;
}

.profile-nav a.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
}

.profile-content .page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-card .stat-desc {
    font-size: 13px;
    color: #64748b;
}

.member-level-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.current-level {
    display: flex;
    align-items: center;
    gap: 16px;
}

.level-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.level-discount {
    padding: 4px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.level-progress {
    flex: 1;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar.small {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.level-progress p {
    font-size: 13px;
    color: #64748b;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 10px;
    transition: all 0.2s;
    color: #475569;
}

.quick-action:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 28px;
}

.action-text {
    font-size: 13px;
}

.recent-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.recent-image-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.recent-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state p {
    margin-bottom: 16px;
}

.text-muted {
    color: #94a3b8;
    font-size: 13px;
}

/* 签到页面 */
.signin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.signin-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.signin-info .highlight {
    color: #3b82f6;
    font-size: 28px;
}

.signin-info p {
    color: #64748b;
}

.signin-calendar {
    margin-bottom: 32px;
}

.signin-calendar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.signed {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid #3b82f6;
}

.calendar-day .check {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #16a34a;
}

.signin-rules h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.signin-rules ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signin-rules li {
    color: #64748b;
    padding-left: 20px;
    position: relative;
}

.signin-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* 任务中心 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
}

.task-info {
    flex: 1;
}

.task-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.task-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-progress .progress-bar {
    flex: 1;
    max-width: 200px;
    margin-bottom: 0;
}

.progress-text {
    font-size: 12px;
    color: #94a3b8;
    min-width: 50px;
}

.task-reward {
    text-align: right;
    margin-left: 24px;
}

.reward-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 8px;
}

.task-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.task-status.doing {
    background: #fef3c7;
    color: #92400e;
}

.task-status.done {
    background: #dcfce7;
    color: #166534;
}

/* 推荐好友 */
.invite-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.invite-icon {
    font-size: 48px;
}

.invite-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.invite-info p {
    color: #64748b;
}

.invite-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

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

.invite-stats .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
}

.invite-stats .stat-label {
    font-size: 13px;
    color: #64748b;
}

.invite-code-section,
.invite-link-section {
    margin-bottom: 24px;
}

.invite-code-section h3,
.invite-link-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.invite-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f0f9ff;
    border-radius: 10px;
}

.code-text {
    font-size: 20px;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: 2px;
}

.invite-link {
    display: flex;
    gap: 12px;
}

.link-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
}

.invite-rules h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.invite-rules ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invite-rules li {
    color: #64748b;
    padding-left: 20px;
    position: relative;
}

.invite-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* 抽奖页面 */
.lottery-info {
    margin-bottom: 32px;
}

.lottery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

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

.lottery-stats .stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.lottery-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.lottery-stats .stat-value.highlight {
    color: #f59e0b;
}

.lottery-wheel {
    text-align: center;
    margin-bottom: 32px;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 24px;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #eff6ff 0deg 45deg,
        #f0fdf4 45deg 90deg,
        #fef3c7 90deg 135deg,
        #fce7f3 135deg 180deg,
        #e0e7ff 180deg 225deg,
        #ccfbf1 225deg 270deg,
        #fed7aa 270deg 315deg,
        #f1f5f9 315deg 360deg
    );
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wheel-segment {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: bottom left;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.segment-text {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    transform: rotate(22.5deg);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #ef4444;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.prize-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.prize-icon {
    font-size: 28px;
}

.prize-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.prize-prob {
    font-size: 12px;
    color: #94a3b8;
}

.lottery-rules ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lottery-rules li {
    color: #64748b;
    padding-left: 20px;
    position: relative;
}

.lottery-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* 套餐页面 */
.packages-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: #64748b;
}

.package-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 32px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.package-card.hot {
    border-color: #3b82f6;
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
}

.package-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.package-price .currency {
    font-size: 18px;
    color: #3b82f6;
    font-weight: 600;
}

.package-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
}

.package-price .period {
    font-size: 14px;
    color: #64748b;
}

.package-features {
    margin-bottom: 24px;
}

.package-features ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-features li {
    color: #475569;
    font-size: 14px;
}

.package-footer .btn {
    width: 100%;
}

/* FAQ */
.faq-section {
    margin-top: 60px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.faq-answer {
    color: #64748b;
    line-height: 1.7;
}

/* 论坛页面 */
.forum-page {
    padding: 30px 0;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.forum-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.forum-header p {
    color: #64748b;
}

.forum-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #475569;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.category-list a:hover {
    background: #f8fafc;
    color: #3b82f6;
}

.category-list a.active {
    background: #eff6ff;
    color: #3b82f6;
    font-weight: 600;
}

.category-icon {
    font-size: 18px;
}

.forum-rules ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forum-rules li {
    color: #64748b;
    font-size: 13px;
    padding-left: 16px;
    position: relative;
}

.forum-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.post-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.post-sort {
    display: flex;
    gap: 16px;
}

.post-sort a {
    font-size: 14px;
    color: #64748b;
}

.post-sort a.active {
    color: #3b82f6;
    font-weight: 600;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-weight: 600;
    font-size: 14px;
}

.author-avatar.placeholder {
    font-size: 16px;
}

.author-name {
    font-weight: 500;
    color: #475569;
    font-size: 14px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title a {
    color: #1e293b;
}

.post-title a:hover {
    color: #3b82f6;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    vertical-align: middle;
}

.badge.top {
    background: #fef2f2;
    color: #dc2626;
}

.badge.essence {
    background: #fef3c7;
    color: #d97706;
}

.post-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
}

.post-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.post-image {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分页 */
.pagination-wrap {
    margin-top: 24px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #93c5fd;
    color: #3b82f6;
}

.pagination .current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.data-table th {
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    background: #f8fafc;
}

.data-table td {
    color: #334155;
    font-size: 14px;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background: #dcfce7;
    color: #166534;
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

/* 首页 */
.home-page {
    padding-bottom: 0;
}

.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #ffffff 100%);
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.7;
}

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

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

.features-section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.how-it-works {
    padding: 80px 0;
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.step-desc {
    color: #64748b;
    font-size: 14px;
}

.testimonials-section {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-content {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-weight: 600;
}

.testimonial-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 13px;
    color: #94a3b8;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    text-align: center;
    color: #ffffff;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-section .btn {
    background: #ffffff;
    color: #3b82f6;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
}

.cta-section .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式 */
@media (max-width: 1024px) {
    .generate-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-layout,
    .forum-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar,
    .forum-sidebar {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recent-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .generated-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
