/* ============================================================
   辰阳商家学院 - 全局样式
   ============================================================ */

/* 变量定义 */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8c5a;
    --secondary: #f7931e;
    --dark: #0d1220;
    --dark2: #131a2e;
    --dark3: #1a2340;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-dark: linear-gradient(135deg, #0d1220 0%, #1a2340 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================================
   通用组件
   ============================================================ */

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

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
    color: #fff;
}

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

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

.btn-outline:hover {
    background: #fff7f2;
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-dark:hover {
    background: var(--dark2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

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

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
    color: var(--gray-800);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.tag-primary {
    background: #fff4ee;
    color: var(--primary);
}

.tag-success {
    background: #ecfdf5;
    color: var(--success);
}

.tag-warning {
    background: #fffbeb;
    color: var(--warning);
}

.tag-info {
    background: #eff6ff;
    color: var(--info);
}

.tag-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* 提示框 */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================================
   落地页（首页）
   ============================================================ */

.landing-page {
    background: var(--dark);
    color: #fff;
    min-height: 100vh;
}

/* 导航栏 */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 18, 32, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-nav .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.landing-nav .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.landing-nav .logo-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.landing-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.landing-nav .nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav .nav-links a:hover {
    color: #fff;
}

.landing-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hero区 */
.hero {
    padding: 140px 40px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* 功能卡片 */
.features {
    padding: 80px 40px;
    background: var(--dark2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* 数据统计 */
.stats {
    padding: 80px 40px;
    background: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* CTA区 */
.cta-section {
    padding: 100px 40px;
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    position: relative;
}

.cta-section .hero-actions {
    position: relative;
}

/* 页脚 */
.landing-footer {
    padding: 40px;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* ============================================================
   登录/注册页
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.auth-header .logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 16px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.auth-body {
    padding: 20px 40px 40px;
}

.auth-footer {
    text-align: center;
    padding: 20px 40px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
}

/* ============================================================
   仪表盘（登录后）
   ============================================================ */

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: var(--dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-logo .logo-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.sidebar-logo .logo-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav .nav-section {
    margin-bottom: 24px;
}

.sidebar-nav .nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidebar-nav .nav-item.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sidebar-nav .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user .user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user .user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.top-header {
    background: #fff;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-header .page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

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

.page-content {
    padding: 32px;
}

/* 仪表盘统计卡片 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.dash-stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.dash-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.dash-stat-icon.orange { background: #fff4ee; }
.dash-stat-icon.blue { background: #eff6ff; }
.dash-stat-icon.green { background: #ecfdf5; }
.dash-stat-icon.purple { background: #f5f3ff; }

.dash-stat-info .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.dash-stat-info .stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.content-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.content-card .card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card .card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.content-card .card-body {
    padding: 24px;
}

/* 列表项 */
.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.list-item:first-child {
    padding-top: 0;
}

.list-item .item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.list-item .item-content {
    flex: 1;
    min-width: 0;
}

.list-item .item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.list-item .item-desc {
    font-size: 12px;
    color: var(--gray-500);
}

.list-item .item-meta {
    text-align: right;
    flex-shrink: 0;
}

.list-item .item-meta .meta-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.list-item .item-meta .meta-label {
    font-size: 11px;
    color: var(--gray-400);
}

/* ============================================================
   AI 对话界面
   ============================================================ */

.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 73px);
    background: var(--gray-50);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.chat-message {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-message.ai .chat-avatar {
    background: var(--gradient-primary);
    color: #fff;
}

.chat-message.user .chat-avatar {
    background: var(--dark);
    color: #fff;
}

.chat-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message.ai .chat-bubble {
    background: #fff;
    border-top-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    color: var(--gray-800);
}

.chat-message.user .chat-bubble {
    background: var(--gradient-primary);
    color: #fff;
    border-top-right-radius: 4px;
}

.chat-input-area {
    background: #fff;
    padding: 20px 32px;
    border-top: 1px solid var(--gray-200);
}

.chat-input-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    min-height: 50px;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.chat-send-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-quick-questions {
    max-width: 900px;
    margin: 0 auto 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-question {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-question:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff7f2;
}

/* 打字动画 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ============================================================
   方案/案例/课程列表页
   ============================================================ */

.page-hero {
    background: var(--gradient-dark);
    padding: 60px 32px;
    color: #fff;
    margin: -32px -32px 32px;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

.filter-tag {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

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

.resource-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.resource-card .card-icon {
    height: 120px;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.resource-card .card-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
}

.resource-card .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
}

.resource-card .card-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.resource-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.resource-card .card-meta .meta-item {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 详情页 */
.detail-page {
    max-width: 900px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 32px;
}

.detail-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.detail-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.detail-header .detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-header .detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-500);
}

.detail-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
    color: var(--gray-700);
    font-size: 15px;
}

.detail-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.detail-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-content ul, .detail-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.detail-content li {
    margin-bottom: 8px;
}

.detail-content strong {
    color: var(--gray-900);
}

/* ============================================================
   个人中心
   ============================================================ */

.profile-header {
    background: var(--gradient-dark);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: #fff;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

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

/* ============================================================
   响应式设计
   ============================================================ */

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-nav {
        padding: 12px 20px;
    }
    
    .landing-nav .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features, .stats, .cta-section {
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item .stat-number {
        font-size: 36px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    /* 仪表盘移动端 */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        padding: 12px 20px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        padding: 20px 16px;
    }
    
    .chat-input-area {
        padding: 16px;
    }
    
    .chat-bubble {
        max-width: 85%;
    }
    
    .detail-content {
        padding: 24px;
    }
    
    .detail-header h1 {
        font-size: 24px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ============================================================
   顶配改造补充样式（AI工具箱 / 课程详情 / Markdown / 移动端）
   ============================================================ */
.md-list { margin: 8px 0 14px; padding-left: 22px; line-height: 1.9; }
.md-list li { margin-bottom: 6px; }
.chat-bubble p, .chat-bubble .md-list { margin: 0 0 8px; line-height: 1.8; }
.chat-bubble .md-list { padding-left: 20px; }
.chat-bubble strong { color: var(--gray-900); }
.chat-bubble code, .result-box code { background: #ffeede; color: var(--primary-dark); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
h4 { line-height: 1.6; }

@media (min-width: 900px) {
    .tool-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
}
.lesson-head { -webkit-tap-highlight-color: transparent; }

/* Markdown 表格 */
.md-table-wrap { width: 100%; overflow-x: auto; margin: 12px 0 16px; -webkit-overflow-scrolling: touch; border-radius: 10px; border: 1px solid var(--gray-200); }
.md-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.md-table th { background: linear-gradient(135deg,#fff3ec,#ffe9dc); color: var(--primary-dark); font-weight: 700; text-align: left; padding: 10px 12px; white-space: nowrap; border-bottom: 2px solid var(--primary-light); }
.md-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: top; line-height: 1.7; }
.md-table tr:last-child td { border-bottom: none; }
.md-table tbody tr:nth-child(even) { background: #faf8f6; }
.chat-bubble .md-table { font-size: 13px; min-width: 320px; }
.md-tip { background: #fff6ef; border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 10px 0; color: var(--gray-700); line-height: 1.8; }

/* ============ 手机端深度适配 ============ */
@media (max-width: 768px) {
    body { font-size: 15px; -webkit-text-size-adjust: 100%; }
    .page-content { padding: 16px !important; }
    .page-title { font-size: 19px !important; }
    .page-hero h1 { font-size: 22px !important; }
    .page-hero p { font-size: 14px; }
    .page-hero { padding: 22px 18px !important; }

    input, select, textarea, .form-control, .chat-input { font-size: 16px !important; }
    .btn { min-height: 42px; }

    .tool-tab { min-width: 0; flex: 1 1 100%; padding: 14px 16px; }
    .tool-tabs { gap: 10px; }
    .tool-panel { padding: 18px 16px; }
    .result-box { padding: 16px; font-size: 14px; }
    .result-tools { flex-wrap: wrap; }

    .course-hero { padding: 22px 18px; }
    .course-hero h1 { font-size: 21px !important; }
    .progress-wrap { padding: 13px 15px; position: static; }
    .lesson-head { padding: 13px 14px; gap: 10px; }
    .lesson-num { width: 28px; height: 28px; flex-shrink: 0; }
    .lesson-head .lt h4 { font-size: 14.5px; }
    .lesson-body { padding: 16px 14px; }
    .lesson-body p, .lesson-body .md-list { font-size: 14px; line-height: 1.85; }
    .lesson-nav .btn { flex: 1; padding-left: 6px; padding-right: 6px; font-size: 13px; }

    .header-actions .btn { padding: 6px 10px; font-size: 13px; }
    .chat-quick-questions { gap: 8px !important; }
    .quick-question { padding: 7px 12px !important; font-size: 13px !important; }

    .cards-grid, .dashboard-stats { grid-template-columns: 1fr !important; gap: 14px !important; }
    .filter-bar { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
}

html, body { overflow-x: hidden; max-width: 100%; }
.main-content { max-width: 100%; overflow-x: hidden; }
.result-box, .lesson-body { word-break: break-word; }

/* ============ 行业方案库（顶配版） ============ */
.industry-filter { position: sticky; top: 0; z-index: 20; background: #fff; padding: 12px 16px; border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 28px; }
.solution-industry-block { margin-bottom: 38px; }
.industry-block-title { font-size: 21px; display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--gray-100); }
.industry-block-icon { font-size: 26px; }
.industry-count { font-size: 13px; font-weight: 600; color: var(--primary); background: #fff1e8; padding: 3px 12px; border-radius: 99px; }
.solution-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.solution-card { cursor: pointer; transition: transform .18s, box-shadow .18s; }
.solution-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(255,107,53,.12); }
.solution-card .go-read { color: var(--primary); font-weight: 600; margin-left: auto; }

.solution-overview { background: var(--gray-50); border-left: 4px solid var(--primary); padding: 18px 22px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 24px; line-height: 1.9; color: var(--gray-700); }
.solution-overview p { margin: 0; }
.solution-toc { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 30px; }
.toc-title { font-weight: 700; margin-bottom: 10px; color: var(--gray-800); }
.toc-item { display: block; padding: 6px 0; color: var(--gray-600); text-decoration: none; font-size: 14.5px; border-bottom: 1px dashed var(--gray-100); transition: color .15s; }
.toc-item:last-child { border-bottom: none; }
.toc-item:hover { color: var(--primary); padding-left: 6px; }
.solution-section { margin-bottom: 30px; scroll-margin-top: 80px; }
.solution-section h2 { font-size: 20px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.4; margin-bottom: 14px; }
.md-body { line-height: 1.95; color: var(--gray-700); font-size: 15.5px; }
.md-body p { margin: 0 0 12px; }
.md-body .md-list { margin: 10px 0 16px; }
.solution-summary { background: linear-gradient(135deg,#fff4ee,#fff7f2); padding: 22px 24px; border-radius: var(--radius-md); border: 1px solid #ffe0cc; line-height: 1.9; margin-bottom: 30px; }
.solution-summary strong { display: block; color: var(--primary-dark); font-size: 16px; margin-bottom: 8px; }
.solution-cta { text-align: center; padding: 34px 28px; background: var(--gradient-dark); border-radius: var(--radius-lg); color: #fff; margin-bottom: 36px; }
.solution-cta h3 { color: #fff; margin: 0 0 10px; }
.solution-cta p { color: rgba(255,255,255,.65); margin: 0 0 20px; }
.related-title { font-size: 19px; margin-bottom: 16px; }

/* ============ 视频课 ============ */
.video-block { margin: 18px 0 22px; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; height: 0; overflow: hidden; background: #0d1220; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-tip { padding: 12px 16px; background: #fff6ef; color: var(--gray-700); font-size: 14px; line-height: 1.7; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.video-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg,#ff4d4f,#ff7a45); color:#fff; font-size:12.5px; font-weight:600; padding:4px 12px; border-radius:99px; margin-bottom:10px; }
@media (max-width:768px){
  .solution-overview,.solution-toc,.solution-summary{padding:16px;}
  .industry-block-title{font-size:18px;}
  .solution-section h2{font-size:18px;}
  .md-body{font-size:15px;}
  .solution-cta .btn{display:inline-block;width:100%;margin:6px 0 !important;}
}
