/* 申根签证行程单助手 - 优化样式文件 */

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f8fafc;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --success-dark: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --text-color: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-color: rgba(30, 58, 138, 0.1);
    --gradient-start: #1e3a8a;
    --gradient-end: #1e40af;
    --hero-bg: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --light-bg: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.1), 0 2px 4px -1px rgba(30, 58, 138, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 10px 10px -5px rgba(30, 58, 138, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(30, 58, 138, 0.05);
}

/* 基础样式重置 */
*, ::after, ::before {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    line-height: 1.6;
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

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

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 动画类 */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

/* Hero Section */
.hero-section {
    background: var(--hero-bg);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* 响应式网格布局优化 */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .process-step {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .materials-nav {
        justify-content: center;
    }
    
    .faq-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .itinerary-tabs {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.materials-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.itinerary-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.itinerary-tab {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.itinerary-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 按钮样式增强 */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-dark), var(--success-color));
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Stats Section */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d72 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

:root {
    scroll-behavior: smooth;
}

/* 容器样式 */
.container-fluid {
    position: relative;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 95%;
}

/* Bootstrap基础布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-md-6, .col-lg-4, .col-lg-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 1;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* 强制双列布局 */
.row.mb-4 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}

.row.mb-4 .col-md-6 {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    width: 48% !important;
    margin-bottom: 1rem !important;
}

/* 基础工具类 */
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.h-100 { height: 100% !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.text-center { text-align: center !important; }
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }

/* ===== 卡片样式 - 确保完美边框对齐 ===== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--card-bg);
    background-clip: border-box;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* 卡片头部 - 确保顶部圆角和无边框 */
.card-header {
    position: relative;
    margin: 0;
    padding: 2rem;
    border: none;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* 确保绿色header的样式 */
.card-header.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%) !important;
}

.card-header h5 {
    position: relative;
    z-index: 1;
    color: white;
    margin: 0;
}

/* 卡片主体 - 确保与header完美对齐 */
.card-body {
    flex: 1 1 auto;
    margin: 0;
    padding: 2.5rem;
    border: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ===== 功能卡片特殊样式 ===== */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card .card-body {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    border: none;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.feature-card[data-feature="generate"]:hover {
    border-left: 6px solid var(--primary-color);
}

.feature-card[data-feature="review"]:hover {
    border-left: 6px solid var(--success-color);
}

/* 卡片标题和描述样式 */
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 流程步骤卡片 */
.process-step {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 导航栏样式 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-text {
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    font-weight: 500;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    font-weight: 600;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

/* ===== 表单样式增强 ===== */
.form-control {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-primary);
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(44, 90, 160, 0.25);
}

.form-control:hover {
    border-color: var(--primary-color);
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.875rem 2.25rem 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(44, 90, 160, 0.25);
}

/* ===== 输入组样式 ===== */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* ===== 进度条样式 ===== */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

/* ===== 徽章样式 ===== */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius);
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--success-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.6);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: #f8f9fa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: #a0aec0;
}

/* 加载指示器 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
    margin-bottom: 1rem;
}

/* 结果显示区域 */
.result-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--card-shadow);
    display: none;
}

