/* GG旅游攻略生成器 - 主题风格CSS
 * 整合五种风格：
 * 1. 大气视觉型（沉浸感强）
 * 2. 简洁清新型（实用直观）
 * 3. 文艺复古型（温暖治愈）
 * 4. 动感潮流型（年轻化）
 * 5. 专业严谨型（商务感）
 */

:root {
    /* 共享颜色变量 */
    --primary-color: #2b7bcd;           /* 蓝色，基础主色调 */
    --secondary-color: #34a853;         /* 绿色，辅助色 */
    --accent-color: #f6a623;            /* 温暖橙色，强调色 */
    --background-color: #f8f9fa;        /* 浅灰色背景 */
    --card-bg-color: #ffffff;           /* 卡片背景色 */
    --text-color: #333333;              /* 主文本颜色 */
    --light-text: #6c757d;              /* 浅色文本 */
    --dark-blue: #183153;               /* 深蓝色，商务感 */
    --warm-beige: #f5f0e5;              /* 温暖米色，复古感 */
    --vibrant-purple: #8e44ad;          /* 动感紫色 */
    --vibrant-pink: #ff6b9e;            /* 动感粉色 */
}

body {
    background-color: #f8f9fa;
    padding-top: 30px;
    padding-bottom: 50px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.5s ease;
}

