:root {
    --primary-gradient-start: #4e73df;
    --primary-gradient-end: #1cc88a;
    --card-radius: 12px;
    --tech-blue: #0a192f;
    --tech-cyan: #00d4ff;
    --tech-purple: #7c3aed;
    --tech-pink: #ec4899;
}

.app-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

.app-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.app-body > * {
    position: relative;
    z-index: 1;
}

.navbar {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-purple));
    border-radius: 2px;
}

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

.chart-card,
.ai-summary,
.ideas-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-purple), var(--tech-pink));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.chart-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 60px rgba(0, 212, 255, 0.1);
}

.chart-box {
    height: 320px;
    min-height: 320px;
}

.ai-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    color: #ffffff;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.ai-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.heatmap-table {
    padding: 0;
}

.heatmap-table > .card-body {
    padding: 0;
}

.heatmap-table .table-responsive {
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
}

.heatmap-table table {
    width: 100%;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.5);
}

.heatmap-table tbody td:first-child {
    background-color: rgba(79, 114, 255, 0.05) !important;
    border-left: 3px solid var(--tech-purple);
    font-weight: 600;
}

.heatmap-table tbody td.fw-bold {
    color: var(--tech-cyan) !important;
    font-size: 0.95rem;
    font-weight: 700;
}

.heatmap-table tbody td.text-primary {
    color: var(--tech-purple) !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.ideas-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.ideas-list li {
    line-height: 1.45;
}

.chart-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #94a3b8;
    font-size: 0.95rem;
    background-color: rgba(148, 163, 184, 0.08);
    border-radius: 10px;
}

.upload-file-name {
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.upload-history li {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-history li:last-child {
    border-bottom: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-purple));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-tech {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #0f172a;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-tech:hover {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    border-color: transparent;
}

main.container {
    max-width: 1400px;
    padding: 2rem 1rem;
}

.page-heading {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.page-heading h1 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-heading .text-muted {
    color: #64748b !important;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.badge {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    color: #0f172a;
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
}

.table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15)) !important;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 14px 12px !important;
    position: sticky;
    top: 0;
    z-index: 10;
    vertical-align: middle;
}

.table tbody td {
    padding: 14px 12px !important;
    vertical-align: middle;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: #334155;
    background-color: rgba(255, 255, 255, 0.95);
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
}

.table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    transform: translateX(2px);
    box-shadow: -2px 0 8px rgba(0, 212, 255, 0.15);
}

.table tbody tr:last-child {
    border-bottom: none !important;
}

/* 表格响应式容器 */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 卡片内的表格 */
.card .table-responsive {
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}

.card .table {
    margin-bottom: 0;
}

/* 表格头部样式 */
.table-light {
    background-color: rgba(248, 249, 250, 0.95) !important;
}

.table-light thead th {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15)) !important;
}

/* 表格悬浮效果 */
.table-hover tbody tr {
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background: rgba(0, 212, 255, 0.12) !important;
}

/* 对齐方式 */
.table tbody td.text-center {
    text-align: center !important;
}

.table tbody td.text-end {
    text-align: right !important;
}

.table tbody td.fw-semibold {
    font-weight: 600 !important;
    color: #0f172a;
}

/* 按钮在表格中的样式 */
.table .btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.table .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-outline-secondary {
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-color: var(--tech-cyan);
    transform: translateY(-2px);
}

/* 上传页面增强样式 */
.hero-features-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-features-section::before,
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple), var(--tech-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #475569 !important;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    letter-spacing: -0.02em;
}

.stat-desc {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

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

.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.feature-mini-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-link {
    cursor: pointer;
}

.feature-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-color: rgba(0, 212, 255, 0.4);
    text-decoration: none;
    color: inherit;
}

.feature-mini-card:nth-child(1) { animation-delay: 0s; }
.feature-mini-card:nth-child(2) { animation-delay: 0.5s; }
.feature-mini-card:nth-child(3) { animation-delay: 1s; }
.feature-mini-card:nth-child(4) { animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-mini-card:not(.feature-link):hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.features-section {
    margin: 4rem 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tech-cyan), var(--tech-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.process-steps-compact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.process-section {
    margin: 4rem 0;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    }
    100% {
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    }
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.process-step-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number-compact {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.step-content-compact {
    display: flex;
    flex-direction: column;
}

.step-content-compact strong {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
}

.step-content-compact span {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
}

.process-arrow-compact {
    font-size: 1.2rem;
    color: var(--tech-cyan);
    font-weight: 700;
    margin: 0 0.25rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--tech-cyan);
    font-weight: 700;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple)) !important;
}

.empty-state-icon {
    font-size: 4rem;
    opacity: 0.5;
}

.code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* 功能详情区域样式 */
.feature-detail-section {
    scroll-margin-top: 100px;
}

.feature-header-icon {
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #64748b;
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li strong {
    color: #0f172a;
    display: inline-block;
    min-width: 80px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.metric-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.metric-label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.metric-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.chart-type-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.chart-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.chart-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.chart-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.dashboard-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dashboard-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ai-insights-content {
    color: #64748b;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #64748b;
}

.insight-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--tech-cyan);
    font-weight: 700;
}

.insight-example {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    border-left: 4px solid var(--tech-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.example-icon {
    font-size: 1.2rem;
}

.example-content {
    color: #475569;
    line-height: 1.8;
}

.example-content strong {
    color: #0f172a;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* 上传区域样式 */
.upload-section {
    min-height: 200px;
}

.upload-tips {
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tip-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tip-content strong {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
}

.tip-content span {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.example-preview {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

.example-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.example-table {
    margin: 0;
    font-size: 0.85rem;
}

.example-table thead th {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.example-table tbody td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #475569;
}

.example-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

/* 模板格式说明样式 */
.template-guide {
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 200px;
}

.template-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.template-field-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.template-field-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.field-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tech-purple);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.field-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #0f172a !important;
}

#upload-form .card-header {
    padding: 1rem 1.5rem;
}

#upload-form .card-body {
    padding: 1.5rem;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .feature-card-grid {
        max-width: 100%;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* 错误弹窗样式 */
#errorModal .modal-content {
    border: 2px solid rgba(220, 53, 69, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
}

#errorModal .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-radius: 0;
}

#errorModal .modal-body {
    background: rgba(255, 255, 255, 0.95);
}

#errorModal .modal-footer {
    background: rgba(248, 249, 250, 0.8);
}

#errorModal .alert-danger {
    border: 2px solid rgba(220, 53, 69, 0.3);
    background: rgba(248, 215, 218, 0.3);
    border-radius: 12px;
}

@media (max-width: 576px) {
    .chart-box {
        height: 260px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .example-table {
        font-size: 0.75rem;
    }

    .example-table thead th,
    .example-table tbody td {
        padding: 0.4rem 0.25rem;
    }
}