.result-section.show {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.result-icon.success {
    background: var(--accent-color);
}

.result-icon.warning {
    background: #f59e0b;
}

.result-icon.error {
    background: #ef4444;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.result-content {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== 表单样式 ===== */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.form-control:hover, .form-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== 图标和特效 ===== */
.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== 警告和状态样式 ===== */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===== 响应式设计 ===== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    .row.mb-4 {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .row.mb-4 .col-md-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    /* 功能卡片宽屏优化 */
    .feature-card {
        min-height: 320px;
        border-radius: 1.5rem;
    }
    
    .feature-card .card-body {
        padding: 3rem 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 0 0 1.5rem 1.5rem;
        margin: 0;
        border: none;
    }
    
    .feature-icon {
        margin-bottom: 2rem;
    }
    
    .feature-icon i {
        font-size: 4rem !important;
    }
    
    .card-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
        font-weight: 600;
    }
    
    .card-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        text-align: center;
        max-width: 90%;
    }
    
    .btn-lg {
        padding: 1.25rem 3rem;
        font-size: 1.2rem;
        border-radius: 0.75rem;
        font-weight: 600;
        min-width: 180px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .row.mb-4 {
        margin-bottom: 3rem !important;
        margin-left: -1rem;
        margin-right: -1rem;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .row.mb-4 .col-md-6 {
        padding-left: 1rem;
        padding-right: 1rem;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
    
    .card-body {
        padding: 1.5rem;
        border-radius: 0 0 0.75rem 0.75rem;
        margin: 0;
        border: none;
    }
    
    .card-header {
        border-radius: 0.75rem 0.75rem 0 0 !important;
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
}

/* 小屏幕适配 */
@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .card-header {
        padding: 1.25rem;
        text-align: center;
        border-radius: 0.5rem 0.5rem 0 0 !important;
    }
    
    .card-body {
        padding: 1.25rem;
        border-radius: 0 0 0.5rem 0.5rem;
        margin: 0;
        border: none;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .feature-icon i {
        font-size: 2rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .form-control,
    .form-select {
        font-size: 1.1rem;
        padding: 0.875rem;
        border-radius: 0.5rem;
        border: 2px solid #dee2e6;
        transition: all 0.3s ease;
    }
    
    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }
    
    .form-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .form-text {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .row .col-md-3,
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    input[type="file"] {
        padding: 0.75rem;
        border: 2px dashed #dee2e6;
        border-radius: 0.5rem;
        background-color: #f8f9fa;
    }
    
    input[type="file"]:focus {
        border-color: var(--primary-color);
        background-color: rgba(102, 126, 234, 0.05);
    }
    
    .card-title {
        font-size: 1.25rem;
        text-align: center;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== 加载指示器样式 ===== */
#loadingIndicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

#loadingIndicator .text-center {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
}

#loadingIndicator .spinner-border {
    margin: 0 auto 1rem auto;
}

#loadingIndicator h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* ===== 行程生成成功样式 ===== */
.itinerary-success-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: var(--shadow);
}

.success-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.success-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
    margin-bottom: 1rem;
}

.success-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.itinerary-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

/* 优化行程内容中的标题样式 */
.itinerary-content h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.itinerary-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--success-color);
    border-radius: 2px;
}

.itinerary-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.itinerary-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--info-color);
}

/* 优化表格样式 */
.itinerary-content .table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

.itinerary-content .table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.itinerary-content .table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 0.75rem;
    border: none;
    font-size: 1rem;
}

.itinerary-content .table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-color: #e2e8f0;
}

.itinerary-content .table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.itinerary-content .table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transition: background-color 0.2s ease;
}

/* 基本信息卡片样式 */
.basic-info-card .card {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.basic-info-card .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.basic-info-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 1rem 1.5rem;
}

.basic-info-card .card-header h5 {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.basic-info-card .card-body {
    padding: 1.5rem;
    background: #ffffff;
}

.basic-info-card .info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.basic-info-card .info-item:last-child {
    border-bottom: none;
}

.basic-info-card .info-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.basic-info-card .info-value {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    font-size: 0.95rem;
}

/* 优化段落和列表样式 */
.itinerary-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.itinerary-content p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.itinerary-content ul, .itinerary-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.itinerary-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* 优化分隔线样式 */
.itinerary-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    margin: 2rem 0;
}

/* ===== 审核报告页面样式 ===== */
.review-result-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 评分卡片样式 */
.score-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-radius: var(--border-radius-lg);
        padding: 2.5rem 2rem 2rem 2rem;
        margin-bottom: 2.5rem;
        box-shadow: 0 8px 32px 0 rgba(102,126,234,0.15), var(--shadow-lg);
        border: 3px solid transparent;
        background-clip: padding-box;
        position: relative;
        overflow: hidden;
        animation: floatCard 1.8s cubic-bezier(.25,.46,.45,.94) infinite alternate;
}

@keyframes floatCard {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-6px) scale(1.012); }
}

.score-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    height: 8px;
    border-radius: 1.5rem 1.5rem 0 0;
    background: linear-gradient(90deg, #667eea 0%, #10b981 100%);
    z-index: 2;
    filter: blur(0.5px);
}

