﻿/* ===== Chat1.css - 合并优化后的聊天页面样式 ===== */
/* 合并自 chatsite.css 和 newchat.css */

/* ===== CSS Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS Variables ===== */
:root {
    /* 布局变量 */
    --sidebar-width: 130px;
    --new-sidebar-width: 80px;
    --new-sidebar-expanded-width: 200px;
    --new-tab-height: 56px;
    /* 颜色系统 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --border-focus: #1a1a1a;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #999999;
    --accent: #1a1a1a;
    --accent-hover: #000000;
    --accent-light: #f5f5f5;
    /* Sidebar 变量 */
    --sidebar-gradient: linear-gradient(180deg, #f5f5f5 0%, #d1d1d1 100%);
    --sidebar-text: #555555;
    --sidebar-text-hover: #000000;
    --sidebar-text-active: #1a1a1a;
    --sidebar-bg-hover: rgba(0, 0, 0, 0.05);
    --sidebar-bg-active: rgba(0, 0, 0, 0.08);
    --sidebar-border: rgba(0, 0, 0, 0.08);
    /* New Sidebar 变量 */
    --new-sidebar-bg: #ffffff;
    --new-sidebar-border: #e5e7eb;
    --new-sidebar-text: #6b7280;
    --new-sidebar-text-hover: #1a1a1a;
    --new-sidebar-text-active: #1a1a1a;
    --new-sidebar-bg-hover: rgba(0, 0, 0, 0.05);
    --new-sidebar-bg-active: rgba(0, 0, 0, 0.08);
    /* Tab 变量 */
    --new-tab-bg: #ffffff;
    --new-tab-border: #e5e7eb;
    --new-tab-text: #6b7280;
    --new-tab-text-active: #1a1a1a;
    --new-tab-bg-active: rgba(0, 0, 0, 0.05);
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --gradient-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 60%);
}

html {
    position: relative;
    min-height: 100%;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: #fff;
    overflow:hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

textarea {
    font-family: inherit;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================
   旧版 Sidebar (chatsite.css)
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    background: #fff;
    padding-top: 1.25rem;
    overflow-y: auto;
    transition: left 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }
}

@media (min-width: 769px) {
    .sidebar.hidden {
        left: -250px;
        visibility: hidden;
    }
}

.sidebar.hidden {
    visibility: hidden;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.06) 80%, transparent 100%);
    pointer-events: none;
}

.sidebar-logo {
    padding: 0 1.85rem;
    margin-bottom: 2rem;
}

.sidebar-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

    .sidebar-logo-link:hover {
        opacity: 0.8;
    }

    .sidebar-logo-link img {
        height: 80px;
      /*  width: 80px;*/
       /* filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2140%) hue-rotate(210deg) brightness(92%) contrast(94%);*/
    }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 0.75rem;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-nav-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 0.75rem 0.5rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.75rem;
    color: var(--sidebar-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .sidebar-nav-link:hover {
        color: var(--sidebar-text-hover);
        background: var(--sidebar-bg-hover);
    }

    .sidebar-nav-link.active {
        color: var(--sidebar-text-active);
        background: var(--sidebar-bg-active);
    }

    .sidebar-nav-link i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }

/* ===== Sidebar Footer ===== */
.sidebar-footer {
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
}

.sidebar-footer-brand {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.sidebar-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.15rem;
}

.sidebar-footer-copy {
    font-size: 0.7rem;
    color: #bbbbbb;
}

/* ============================================
   新版 Sidebar (newchat.css)
   ============================================ */
.new-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--new-sidebar-width);
    background: var(--new-sidebar-bg);
    border-right: 1px solid var(--new-sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 1030;
    transition: width 0.3s ease;
    overflow: hidden;
}

.new-sidebar-logo {
    padding: 1.1rem 0.75rem;
    border-bottom: 1px solid var(--new-sidebar-border);
}

.new-sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .new-sidebar-logo-link img {
        height: 80px;
      /*  width: 80px;*/
       /* filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2140%) hue-rotate(210deg) brightness(92%) contrast(94%);*/
    }

    .new-sidebar-logo-link span {
        display: none;
        font-size: 1.1rem;
        font-weight: 700;
        background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        white-space: nowrap;
    }

/* 主导航 */
.new-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.new-sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.new-sidebar-nav-divider {
    height: 1px;
    background: var(--new-sidebar-border);
    margin: 0.5rem 0.75rem;
}

.new-sidebar-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 0.5rem;
    color: var(--new-sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 0 0.5rem;
    min-height: 64px;
    position: relative;
}

    .new-sidebar-nav-link i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }

    .new-sidebar-nav-link span {
        font-size: 0.72rem;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
    }

    .new-sidebar-nav-link:hover {
        color: var(--new-sidebar-text-hover);
        background: var(--new-sidebar-bg-hover);
    }

    .new-sidebar-nav-link.active {
        color: var(--new-sidebar-text-active);
        background: var(--new-sidebar-bg-active);
    }

/* 底部用户区域 */
.new-sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--new-sidebar-border);
}

