/* AI红娘文案助手 - 主样式文件 */

/* ==================== 变量定义 ==================== */
:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #FCE4EC;
    --accent: #FFB300;
    --accent-dark: #FF8F00;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --bg-pink: #FFF5F7;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ==================== 基础重置 ==================== */
* {
    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: var(--text-dark);
    background: linear-gradient(135deg, #FFF5F7 0%, #FFF9F0 100%);
    min-height: 100vh;
}

/* 手机端优先：默认就是手机样式 */

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== 容器 ==================== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 头部导航 ==================== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.logo i {
    font-size: 22px;
}

.nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 15px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
}

.nav.show {
    display: flex;
}

.nav a {
    display: block;
    padding: 12px 15px;
    color: var(--text-gray);
    font-weight: 500;
    text-align: center;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

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

.user-info,
.guest-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info a,
.guest-info a {
    padding: 6px 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.user-info .username,
.guest-info span {
    font-size: 12px;
    color: var(--text-dark);
}

.vip-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.mobile-menu {
    display: flex !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    color: var(--primary);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

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

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

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

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
}

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

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

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

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

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==================== 分类选择区 ==================== */
.category-section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 13px;
}

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

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-item.active {
    border-color: var(--primary);
    background: var(--bg-pink);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFE0E6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s;
}

.category-item.active .category-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==================== 类型选择区 ==================== */
.type-section {
    padding: 30px 0;
}

.type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.type-tab {
    padding: 10px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.type-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.type-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==================== 生成区域 ==================== */
.generate-section {
    padding: 20px 0;
}

.generate-card {
    padding: 20px 15px;
}

.generate-btn {
    width: 100%;
    margin-top: 15px;
}

.remaining-tips {
    text-align: center;
    margin-top: 12px;
    color: var(--text-gray);
    font-size: 12px;
}

/* ==================== 文案展示区 ==================== */
.result-section {
    padding: 20px 0;
    display: none;
}

.result-card {
    padding: 15px;
}

.result-content {
    background: var(--bg-pink);
    border-radius: var(--radius-md);
    padding: 15px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-actions .btn {
    width: 100%;
}

/* ==================== 登录注册页 ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input-sm {
    padding: 10px 12px;
}

.sms-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    padding: 0 15px;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--primary);
    transition: background 0.2s;
}

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

.sms-btn:disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

.input-group {
    position: relative;
}

.input-group .form-input {
    padding-right: 120px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

/* ==================== 会员中心 ==================== */
.member-page {
    padding: 40px 0;
}

.member-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.package-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.package-card.featured {
    border-color: var(--primary);
}

.package-card.featured::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.package-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.package-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.package-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-gray);
}

.package-duration {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.package-features {
    text-align: left;
    margin-bottom: 25px;
}

.package-features li {
    padding: 8px 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features li i {
    color: var(--primary);
}

/* ==================== 用户中心 ==================== */
.user-page {
    padding: 40px 0;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.user-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-meta {
    color: var(--text-gray);
    margin-top: 5px;
}

.history-list {
    margin-top: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.history-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 600px;
}

.history-meta {
    text-align: right;
    color: var(--text-light);
    font-size: 12px;
}

.history-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    margin-bottom: 5px;
}

/* ==================== 后台管理 ==================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #2C3E50 0%, #1a252f 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav a i {
    width: 20px;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 25px;
    background: var(--bg-gray);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==================== 数据表格 ==================== */
.data-table {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
}

.data-table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text-dark);
}

.data-table tr {
    border-bottom: 1px solid var(--border-color);
}

.data-table tr:last-child {
    border-bottom: none;
}

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

/* ==================== 状态标签 ==================== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #E8F5E9;
    color: #4CAF50;
}

.status-disabled {
    background: #FFEBEE;
    color: #F44336;
}

.status-pending {
    background: #FFF3E0;
    color: #FF9800;
}

/* ==================== 弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    transition: all 0.2s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==================== Toast提示 ==================== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    background: var(--text-dark);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #F44336;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ==================== 响应式 - 平板及以上 ==================== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .header-inner {
        height: 64px;
        padding: 0 20px;
    }
    
    .logo {
        font-size: 20px;
        gap: 10px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .nav {
        position: static;
        display: flex;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        gap: 30px;
    }
    
    .nav a {
        padding: 0;
        background: transparent;
        text-align: left;
        margin-bottom: 0;
    }
    
    .user-info,
    .guest-info {
        gap: 15px;
    }
    
    .user-info a,
    .guest-info a {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    /* 分类 */
    .category-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .category-item {
        padding: 25px 20px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .category-name {
        font-size: 16px;
    }
    
    /* 生成区域 */
    .generate-section {
        padding: 40px 0;
    }
    
    .generate-card {
        max-width: 600px;
        margin: 0 auto;
        padding: 30px;
    }
    
    .generate-btn {
        margin-top: 25px;
    }
    
    .remaining-tips {
        font-size: 14px;
        margin-top: 15px;
    }
    
    /* 结果展示 */
    .result-section {
        padding: 30px 0;
    }
    
    .result-card {
        max-width: 600px;
        margin: 0 auto;
        padding: 25px;
    }
    
    .result-content {
        padding: 25px;
        font-size: 16px;
    }
    
    .result-actions {
        flex-direction: row;
    }
    
    .result-actions .btn {
        width: auto;
    }
    
    /* 功能特点 */
    .features-section {
        padding: 60px 0 !important;
    }
    
    .features-section .card {
        padding: 30px;
    }
    
    .features-section i {
        font-size: 48px !important;
    }
    
    /* 会员中心 */
    .member-page,
    .user-page {
        padding: 40px 0;
    }
    
    .package-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .package-price {
        font-size: 42px;
    }
    
    /* 用户中心 */
    .user-header {
        flex-direction: row;
        text-align: left;
    }
    
    .history-item {
        flex-direction: row;
    }
    
    .history-meta {
        text-align: right;
    }
    
    /* 登录注册 */
    .auth-card {
        max-width: 420px;
        padding: 40px;
    }
    
    .auth-logo {
        font-size: 36px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    /* 底部 */
    footer {
        padding: 30px 0 !important;
    }
}

/* ==================== 响应式 - 桌面大屏 ==================== */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .package-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ==================== APP小程序风格 ==================== */
.app-page {
    background: #FFF5F7;
    min-height: 100vh;
    padding-bottom: 40px;
    max-width: 480px;
    margin: 0 auto;
}

.app-header {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF91A4 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.15);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.app-title i {
    font-size: 18px;
}

.login-link {
    color: white;
    font-size: 13px;
    opacity: 0.9;
}

.login-link:hover {
    opacity: 1;
}

.app-main {
    padding: 12px;
}

/* Banner卡片 */
.banner-card {
    background: linear-gradient(135deg, #FFE4E9 0%, #FFF0F3 100%);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.08);
}

.banner-content h2 {
    font-size: 17px;
    color: #C2185B;
    margin-bottom: 6px;
}

.banner-content p {
    font-size: 12px;
    color: #E91E63;
    opacity: 0.8;
}

.banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* 快捷操作区 */
.quick-actions {
    margin-bottom: 20px;
}

.section-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
    padding-left: 4px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 20px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px;
    border-radius: 12px;
}

.action-item:active {
    transform: scale(0.95);
}

.action-item.active {
    background: #FFF0F3;
}

.action-item.active .action-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.5);
    background: linear-gradient(135deg, #E91E63, #C2185B) !important;
}

.action-item.active span {
    color: #E91E63;
    font-weight: 600;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: all 0.2s;
}

.action-item span {
    font-size: 13px;
    color: #666;
}

/* 生成区域 */
.generate-section {
    margin-bottom: 20px;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F5F5F5;
}

.result-body {
    min-height: 100px;
    margin-bottom: 12px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: #CCC;
}

.result-placeholder i {
    font-size: 36px;
    margin-bottom: 10px;
}

.result-placeholder p {
    font-size: 13px;
}

.result-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    padding: 8px 0;
}

.result-actions {
    display: flex;
    gap: 10px;
}

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

.btn-generate {
    width: 100%;
    height: 52px;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #FF6B9D 0%, #E91E63 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-generate:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

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

.btn-outline {
    height: 44px;
    border-radius: 22px;
    font-size: 14px;
    background: white;
    color: #E91E63;
    border: 1.5px solid #FFB6C1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-outline:active {
    background: #FFF5F7;
}

.tips-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* VIP卡片 */
.vip-section {
    margin-bottom: 20px;
}

.vip-card {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.vip-info h3 {
    font-size: 15px;
    color: #F57C00;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-info p {
    font-size: 12px;
    color: #FF9800;
    opacity: 0.8;
}

.vip-btn {
    background: linear-gradient(135deg, #FFB300, #FF8F00);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.vip-btn:active {
    transform: scale(0.95);
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 大屏幕适配 */
@media (min-width: 480px) {
    .app-page {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
}