.score-card.excellent::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.score-card.good::before {
    background: linear-gradient(90deg, var(--success-color) 0%, #38a169 100%);
}

.score-card.fair::before {
    background: linear-gradient(90deg, var(--warning-color) 0%, #d69e2e 100%);
}

.score-card.poor::before {
    background: linear-gradient(90deg, var(--danger-color) 0%, #e53e3e 100%);
}

.score-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
}

.score-icon {
    font-size: 3.2rem;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, #e0e7ff 60%, #c7d2fe 100%);
    box-shadow: 0 0 24px 0 #a5b4fc66, 0 2px 8px 0 #667eea22;
    position: relative;
    z-index: 3;
}

.score-info {
    flex: 1;
}

.score-number {
        font-size: 3.8rem;
        font-weight: 800;
        color: #4f46e5;
        line-height: 1;
        margin: 0;
        letter-spacing: 1px;
        text-shadow: 0 2px 8px #a5b4fc33, 0 1px 0 #fff;
        transition: color 0.3s, text-shadow 0.3s;
        animation: popScore 1.2s cubic-bezier(.25,.46,.45,.94) 1;
}

@keyframes popScore {
    0% { transform: scale(0.8); opacity: 0.5; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.score-label {
    font-size: 1.1rem;
    color: #6366f1;
    margin: 0.5rem 0 0.2rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.score-grade {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px #a5b4fc22;
    margin-top: 0.2rem;
}

.score-grade.excellent {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.score-grade.good {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
}

.score-grade.fair {
    background: rgba(237, 137, 54, 0.1);
    color: #d69e2e;
}

.score-grade.poor {
    background: rgba(245, 101, 101, 0.1);
    color: #e53e3e;
}

.score-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.progress-bar.excellent {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.progress-bar.good {
    background: linear-gradient(90deg, var(--success-color) 0%, #38a169 100%);
}

.progress-bar.fair {
    background: linear-gradient(90deg, var(--warning-color) 0%, #d69e2e 100%);
}

.progress-bar.poor {
    background: linear-gradient(90deg, var(--danger-color) 0%, #e53e3e 100%);
}

/* 问题统计样式 */
.issues-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.issue-stat {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

.stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.error-stat .stat-icon {
    background: rgba(245, 101, 101, 0.1);
}

.suggestion-stat .stat-icon {
    background: rgba(72, 187, 120, 0.1);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* 问题和建议部分样式 */
.issue-section {
    background: white;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.section-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-section .section-header {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.05) 0%, rgba(245, 101, 101, 0.02) 100%);
    border-bottom-color: rgba(245, 101, 101, 0.1);
}

.suggestion-section .section-header {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(72, 187, 120, 0.02) 100%);
    border-bottom-color: rgba(72, 187, 120, 0.1);
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
}

/* 统一h4、h5、h6字体大小 */
h4, h5, h6 {
    font-size: 1.25rem !important;
}

/* 导航栏右上角对齐样式 */
.navbar {
    min-height: 60px;
}

.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.navbar-nav.ms-auto {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin-left: auto !important;
}

.navbar-text {
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.9rem !important;
    color: #333333 !important;
}

.issue-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.error-section .issue-count {
    background: var(--danger-color);
}

.suggestion-section .issue-count {
    background: var(--success-color);
}

.issue-list {
    padding: 0;
}

.issue-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

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

.issue-item:hover {
    background: rgba(102, 126, 234, 0.02);
}

.error-item:hover {
    background: rgba(245, 101, 101, 0.02);
}

.suggestion-item:hover {
    background: rgba(72, 187, 120, 0.02);
}

.issue-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.error-item .issue-marker {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.suggestion-item .issue-marker {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.issue-content {
    flex: 1;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* AI分析部分样式 */
.ai-analysis-section {
    background: white;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

/* AI专业分析卡片样式 - 优化建议展示 */
.card.border-info {
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff !important;
}

.card.border-info .card-body {
    height: auto !important;
    min-height: auto !important;
    padding: 1.5rem;
    width: 100% !important;
}

.card.border-info .card-header {
    width: 100% !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card.border-info .card-header h6 {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-analysis-content {
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
}

/* AI分析各个部分的样式 */
.ai-score-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #007bff;
}

.ai-score-section .score-display {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.ai-score-section .badge {
    font-size: 1rem !important;
    border-radius: 20px;
}

.ai-issues-section {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #ffc107;
}

.ai-issues-section h6 {
    color: #856404 !important;
}

.ai-suggestions-section {
    background: linear-gradient(135deg, #d1edff, #b8e6b8);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.ai-suggestions-section h6 {
    color: #155724 !important;
}

.ai-detailed-analysis {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #17a2b8;
}

.ai-detailed-analysis h6 {
    color: #0c5460 !important;
}

.ai-detailed-analysis .analysis-content {
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}



/* 列表项样式优化 */
.ai-issues-section .list-group-item,
.ai-suggestions-section .list-group-item {
    background: transparent;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.5rem 0;
}

.ai-issues-section .fas.fa-dot-circle {
    color: #ffc107 !important;
}

.ai-suggestions-section .fas.fa-check-circle {
    color: #28a745 !important;
}

/* 图标样式 */
.ai-analysis-content .fas {
    width: 16px;
    text-align: center;
}

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

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .feature-card {
        padding: 2.5rem;
    }
}

/* 平板设备 (768px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动设备 (768px以下) */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 280px;
    }
    
    /* 功能卡片 */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* 统计数据 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 流程步骤 */
    .process-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .process-step {
        max-width: 100%;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    /* 材料清单 */
    .materials-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .materials-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .material-item {
        padding: 0.75rem;
    }
    
    /* FAQ */
    .faq-search {
        margin-bottom: 1.5rem;
    }
    
    .faq-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    /* 行程工具 */
    .itinerary-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .itinerary-tab {
        width: 100%;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* 结果显示 */
    .result-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    /* AI分析结果 */
    .ai-score-section .score-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ai-analysis-content {
        font-size: 0.9rem;
    }
    
    .score-card {
        padding: 1.5rem;
    }
    
    .score-header {
        flex-direction: column;
        text-align: center;
    }
    
    .score-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .issues-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .issue-stat {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .issue-item {
        padding: 1rem 1.5rem;
    }
    
    .ai-content {
        padding: 1.5rem;
    }
}

/* 搜索和筛选功能样式 */
.content-search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.search-box .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-box .input-group-text {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 15px;
}

.search-box .form-control {
    border: none;
    padding: 12px 15px;
    font-size: 14px;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

#categoryFilter {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#categoryFilter:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* 搜索结果样式 */
.search-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchResultsCount {
    font-size: 14px;
    font-weight: 500;
}

/* 加载更多按钮样式 */
#loadMoreBtn {
    min-width: 120px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
}

/* 文章模态框样式 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 25px;
}

/* 文章内容样式 */
.article-detail-content {
    font-size: 15px;
    line-height: 1.7;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3 {
    color: #1e3a8a;
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-detail-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-detail-content ul,
.article-detail-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.article-detail-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1e3a8a;
}

.article-detail-meta .badge {
    margin-right: 8px;
    margin-bottom: 5px;
}

/* 响应式优化 - 搜索功能 */
@media (max-width: 768px) {
    .content-search-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .search-box .form-control,
    #categoryFilter {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .search-box .input-group-text {
        padding: 10px 12px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .article-detail-content {
        font-size: 14px;
    }
}

/* ===== 动态内容展示区域样式 ===== */

/* 精选内容区域 */
.featured-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.featured-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.featured-badge {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.featured-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.featured-icon {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

/* 内容区域卡片 */
.content-section-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.content-section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.section-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* 文章列表样式 */
.article-list {
    padding: 0;
}

.article-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.article-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(5px);
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-content {
    position: relative;
    z-index: 2;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-summary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.article-meta .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.article-meta .text-muted {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 热门文章特殊样式 */
.hot-item {
    position: relative;
}

.hot-item::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* 响应式优化 - 动态内容区域 */
@media (max-width: 1200px) {
    .featured-content {
        padding: 2.5rem;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .featured-content {
        padding: 2rem;
        text-align: center;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-summary {
        font-size: 1rem;
    }
    
    .featured-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .featured-image {
        margin-top: 2rem;
        min-height: 150px;
    }
    
    .featured-icon {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .featured-content {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .featured-summary {
        font-size: 0.9rem;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
    }
    
    .section-header h4 {
        font-size: 1.1rem;
    }
    
    .article-item {
        padding: 1rem 1.5rem;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-summary {
        font-size: 0.85rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .featured-content {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1.1rem;
    }
    
    .featured-summary {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .featured-image {
        min-height: 100px;
    }
    
    .featured-icon {
        font-size: 3rem;
    }
    
    .content-section-card {
        margin-bottom: 1rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
    }
    
    .article-item {
        padding: 0.75rem 1rem;
    }
}

/* 深蓝色主题优化 */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* 卡片悬停效果增强 */
.card, .content-section-card, .feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .content-section-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
}

/* 按钮样式优化 */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* 小屏幕移动设备 (576px以下) */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .materials-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 1rem; /* 防止iOS缩放 */
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

.ai-analysis-section .section-header {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.05) 0%, rgba(66, 153, 225, 0.02) 100%);
    border-bottom-color: rgba(66, 153, 225, 0.1);
}

.ai-analysis-section .issue-count {
    background: var(--info-color);
}

.ai-content {
    padding: 2rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.ai-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ai-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.ai-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ai-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .itinerary-success-container {
        padding: 1.5rem;
        margin: 0 -0.5rem 1rem -0.5rem;
    }
    
    .success-badge {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .itinerary-content {
        padding: 1.5rem;
    }
    
    .itinerary-content h1 {
        font-size: 1.75rem;
    }
    
    .itinerary-content h2 {
        font-size: 1.3rem;
        padding: 0.6rem 0.8rem;
    }
    
    /* 审核报告响应式 */
    .score-card {
        padding: 1.5rem;
    }
    
    .score-header {
        flex-direction: column;
        text-align: center;
    }
    
    .score-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .issues-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .issue-stat {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .issue-item {
        padding: 1rem 1.5rem;
    }
    
    .ai-content {
        padding: 1.5rem;
    }
}