.new-sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 0.5rem;
}

    .new-sidebar-user:hover {
        background: var(--new-sidebar-bg-hover);
    }

.new-user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
}

.new-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.new-user-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--new-sidebar-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.new-user-more {
    display: none;
    color: var(--new-sidebar-text);
    font-size: 0.9rem;
}

/* 用户菜单 */
.new-user-context-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    min-width: 180px;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

    .new-user-context-menu.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .new-user-context-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .new-user-context-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0.55rem 1rem;
        color: var(--text-primary);
        font-size: 0.88rem;
        text-decoration: none;
        transition: background 0.15s ease;
    }

        .new-user-context-menu li a:hover {
            background: var(--bg-secondary);
        }

        .new-user-context-menu li a i {
            font-size: 1rem;
            color: var(--text-secondary);
            width: 18px;
            text-align: center;
        }

    .new-user-context-menu .menu-divider {
        height: 1px;
        background: var(--border);
        margin: 0.4rem 0;
    }

    .new-user-context-menu .logout-link {
        color: #ef4444;
    }

        .new-user-context-menu .logout-link i {
            color: #ef4444;
        }

/* 工具提示 */
@media (min-width: 769px) {
    .new-sidebar-nav-link::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%);
        background: #1f2937;
        color: #ffffff;
        padding: 0.4rem 0.75rem;
        border-radius: 6px;
        font-size: 0.78rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
        z-index: 1000;
    }

    .new-sidebar-nav-link:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== Main Wrapper ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

    .main-wrapper.sidebar-collapsed {
        margin-left: 0;
    }

/* ===== 新版主内容区 ===== */
.new-main-wrapper {
    margin-left: var(--new-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    overflow:auto;
}

/* ===== Mobile Topbar ===== */
.chat-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    background: var(--bg-primary);
}

.chat-button-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

    .chat-button-toggle:hover {
        color: var(--accent);
        background: var(--sidebar-bg-hover);
    }

.chat-topbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    -webkit-background-clip: text;
    background-clip: text;
}

    .chat-topbar-logo img {
        height: 24px;
        width: auto;
        filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(2140%) hue-rotate(210deg) brightness(92%) contrast(94%);
    }

/* ===== Overlay ===== */
.sidebar-overlay,
.new-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1029;
}

    .sidebar-overlay.show,
    .new-sidebar-overlay.show {
        display: block;
    }

/* ===== 顶部 Tab 选项卡 ===== */
.new-tab-header {
    background: var(--new-tab-bg);
    border-bottom: 1px solid var(--new-tab-border);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.new-tab-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--new-tab-height);
    overflow-x: auto;
    scrollbar-width: none;
}

    .new-tab-list::-webkit-scrollbar {
        display: none;
    }

.new-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    color: var(--new-tab-text);
    font-size: 0.88rem;
    font-weight: 500;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .new-tab-item i {
        font-size: 1.1rem;
    }

    .new-tab-item:hover {
        color: var(--new-tab-text-active);
        background: var(--new-sidebar-bg-hover);
    }

    .new-tab-item.active {
        color: var(--new-tab-text-active);
        background: var(--new-tab-bg-active);
    }

@media (min-width: 769px) and (max-width: 1024px) {
    .new-tab-item span {
        display: none;
    }

    .new-tab-item {
        padding: 0.5rem;
    }
}

/* ===== Page Header (shared by sub-pages) ===== */
.ds-page-header {
    padding: 3rem 1rem 2.5rem;
}

.ds-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.ds-section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* ===== Content Section ===== */
.ds-section {
    padding: 3rem 1rem 5rem;
}

.ds-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

    .ds-content h2:first-child {
        margin-top: 0;
    }

.ds-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.ds-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

    .ds-content ul li {
        color: var(--text-secondary);
        line-height: 1.75;
        margin-bottom: 0.35rem;
    }

    .ds-content ul strong {
        color: var(--text-primary);
    }

/* ===== Cards ===== */
.ds-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

    .ds-card:hover {
        border-color: #cccccc;
    }

.ds-card-recommended {
    border-color: var(--accent);
}

.ds-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.2rem;
}

.ds-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ds-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Badge ===== */
.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
}

.ds-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== Buttons ===== */
.btn-ds-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
}

    .btn-ds-primary:hover {
        background: var(--accent-hover);
    }

.btn-ds-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .btn-ds-secondary:hover {
        border-color: #cccccc;
        background: var(--bg-secondary);
    }

/* ===== Code Block ===== */
.ds-code-block {
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    overflow-x: auto;
}

    .ds-code-block code {
        font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
        font-size: 0.85rem;
        color: #333333;
        line-height: 1.6;
    }

    .ds-code-block pre {
        margin: 0;
        white-space: pre-wrap;
    }

        .ds-code-block pre code {
            display: block;
        }

/* ===== Models Section ===== */
.models-section {
    padding: 4rem 1.5rem 5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.model-group {
    margin-bottom: 3rem;
}

.model-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .model-group-title i {
        color: var(--accent);
        font-size: 1.3rem;
    }

.model-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 992px) {
    .model-group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .model-group-grid {
        grid-template-columns: 1fr;
    }
}

