/* ============================================================
   BotCreate AI创作智能体 - 样式文件
   主色调：深紫色/金色（文化创意感）
   ============================================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.main-content {
    flex: 1;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 50%, #1A1A4E 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

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

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #FFD700, #F0C420, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 12px;
    opacity: 0.85;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 215, 0, 0.3);
    margin-left: 4px;
    color: #E8D5B7;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #E8D5B7;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: all 0.2s;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    color: #FFD700;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Flash Messages */
.flash-messages {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.flash-message {
    padding: 12px 0;
    font-size: 14px;
}

.flash-error {
    color: #c53030;
}

.flash-success {
    color: #38a169;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: #a0aec0;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.site-footer p {
    color: #8892b0;
}

.footer-sub {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.7;
}

/* ============================================================
   Hero Section (首页)
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 50%, #1A1A4E 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #E8D5B7;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #E8D5B7;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #4A1942;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   通用 Section
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 10px;
}

.title-icon {
    margin-right: 8px;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
}

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

/* ============================================================
   Styles Section (风格模板)
   ============================================================ */
.styles-section {
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

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

.style-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A1942, #FFD700);
    opacity: 0;
    transition: opacity 0.3s;
}

.style-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(74, 25, 66, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.style-card:hover::before {
    opacity: 1;
}

.style-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.style-icon {
    font-size: 32px;
}

.style-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.style-desc {
    font-size: 13px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 40px;
}

.style-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.style-arrow {
    font-size: 13px;
    color: #4A1942;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.style-card:hover .style-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   Cases Section (案例)
   ============================================================ */
.cases-section {
    padding: 60px 0;
    background: white;
}

.cases-section:nth-of-type(odd) {
    background: #f7fafc;
}

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

.case-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border-left: 4px solid #4A1942;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(74, 25, 66, 0.12);
    border-left-color: #FFD700;
}

.case-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.case-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.4;
}

.case-client {
    font-size: 13px;
    color: #718096;
    margin-bottom: 10px;
}

.case-concept {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 12px;
    color: #718096;
}

.case-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.case-tag {
    padding: 3px 8px;
    background: #f7fafc;
    color: #6B7280;
    border-radius: 4px;
    font-size: 11px;
}

/* ============================================================
   Feature Section
   ============================================================ */
.feature-section {
    padding: 60px 0;
}

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

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

.feature-card:hover {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    color: #E8D5B7;
    margin-bottom: 30px;
    font-size: 16px;
}

.cta-content .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #4A1942;
}

/* ============================================================
   Page Header (子页面顶部)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, #4A1942 0%, #2D1B69 100%);
    color: white;
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, transparent);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #E8D5B7;
    opacity: 0.85;
    margin-bottom: 30px;
}

.search-form-small {
    max-width: 600px;
}

.search-box-small {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 15px;
    background: transparent;
    border-radius: 8px;
    color: #333;
}

.search-btn {
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #5A2352, #7B3D6C);
}

/* ============================================================
   Cases Layout (案例列表布局)
   ============================================================ */