.container {
    max-width: 960px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.site-header {
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

.site-header h1 {
    color: #0d6efd;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.site-header p {
    color: #6c757d;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.result-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
    display: none;
    transition: all 0.3s ease;
}

.section-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 25px 0;
}

label {
    font-weight: 500;
    color: #212529;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.form-control, .form-select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

#loading {
    text-align: center;
    margin: 30px 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.guide-section {
    margin-bottom: 20px;
}

.section-title {
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #0d6efd;
    font-size: 1.25rem;
    border-left: 4px solid #0d6efd;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.guide-content p {
    line-height: 1.7;
    color: #212529;
    margin-bottom: 15px;
}

/* 旅游图标 */
.travel-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* ===== 大气视觉型样式 ===== */
body.theme-atmospheric {
    background-color: transparent;
    background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2970&q=80');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}

body.theme-atmospheric::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    z-index: 0;
}

.theme-atmospheric .site-header {
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.theme-atmospheric .site-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.theme-atmospheric .site-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.theme-atmospheric .form-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.theme-atmospheric .form-label {
    color: var(--dark-blue);
    font-weight: 600;
}

.theme-atmospheric .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 8px 20px rgba(43, 123, 205, 0.3);
}

.theme-atmospheric .travel-icon {
    color: var(--secondary-color);
}

/* ===== 简洁清新型样式 ===== */
body.theme-clean {
    background-color: var(--background-color);
    background-image: none;
}

.theme-clean .site-header h1 {
    color: var(--primary-color);
    font-size: 2.4rem;
}

.theme-clean .form-card {
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.theme-clean .form-label {
    color: var(--dark-blue);
    font-weight: 600;
}

.theme-clean .form-control,
.theme-clean .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.theme-clean .form-control:focus,
.theme-clean .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(43, 123, 205, 0.15);
}

.theme-clean .btn-primary {
    background-color: var(--primary-color);
    border-radius: 8px;
    box-shadow: none;
}

/* ===== 文艺复古型样式 ===== */
body.theme-artistic {
    background-color: var(--warm-beige);
    background-image: url('https://images.unsplash.com/photo-1581512798938-9ac0d6cda0be?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2970&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.theme-artistic .site-header h1 {
    font-family: 'Playfair Display', serif;
    color: #5c4f3d;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme-artistic .site-header p {
    font-family: 'Lora', serif;
    color: #847a6a;
}

.theme-artistic .form-card {
    background-color: rgba(245, 240, 229, 0.9);
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(92, 79, 61, 0.15);
}

.theme-artistic .form-label {
    font-family: 'Lora', serif;
    color: #5c4f3d;
}

.theme-artistic .travel-icon {
    color: #846c5b;
}

.theme-artistic .btn-primary {
    background-color: #9b8b75;
    border: none;
    font-family: 'Lora', serif;
    letter-spacing: 1px;
}

.theme-artistic .btn-primary:hover {
    background-color: #7d705e;
}

.theme-artistic .section-title {
    font-family: 'Playfair Display', serif;
    color: #5c4f3d;
    border-left-color: #9b8b75;
}

/* ===== 动感潮流型样式 ===== */
body.theme-dynamic {
    background-color: #181818;
    background-image: url('https://images.unsplash.com/photo-1506197603052-3cc9c3a201bd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2970&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body.theme-dynamic::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(142, 68, 173, 0.7), rgba(41, 128, 185, 0.7));
    z-index: 0;
}

.theme-dynamic .site-header h1 {
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #8e44ad, #3498db, #ff6b9e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.theme-dynamic .site-header p {
    color: white;
}

.theme-dynamic .form-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.theme-dynamic .form-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.theme-dynamic .form-control,
.theme-dynamic .form-select {
    border-radius: 50px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.theme-dynamic .form-control:focus,
.theme-dynamic .form-select:focus {
    border-color: var(--vibrant-purple);
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.25);
    transform: scale(1.02);
}

.theme-dynamic .btn-primary {
    background: linear-gradient(90deg, var(--vibrant-purple), var(--vibrant-pink));
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.5s ease;
}

.theme-dynamic .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--vibrant-pink), var(--vibrant-purple));
    transition: all 0.5s ease;
    z-index: -1;
}

.theme-dynamic .btn-primary:hover:before {
    width: 100%;
}

.theme-dynamic .travel-icon {
    color: var(--vibrant-purple);
}

.theme-dynamic .section-title {
    color: var(--vibrant-purple);
    border-left-color: var(--vibrant-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== 专业严谨型样式 ===== */
body.theme-professional {
    background-color: #f5f5f7;
    background-image: none;
}

.theme-professional .site-header h1 {
    color: var(--dark-blue);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.theme-professional .site-header p {
    color: #566a80;
}

.theme-professional .form-card {
    background-color: white;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 25px;
}

.theme-professional .section-title {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    border-left: 3px solid var(--dark-blue);
    padding-left: 10px;
    margin-bottom: 15px;
}

.theme-professional .form-label {
    color: #566a80;
    font-weight: 600;
    font-size: 0.9rem;
}

.theme-professional .form-control,
.theme-professional .form-select {
    border: 1px solid #d1d9e6;
    border-radius: 4px;
    height: calc(2.5rem + 2px);
}

.theme-professional .travel-icon {
    color: var(--dark-blue);
}

.theme-professional .btn-primary {
    background-color: var(--dark-blue);
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.theme-professional .btn-primary:hover {
    background-color: #122540;
    transform: none;
    box-shadow: 0 4px 8px rgba(24, 49, 83, 0.2);
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .form-card, .result-card {
        padding: 20px;
    }
    
    .site-header h1 {
        font-size: 2rem;
    }
    
    .theme-atmospheric .site-header h1 {
        font-size: 2.5rem;
    }
    
    .theme-dynamic .form-card {
        padding: 20px;
    }
    
    .theme-professional .form-card {
        padding: 15px;
    }
}

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

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

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

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

.animate-slideIn {
    animation: slideIn 0.5s ease forwards;
}

/* 添加旅游图标特效 */
.form-label:hover .travel-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* 风格切换按钮样式 */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.theme-switcher-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.theme-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #333;
}

.theme-btn-atmospheric {
    background: linear-gradient(45deg, #2b7bcd, #34a853);
}

.theme-btn-clean {
    background: white;
    border-color: #e0e0e0;
}

.theme-btn-artistic {
    background: #f5f0e5;
    border-color: #9b8b75;
}

.theme-btn-dynamic {
    background: linear-gradient(45deg, #8e44ad, #ff6b9e);
}

.theme-btn-professional {
    background: #183153;
}

/* 图标内容 */
.theme-btn i {
    color: white;
    font-size: 1rem;
}

.theme-btn-clean i {
    color: #2b7bcd;
}

.theme-btn-artistic i {
    color: #5c4f3d;
}

/* 打印样式 */
@media print {
    body {
        background-color: white;
        background-image: none;
        padding: 0;
    }
    
    .theme-switcher,
    .form-card, 
    #loading, 
    .btn-print {
        display: none !important;
    }
    
    .result-card {
        display: block !important;
        box-shadow: none;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
    }
}

/* 日期选择器样式适配 */
.flatpickr-calendar {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.theme-atmospheric .flatpickr-calendar .flatpickr-month {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.theme-clean .flatpickr-calendar .flatpickr-month {
    background-color: var(--primary-color);
}

.theme-artistic .flatpickr-calendar .flatpickr-month {
    background-color: #9b8b75;
}

.theme-dynamic .flatpickr-calendar .flatpickr-month {
    background: linear-gradient(90deg, var(--vibrant-purple), var(--vibrant-pink));
}

.theme-professional .flatpickr-calendar .flatpickr-month {
    background-color: var(--dark-blue);
}

/* 模态框样式适配 */
.theme-atmospheric .modal-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.theme-clean .modal-header {
    background-color: var(--primary-color);
}

.theme-artistic .modal-header {
    background-color: #9b8b75;
}

.theme-dynamic .modal-header {
    background: linear-gradient(90deg, var(--vibrant-purple), var(--vibrant-pink));
}

.theme-professional .modal-header {
    background-color: var(--dark-blue);
} 