.model-card-mini {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

    .model-card-mini:hover {
        border-color: var(--accent);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.model-card-mini-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

    .model-card-mini-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.model-card-mini-info {
    flex: 1;
    min-width: 0;
}

    .model-card-mini-info h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 4px;
    }

    .model-card-mini-info p {
        font-size: 0.82rem;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.model-group-more {
    text-align: center;
    padding-top: 1rem;
}

.model-more-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* ===== Hero CTA ===== */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-ds-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* ===== Hero Features Grid ===== */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-features-grid {
        grid-template-columns: 1fr;
    }
}

.hero-feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .hero-feature-card:hover {
        border-color: var(--accent);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

.hero-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-feature-info {
    flex: 1;
    min-width: 0;
}

    .hero-feature-info h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 2px;
    }

    .hero-feature-info p {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

    .hero-title .gradient-text {
        background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* ===== Hero Tabs ===== */
.hero-tabs {
    display: inline-flex;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 7px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

    .hero-tab:hover {
        color: var(--text-primary);
        background: var(--bg-secondary);
    }

    .hero-tab.active {
        color: var(--accent);
        background: var(--accent-light);
    }

.hero-tab-icon {
    font-size: 0.95rem;
}

/* ===== Video Frames ===== */
.video-frames {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 1.25rem;
}

    .video-frames.show {
        display: flex;
    }

.frame-upload {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-size: 0.8rem;
}

    .frame-upload:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-light);
    }

.frame-upload-icon {
    font-size: 1.3rem;
}

.frame-arrow {
    color: var(--text-muted);
    font-size: 1.3rem;
}

/* ===== Chat Input (旧版) ===== */
.chat-input-wrap {
    max-width: 660px;
    margin: 0 auto;
}

.chat-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.8rem 1.15rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .chat-input:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    }

.chat-textarea {
    display: block;
    width: 100%;
    padding: 0.3rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 180px;
    overflow-y: auto;
}

    .chat-textarea::placeholder {
        color: var(--text-muted);
    }

.chat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--border);
}

.chat-tools {
    display: flex;
    align-items: center;
    gap: 2px;
}

.btn-attach {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .btn-attach:hover {
        color: var(--text-primary);
        background: var(--bg-secondary);
    }

.btn-send {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    cursor: pointer;
}

    .btn-send:hover {
        background: var(--accent-hover);
    }

.btn-send-icon {
    font-size: 0.95rem;
}

/* ===== 新版输入区域 ===== */
.new-input-section {
    max-width: 800px;
    margin: 0 auto;
}

.new-input-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .new-input-box:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    }

.new-input-textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: inherit;
    min-height: 60px;
    max-height: 200px;
}

    .new-input-textarea::placeholder {
        color: var(--text-muted);
    }

.new-input-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.new-input-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-tool-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .new-tool-btn:hover {
        background: var(--bg-secondary);
        color: var(--accent);
    }

.new-lang-select,
.new-style-select,
.new-duration-select {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

    .new-lang-select:hover,
    .new-style-select:hover,
    .new-duration-select:hover {
        border-color: var(--accent);
    }

.new-send-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .new-send-btn:hover {
        background: var(--accent-hover);
        transform: scale(1.05);
    }

    .new-send-btn:active {
        transform: scale(0.98);
    }

.new-input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* ===== 欢迎区域 ===== */
.new-welcome-section {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.new-welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.new-welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ===== 快捷功能卡片 ===== */
.new-quick-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .new-quick-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .new-quick-cards {
        grid-template-columns: 1fr;
    }
}

.new-quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .new-quick-card:hover {
        border-color: var(--accent);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .new-quick-card i {
        font-size: 2rem;
        color: var(--accent);
        margin-bottom: 0.75rem;
    }

    .new-quick-card h4 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .new-quick-card p {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin: 0;
    }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

.new-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.new-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.new-sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--new-sidebar-border);
    border-radius: 2px;
}

    .new-sidebar-nav::-webkit-scrollbar-thumb:hover {
        background: #d1d5db;
    }

/* ===== Selection ===== */
::selection {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0px;
    }

    .new-sidebar {
        transform: translateX(-100%);
        width: var(--new-sidebar-width);
    }

        .new-sidebar.open {
            transform: translateX(0);
        }

    .new-main-wrapper {
        margin-left: 0;
    }

    .new-tab-header {
        padding: 0 1rem;
    }

    .new-tab-list {
        gap: 0.25rem;
    }

    .new-tab-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .new-main-content {
        padding: 1.5rem 1rem;
    }

    .ds-page-header {
        padding: 2rem 1rem 1.5rem;
    }

    .ds-section-title {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2.5rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-tabs {
        flex-direction: column;
        width: 100%;
    }

    .hero-tab {
        width: 100%;
        justify-content: center;
    }

    .frame-arrow {
        transform: rotate(90deg);
    }
}