.cases-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.filter-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-list {
    list-style: none;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-item:hover {
    background: #f7fafc;
}

.filter-item.active {
    background: #faf0e6;
    color: #4A1942;
}

.filter-item a {
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.filter-count {
    background: #edf2f7;
    color: #718096;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.filter-item.active .filter-count {
    background: #FFD700;
    color: #4A1942;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 12px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 16px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-item:hover {
    background: #4A1942;
    color: #FFD700;
}

.results-header {
    margin-bottom: 20px;
}

.results-title {
    font-size: 18px;
    color: #1a202c;
}

.results-title em {
    color: #4A1942;
    font-style: normal;
}

.results-title small {
    font-size: 13px;
    color: #718096;
    font-weight: normal;
    margin-left: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-link {
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.page-link:hover {
    background: #4A1942;
    color: #FFD700;
}

.page-info {
    color: #718096;
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #1a202c;
    margin-bottom: 10px;
}

.empty-state p {
    color: #718096;
    margin-bottom: 20px;
}

/* ============================================================
   Create Page (创作工作台)
   ============================================================ */
.create-section {
    padding: 30px 0;
}

.create-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    align-items: start;
}

.create-input-panel {
    position: sticky;
    top: 20px;
}

.panel-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafbfc;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #4A1942;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 25, 66, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 6px;
}

/* Style Selector */
.style-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.style-option {
    cursor: pointer;
}

.style-option input {
    display: none;
}

.style-option-inner {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
    background: #fafbfc;
}

.style-option:hover .style-option-inner {
    border-color: #cbd5e0;
    background: white;
}

.style-option.selected .style-option-inner {
    border-color: #4A1942;
    background: #faf0e6;
}

.style-option-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.style-option-name {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.style-option.selected .style-option-name {
    color: #4A1942;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.tips-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 12px;
}

/* Result Panel */
.create-result-panel {
    min-height: 600px;
}

.empty-result {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 2px dashed #e2e8f0;
}

.empty-result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-result h3 {
    font-size: 20px;
    color: #1a202c;
    margin-bottom: 10px;
}

.empty-result p {
    color: #718096;
    margin-bottom: 30px;
}

.quick-ideas {
    margin-top: 30px;
    text-align: left;
}

.quick-ideas-title {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 12px;
    text-align: center;
}

.quick-idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-idea-tag {
    padding: 10px 18px;
    background: linear-gradient(135deg, #faf0e6, #fff);
    color: #4A1942;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.quick-idea-tag:hover {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #4A1942;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.result-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #4A1942 0%, #6B2D5C 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-style-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.result-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.result-topic {
    padding: 24px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.result-topic h2 {
    font-size: 24px;
    color: #1a202c;
    margin-bottom: 6px;
}

.result-industry {
    color: #718096;
    font-size: 14px;
}

.result-section {
    padding: 20px 30px;
    border-bottom: 1px solid #f7fafc;
}

.result-section:last-child {
    border-bottom: none;
}

.section-heading {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.concept-text {
    color: #4a5568;
    line-height: 1.8;
    font-size: 14px;
}

.element-list {
    list-style: none;
    padding: 0;
}

.element-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.element-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
}

/* Color Palette */
.color-palette {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-item {
    text-align: center;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 6px;
    border: 2px solid white;
}

.color-hex {
    font-size: 11px;
    color: #718096;
    font-family: 'Courier New', monospace;
}

.color-note {
    margin-top: 12px;
    font-size: 13px;
    color: #718096;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.info-tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, #faf0e6, #fff);
    color: #4A1942;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.highlight-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.normal-list {
    list-style: none;
    padding: 0;
}

.normal-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.normal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4A1942;
    font-weight: bold;
}

.prompt-box {
    background: #1a1a2e;
    color: #a0aec0;
    padding: 16px;
    border-radius: 10px;
    font-size: 12px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.prompt-box code {
    color: #e2e8f0;
}

.ref-cases {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-case-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 13px;
}

.ref-case-type {
    padding: 2px 8px;
    background: #4A1942;
    color: #FFD700;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.ref-case-name {
    color: #4a5568;
}

/* Variation Section */
.variation-section {
    background: #fafbfc;
}

.variation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variation-buttons .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

/* ============================================================
   History Page (创作历史)
   ============================================================ */
.history-section {
    padding: 30px 0;
}

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

.history-header h2 {
    font-size: 20px;
    color: #1a202c;
}

.history-list {
    display: grid;
    gap: 16px;
}

.history-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #4A1942;
}

.history-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(74, 25, 66, 0.12);
    border-left-color: #FFD700;
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-ai_gen {
    background: linear-gradient(135deg, #4A1942, #6B2D5C);
    color: #FFD700;
}

.history-id {
    font-size: 12px;
    color: #a0aec0;
    font-family: 'Courier New', monospace;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.4;
}

.history-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 12px;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.history-time {
    font-size: 13px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-score {
    font-size: 13px;
    color: #4A1942;
    font-weight: 500;
}

/* ============================================================
   Detail Page (详情)
   ============================================================ */
.detail-section {
    padding: 30px 0;
}

.detail-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #718096;
}

.detail-breadcrumb a {
    color: #4A1942;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.crumb-sep {
    margin: 0 8px;
}

.crumb-current {
    color: #2d3748;
    font-weight: 500;
}

.detail-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.detail-header {
    padding: 30px 40px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #faf9f5 0%, #f5f0e6 100%);
}

.detail-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-db {
    font-size: 13px;
    color: #718096;
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
}

.detail-title {
    font-size: 28px;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 16px;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-meta-item {
    font-size: 14px;
    color: #4a5568;
}

.style-desc-large {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
}

.detail-body {
    padding: 30px 40px;
}

.detail-fields {
    display: grid;
    gap: 24px;
}

.detail-field {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.field-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    padding-top: 2px;
}

.field-value {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.7;
    word-break: break-word;
}

.long-text {
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    line-height: 1.8;
}

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

.reusability-高 {
    background: #c6f6d5;
    color: #22543d;
}

.reusability-中 {
    background: #fefcbf;
    color: #744210;
}

.reusability-低 {
    background: #fed7d7;
    color: #742a2a;
}

.cost-list {
    display: grid;
    gap: 8px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
}

.cost-label {
    color: #4a5568;
}

.cost-value {
    font-weight: 500;
    color: #4A1942;
}

/* Related Section */
.related-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

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

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

.related-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.related-item:hover {
    background: #faf0e6;
}

.related-badge {
    font-size: 11px;
    color: #FFD700;
    background: #4A1942;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.related-name {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* Version List */
.version-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.version-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 10px;
}

.version-badge {
    padding: 6px 12px;
    background: #4A1942;
    color: #FFD700;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    height: fit-content;
}

.version-info {
    flex: 1;
}

.version-change {
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 6px;
}

.version-meta {
    font-size: 12px;
    color: #718096;
    display: flex;
    gap: 16px;
}

.detail-footer {
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7fafc;
}

.back-btn {
    color: #4A1942;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-btn:hover {
    text-decoration: underline;
}

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

.action-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    background: #4A1942;
    color: #FFD700;
    border-color: #4A1942;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.error-page h2 {
    color: #c53030;
    margin-bottom: 20px;
}

/* ============================================================
   Result Badges (通用徽章)
   ============================================================ */
.result-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-cases {
    background: linear-gradient(135deg, #319795, #2c7a7b);
}

.badge-ich {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.badge-ip {
    background: linear-gradient(135deg, #dd6b20, #c05621);
}

.badge-art {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
}

.badge-knowledge {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.badge-craft {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
}

.badge-supply {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
}

.badge-user {
    background: linear-gradient(135deg, #d53f8c, #b83280);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .create-layout {
        grid-template-columns: 1fr;
    }

    .create-input-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 28px;
    }

    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cases-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .nav-links {
        display: none;
    }

    .detail-field {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .detail-header,
    .detail-body,
    .detail-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    .style-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .style-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}
