/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: 
        /* 主要线条渐变 - 浅蓝紫色到深紫色系 */
        linear-gradient(90deg, #e6e6fa 0%, transparent 20%, transparent 80%, #8a2be2 100%),
        linear-gradient(180deg, #9370db 0%, transparent 30%, transparent 70%, #4b0082 100%),
        linear-gradient(45deg, #e6e6fa 0%, transparent 25%, transparent 75%, #9370db 100%),
        linear-gradient(-45deg, #9370db 0%, transparent 25%, transparent 75%, #4b0082 100%),
        /* 径向渐变增加层次 - 浅蓝紫色到深紫色 */
        radial-gradient(ellipse 800px 400px at 20% 20%, #f0f8ff 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 80% 80%, #e6e6fa 0%, transparent 50%),
        radial-gradient(ellipse 700px 350px at 50% 50%, rgba(147, 112, 219, 0.15) 0%, transparent 60%),
        /* 基础渐变 - 浅蓝紫色到深紫色系 */
        linear-gradient(135deg, #f0f8ff 0%, #e6e6fa 20%, #9370db 40%, #4b0082 60%, #9370db 80%, #f0f8ff 100%);
    background-size: 400% 400%, 400% 400%, 400% 400%, 400% 400%, 300% 300%, 300% 300%, 200% 200%, 600% 600%;
    animation: gradientShift 20s ease infinite;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    /* 确保背景动画正常工作 */
    background-attachment: fixed;
}

/* 动态渐变背景动画 - 增强线条感 */
@keyframes gradientShift {
    0% {
        background-position: 0% 0%, 100% 100%, 0% 0%, 100% 100%, 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }
    12.5% {
        background-position: 100% 0%, 0% 100%, 100% 0%, 0% 100%, 100% 0%, 0% 0%, 50% 50%, 100% 0%;
    }
    25% {
        background-position: 100% 100%, 0% 0%, 100% 100%, 0% 0%, 100% 100%, 0% 0%, 50% 50%, 50% 100%;
    }
    37.5% {
        background-position: 0% 100%, 100% 0%, 0% 100%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 50% 0%;
    }
    50% {
        background-position: 0% 0%, 100% 100%, 0% 0%, 100% 100%, 0% 0%, 100% 100%, 50% 50%, 100% 100%;
    }
    62.5% {
        background-position: 100% 0%, 0% 100%, 100% 0%, 0% 100%, 100% 0%, 0% 0%, 50% 50%, 0% 50%;
    }
    75% {
        background-position: 100% 100%, 0% 0%, 100% 100%, 0% 0%, 100% 100%, 0% 0%, 50% 50%, 100% 0%;
    }
    87.5% {
        background-position: 0% 100%, 100% 0%, 0% 100%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 50% 100%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 0% 0%, 100% 100%, 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }
}

/* 添加动态粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(230, 230, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 112, 219, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 登录/注册界面 */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* 移除固定背景，让body的动态背景显示 */
}



.auth-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0a0618, #0f0a23, #1e1b4b, #312e81);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.4;
    }
}

.auth-container h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.auth-container .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.auth-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.verify-code-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-code-container input {
    flex: 1; /* 输入框占据剩余空间 */
    min-width: 0; /* 防止输入框过宽 */
}

/* 验证码容器样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.captcha-image {
    width: 80px;
    height: 40px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.captcha-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.refresh-captcha-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-captcha-btn:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.send-code-btn {
    padding: 12px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.send-code-btn:hover {
    background: #5a6fd8;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.auth-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 协议同意选项样式 */
.agreement-section {
    margin: 20px 0;
    text-align: left;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.agreement-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.agreement-text {
    color: #666;
    line-height: 1.5;
}

.agreement-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.agreement-text a:hover {
    text-decoration: underline;
}

/* 注册和登录相关样式 */
.register-section, .login-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-text, .login-text {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.register-btn, .back-to-login-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #e1e5e9;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.register-btn:hover, .back-to-login-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#registerForm {
    margin-top: 20px;
}

/* 主界面 */
.main-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-left h1 {
    font-size: 24px;
    font-weight: 700;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-right > * {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 15px;
    color: white;
}

.user-info span {
    font-size: 14px;
    margin-bottom: 2px;
    color: white;
}

.credits-info {
    font-size: 12px;
    color: white;
}

.user-center-btn, .logout-btn {
    padding: 8px 16px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-center-btn:hover, .logout-btn:hover {
    background: white;
    color: #667eea;
}

.main-content {
    padding: 30px;
}

/* 功能切换标签 */
.function-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: none;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    border-color: #667eea;
    border-bottom: 2px solid white;
    margin-bottom: -2px;
}

/* 功能内容区域 */
.function-content {
    display: none;
}

.function-content.active {
    display: block;
}

.input-section, .output-section {
    margin-bottom: 30px;
}

.input-section h2, .output-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.input-area, .output-area {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.input-area textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.input-area textarea:focus {
    outline: none;
    border-color: #667eea;
}

.input-controls, .output-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.create-btn, .copy-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.create-btn:hover, .copy-btn:hover {
    transform: translateY(-2px);
}

.clear-btn {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.output-content {
    min-height: 200px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
}

/* 对话区域样式 - 使用不同的颜色主题 */
.chat-input-section, .chat-output-section {
    margin-bottom: 30px;
}

.chat-input-section h2, .chat-output-section h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.chat-input-area, .chat-output-area {
    background: #f0f8ff;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #b8d4f0;
}

.chat-input-area textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #a8c8e8;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    background: white;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: #3498db;
}

.chat-input-controls, .chat-output-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.send-chat-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.send-chat-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

.chat-output-content {
    min-height: 200px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #a8c8e8;
}

/* 对话结果样式 */
.chat-result {
    line-height: 1.6;
    color: #2c3e50;
}

.chat-result br {
    margin-bottom: 8px;
}

/* 对话结果中的特殊格式 */
.chat-result strong {
    color: #3498db;
    font-weight: 600;
}

.chat-result em {
    color: #e74c3c;
    font-style: italic;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #6c757d;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid #f1f3f4;
}

.modal-header h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #f1f3f4;
}

.modal-body {
    padding: 30px;
}

/* 用户中心样式 */
.user-stats {
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.package-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

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

.package-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.package-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.package-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.features {
    margin-bottom: 20px;
}

.features div {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.buy-btn:hover {
    transform: translateY(-2px);
}

/* 支付模态框样式 */
.payment-info {
    text-align: center;
}

.package-summary {
    margin-bottom: 30px;
}

.package-summary h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.payment-price {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.qr-code-container {
    margin-bottom: 30px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qr-code svg {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.qr-placeholder {
    color: #666;
    font-size: 14px;
}

.payment-status {
    margin-top: 20px;
}

.status-message {
    padding: 10px 20px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 8px;
    font-weight: 500;
}

/* 支付截图上传样式 */
.payment-upload-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.payment-upload-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.upload-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.upload-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px dashed #667eea;
    border-radius: 10px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #f0f4ff;
    border-color: #5a6fd8;
}

.upload-icon {
    font-size: 20px;
}

.upload-preview {
    position: relative;
    display: inline-block;
    max-width: 300px;
}

.upload-preview img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.remove-upload-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.remove-upload-btn:hover {
    background: #c82333;
}

.upload-actions {
    display: flex;
    justify-content: center;
}

.submit-payment-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-payment-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.submit-payment-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示模态框样式 */
.alert-content {
    max-width: 400px;
}

.alert-content .modal-body {
    text-align: center;
}

.alert-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.alert-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cancel-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* 套餐推荐区域样式 */
.package-recommend-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px solid #dee2e6;
}

.package-recommend-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.recommend-desc {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.package-recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.package-recommend-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

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

.package-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.package-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-badge.popular {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.package-badge.premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
}

.package-price {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.package-price span {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

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

.feature-item {
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: left;
}

.package-buy-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.package-buy-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
    
    .top-nav {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .nav-left h1 {
        font-size: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .package-recommend-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    /* 移动端功能切换标签样式 */
    .function-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        border-radius: 10px;
        border: 2px solid #e9ecef;
        margin-bottom: 0;
    }
    
    .tab-btn.active {
        border-bottom: 2px solid #667eea;
        margin-bottom: 0;
    }
    
    /* 移动端对话区域样式 */
    .chat-input-area, .chat-output-area {
        padding: 15px;
    }
    
    .chat-input-controls, .chat-output-controls {
        flex-direction: column;
    }
    
    .send-chat-btn, .clear-btn {
        width: 100%;
    }
}

/* 滚动条样式 */
.output-content::-webkit-scrollbar {
    width: 8px;
}

.output-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 

/* 登录提示样式 */
.login-prompt {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.login-prompt-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.login-prompt h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.login-prompt p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #666;
}

.login-prompt-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-prompt-btn:active {
    transform: translateY(0);
}

/* 未登录状态下的按钮样式 */
.create-btn.disabled,
.send-chat-btn.disabled,
.create-btn:disabled,
.send-chat-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

.create-btn.disabled:hover,
.send-chat-btn.disabled:hover,
.create-btn:disabled:hover,
.send-chat-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #ccc !important;
} 

/* 登录按钮样式 */
.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
} 