/* ==================== 全局变量 ==================== */
:root {
    --primary-color: #10b981;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --bg-white: #ffffff;
    --bg-light: #fef5f8;
    --bg-dark: #1f2937;
    --text-dark: #111827;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fef5f8 0%, #f0fdf4 25%, #eff6ff 50%, #fef5f8 75%, #fef3f9 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 70px; /* 为移动端底部导航留空间 */
}

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

/* ==================== 顶部导航栏（桌面端） ==================== */
.desktop-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    display: none;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

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

.desktop-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--bg-light);
}

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

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

/* ==================== 底部导航栏（移动端） ==================== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 12px;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 12px;
}

/* ==================== 主内容区 ==================== */
.main-content {
    padding-top: 16px;
    min-height: calc(100vh - 70px);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    text-align: center;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== 页面1: 灵感与探索 ==================== */
.search-section {
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 24px;
    padding: 12px 20px;
    box-shadow: var(--shadow);
}

.search-icon {
    font-size: 20px;
    margin-right: 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.quick-tags {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.quick-tags::-webkit-scrollbar {
    display: none;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.tag:hover,
.tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 瀑布流布局 */
.attractions-masonry {
    column-count: 1;
    column-gap: 16px;
}

.attraction-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    break-inside: avoid;
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

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

.attraction-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.attraction-content {
    padding: 16px;
}

.attraction-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attraction-category {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.attraction-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.attraction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attraction-tag {
    padding: 4px 8px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 12px;
}

.load-more {
    text-align: center;
    margin: 32px 0;
}

.btn-load-more {
    padding: 12px 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* ==================== 页面2: 智能行程规划 ==================== */
.planner-input-section {
    margin-bottom: 32px;
}

.input-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.input-card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.input-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 16px;
}

.btn-generate {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.quick-templates h4 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

.template-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ecfdf5, #dbeafe);
}

.template-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.template-name {
    font-weight: 500;
    color: var(--text-dark);
}

.planner-result {
    display: none;
}

.planner-result.active {
    display: block;
}

/* ==================== 页面3: AI创意工坊 ==================== */
.ai-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.tool-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.tool-card.available:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ecfdf5, #dbeafe);
}

.tool-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tool-card.available .tool-badge {
    background: #d1fae5;
    color: #065f46;
}

.tool-card.coming-soon .tool-badge {
    background: #fef3c7;
    color: #92400e;
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.tool-card h3 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== 页面4: 雁山志 ==================== */
.heritage-section {
    margin-bottom: 48px;
}

.heritage-section h2 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.section-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}

.map-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-light);
}

.map-hint {
    margin-top: 8px;
    font-size: 14px;
}

.btn-share-story {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 24px;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.story-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.story-username {
    font-weight: 600;
}

.story-time {
    font-size: 12px;
    color: var(--text-light);
}

.story-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.story-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.story-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 页面5: 雁荐客服务广场 ==================== */
.service-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding: 8px 0;
}

.category-btn {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

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

.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 16px;
}

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

.service-header h3 {
    font-size: 18px;
}

.service-rating {
    color: var(--accent-color);
    font-weight: 600;
}

.service-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-contact {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--secondary-color);
}

/* ==================== 页面6: 个人中心 ==================== */
.profile-header {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-light);
    font-size: 14px;
}

.btn-edit-profile {
    padding: 8px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.profile-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.profile-section h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.profile-settings {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.setting-item.logout {
    color: #ef4444;
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    margin: 20px;
}

.modal-close {
    position: sticky;
    top: 12px;
    right: 12px;
    float: right;
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
}

/* ==================== 响应式设计 ==================== */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .desktop-header {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

    .main-content {
        padding-top: 24px;
    }

    .attractions-masonry {
        column-count: 2;
    }

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

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

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

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

@media (min-width: 1024px) {
    .attractions-masonry {
        column-count: 3;
    }

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

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

/* 限制景点描述文字行数 */
.attraction-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    min-height: 3em;
    margin-bottom: 12px;
}

/* 统一卡片最小高度 */
.attraction-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.attraction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.attraction-footer {
    margin-top: auto;
}

/* 限制标签区域高度 */
.attraction-tags {
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

.attraction-tags .tag {
    white-space: nowrap;
}

/* ==================== Hero Banner ==================== */
.hero-banner {
    position: relative;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%, 
        rgba(59, 130, 246, 0.1) 50%, 
        rgba(244, 114, 182, 0.1) 100%);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
    font-weight: 500;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    filter: blur(40px);
}

.decoration-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.decoration-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* ==================== 美化景点卡片文字 ==================== */
.attraction-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.attraction-info p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.attraction-tags .tag {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.attraction-tags .tag:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}


.attraction-footer .price {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.5px;
}

.attraction-footer .btn-primary {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* 景点卡片图片样式 */
.attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== 行程规划页面样式 ==================== */

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

.itinerary-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.itinerary-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.input-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.input-label {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itinerary-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    font-family: inherit;
}

.itinerary-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-generate {
    width: 100%;
    padding: 16px 32px;
    margin-top: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.templates-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.template-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid transparent;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.template-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.template-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.itinerary-result {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.result-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.btn-secondary {
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.result-content {
    line-height: 1.8;
    color: #4a5568;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    color: white;
    font-size: 18px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .templates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .itinerary-header h1 {
        font-size: 40px;
    }
}

/* 行程规划结果样式 */
.planner-result {
    display: none;
    margin-top: 32px;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.result-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.result-content {
    line-height: 1.8;
    color: #4a5568;
}

.itinerary-content {
    font-size: 15px;
}

.itinerary-title {
    color: #667eea;
    font-size: 24px;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.itinerary-subtitle {
    color: #2d3748;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
}

.itinerary-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.itinerary-content li {
    margin: 8px 0;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-state p {
    color: #718096;
    font-size: 16px;
    margin-top: 20px;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
}

.error-state p {
    color: #e53e3e;
    font-size: 18px;
    margin-bottom: 20px;
}

/* 行程规划结果样式 */
.result-content {
    line-height: 1.4;
    padding: 20px;
}

.result-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.result-content h2 {
    margin: 15px 0 8px 0;
    font-size: 1.3em;
}

.result-content h3 {
    margin: 12px 0 6px 0;
    font-size: 1.1em;
}

.result-content strong {
    color: #2c5f2d;
    font-weight: 600;
}

.result-content li {
    margin: 4px 0;
    line-height: 1.5;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.result-header h3 {
    margin: 0;
    font-size: 1.2em;
}

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

.header-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    font-size: 0.9em;
}

.header-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 20px;
    overflow: hidden;
}

.itinerary-content {
    font-size: 0.95em;
}
/* ==================== AI工坊模态框样式 ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* ==================== 工具界面 ==================== */

.tool-interface {
    padding: 40px;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-icon-large {
    font-size: 60px;
    margin-bottom: 15px;
}

.tool-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.tool-description {
    color: #666;
    font-size: 16px;
}

/* ==================== 上传区域 ==================== */

.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f0f9f0;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-area p {
    margin: 5px 0;
    color: #666;
}

.upload-hint {
    font-size: 14px;
    color: #999;
}

.image-preview {
    margin-top: 20px;
    display: none;
}

.image-preview img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.images-preview {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.images-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== 风格选择器 ==================== */

.style-selector {
    margin-bottom: 30px;
}

.style-selector h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.style-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.style-btn:hover {
    border-color: #4CAF50;
    background: #f0f9f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.style-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.style-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.style-desc {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ==================== 表单区域 ==================== */

.form-section {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* ==================== 按钮 ==================== */

.btn-generate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-generate span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==================== 加载状态 ==================== */

.loading-container {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #666;
    margin: 10px 0;
}

.text-sm {
    font-size: 14px;
}

.text-gray-500 {
    color: #999;
}

.text-gray-400 {
    color: #bbb;
}

/* ==================== 结果展示 ==================== */

.result-container {
    margin-top: 20px;
}

.attraction-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.attraction-info p {
    margin: 0;
    color: #1976d2;
    font-size: 14px;
}

.result-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card h2,
.result-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.result-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.travel-note-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.travel-note-content p {
    margin-bottom: 15px;
}

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

.btn-download,
.btn-share {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download {
    background: #4CAF50;
    color: white;
}

.btn-download:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-share {
    background: #2196F3;
    color: white;
}

.btn-share:hover {
    background: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* ==================== 错误提示 ==================== */

.error-message {
    background: #ffebee;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.error-message p {
    color: #c62828;
    margin-bottom: 15px;
}

.btn-retry {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retry:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 90vh;
        -webkit-overflow-scrolling: touch;
    }
    .modal-close {
        top: 60px;
        right: 16px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
    }
    
    
    .tool-interface {
        padding: 20px;
    }
    
    .tool-icon-large {
        font-size: 48px;
    }
    
    .tool-header h2 {
        font-size: 24px;
    }
    
    .style-buttons {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

/* ==================== AI梦境生成器样式 ==================== */

.template-selector {
    margin: 20px 0;
}

.template-selector h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.template-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-btn:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.template-btn.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.template-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.template-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.template-desc {
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

.template-btn.active .template-desc {
    opacity: 0.9;
}


/* ==================== 阮策.语音翻译器样式 ==================== */

.translator-interface {
    padding: 0;
}

.translator-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.translator-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.translator-header h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.translator-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.translator-content {
    padding: 40px;
}

.qrcode-section {
    text-align: center;
    margin-bottom: 30px;
}

.qrcode-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.qrcode-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qrcode-image {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.qrcode-hint {
    margin: 15px 0 0 0;
    font-size: 14px;
    color: #666;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    display: inline-block;
    padding: 0 20px;
    background: white;
    color: #999;
    font-size: 14px;
}

.web-section {
    text-align: center;
    margin-bottom: 40px;
}

.web-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.web-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.web-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    min-width: 250px;
}

.web-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.web-button .arrow {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s;
}

.web-button:hover .arrow {
    transform: translateX(5px);
}

.features-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.features-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.feature-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .translator-content {
        padding: 30px 20px;
    }
    
    .qrcode-image {
        width: 180px;
        height: 180px;
    }
    
    .web-button {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* ==================== 雁荡山环境音收藏馆样式 ==================== */

.ambient-sounds-interface {
    padding: 0;
}

.ambient-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.ambient-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.ambient-header h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ambient-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.ambient-content {
    padding: 30px;
}

.ambient-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
    flex-wrap: wrap;
    gap: 15px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
}

.player-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

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

.player-controls {
    display: flex;
    gap: 10px;
}

.player-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.player-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-timer label {
    font-size: 14px;
}

.player-timer select {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.sounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sound-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.sound-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.sound-card.playing {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.sound-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.sound-info {
    flex: 1;
}

.sound-info h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.sound-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.sound-play-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.sound-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.play-icon {
    display: inline-block;
}

.ambient-tips {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.ambient-tips h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.ambient-tips ul {
    margin: 0;
    padding-left: 20px;
}

.ambient-tips li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .ambient-content {
        padding: 20px;
    }
    
    .sounds-grid {
        grid-template-columns: 1fr;
    }
    
    .ambient-player {
        flex-direction: column;
        align-items: stretch;
    }
    
    .player-info,
    .player-controls,
    .player-timer {
        justify-content: center;
    }
}

/* ==================== 音频上传管理面板样式 ==================== */

.upload-manage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.upload-manage-btn:active {
    transform: translateY(0);
}

.upload-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.upload-panel {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.upload-panel-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upload-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.upload-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upload-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.upload-panel-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.upload-tips {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.upload-tips p {
    margin: 0 0 8px 0;
    color: #333;
}

.upload-tips ul {
    margin: 0;
    padding-left: 20px;
}

.upload-tips li {
    color: #666;
    margin: 4px 0;
    font-size: 14px;
}

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.upload-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.upload-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-text strong {
    font-size: 16px;
    color: #333;
}

.upload-filename {
    font-size: 13px;
    color: #666;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.upload-item-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-select-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.upload-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.upload-select-btn:active {
    transform: translateY(0);
}

.upload-status {
    font-size: 14px;
    color: #999;
    min-width: 80px;
    text-align: right;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .upload-panel {
        width: 95%;
        max-height: 90vh;
    }
    
    .upload-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .upload-item-action {
        width: 100%;
        justify-content: space-between;
    }
    
    .upload-select-btn {
        flex: 1;
    }
    
    .ambient-header > div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .upload-manage-btn {
        width: 100%;
        justify-content: center;
    }
}

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

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

/* ==================== AI雁荡山节日贺卡生成器样式 ==================== */

.postcard-interface {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.postcard-header {
    text-align: center;
    margin-bottom: 30px;
}

.postcard-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.postcard-header h2 {
    font-size: 32px;
    color: #333;
    margin: 0 0 8px 0;
}

.postcard-subtitle {
    font-size: 16px;
    color: #666;
}

.postcard-content {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 40px;
    align-items: start;
}

.postcard-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.postcard-step {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.step-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 48px;
}

.upload-placeholder p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.upload-placeholder span {
    font-size: 14px;
    color: #999;
}

/* 主题选择器 */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-option {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.theme-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.theme-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.theme-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.theme-option span {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 模板选择器 */
.template-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.template-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.template-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.template-preview {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 祝福语输入 */
.greeting-input-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.greeting-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

.greeting-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.preset-greetings {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f0f4ff;
}

/* 生成按钮 */
.generate-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.generate-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 24px;
}

.generate-tips {
    background: #f0f4ff;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.generate-tips p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 预览区域 */
.postcard-preview-area {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.postcard-preview-area h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.preview-container {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

#postcardCanvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.preview-status {
    margin-top: 16px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 8px;
    text-align: center;
}

.preview-status p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 移动端适配 */
@media (max-width: 1200px) {
    .postcard-content {
        grid-template-columns: 1fr;
    }
    
    .postcard-preview-area {
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .theme-selector {
        grid-template-columns: 1fr;
    }
    
    .postcard-icon {
        font-size: 48px;
    }
    
    .postcard-header h2 {
        font-size: 24px;
    }
    
    #postcardCanvas {
        width: 100%;
    }
}


/* --- 卡片高度统一修复 --- */
.attraction-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保卡片本身占满父容器高度 */
}

.attraction-card-content {
    flex-grow: 1; /* 确保内容区域填充剩余空间 */
    min-height: 150px; /* 设定一个最小高度，防止内容过少时卡片塌陷 */
}

/* 如果卡片是直接的 div 元素，尝试这个 */
.grid-container > div {
    min-height: 450px; /* 尝试一个固定的高度，您可能需要根据实际情况调整这个值 */
    height: auto;
}


/* --- Logo 尺寸修复 --- */
.logo-img {
    height: 32px; /* 设置合适的高度 */
    width: auto; /* 保持图片比例 */
    vertical-align: middle; /* 垂直居中对齐 */
    margin-right: 8px; /* 与文字保持间距 */
}


/* --- Logo 尺寸和清晰度修复 --- */
.logo-img {
    vertical-align: middle;
    margin-right: 8px;
}

.logo {
    display: flex;
    align-items: center; /* 确保 Logo 和文字垂直居中对齐 */
}


/* --- Logo 尺寸和清晰度修复 --- */
.logo-img {
    height: 40px !important; /* 增大高度，确保清晰度 */
    width: auto !important; /* 保持图片比例 */
    vertical-align: middle;
    margin-right: 8px;
}

.logo {
    display: flex;
    align-items: center; /* 确保 Logo 和文字垂直居中对齐 */
}


/* --- Logo 对比度增强 --- */
.logo-img {
    height: 48px !important; /* 进一步增大高度 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* 添加阴影以增强对比度 */
    border-radius: 4px; /* 柔化边缘 */
}


/* --- 最终 Logo 尺寸和导航栏背景调整 --- */
.logo-img {
    height: 56px !important; /* 最终增大高度 */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2); /* 保持阴影 */
    border-radius: 4px; /* 保持圆角 */
}

.navbar {
    background-color: #FFF0F5 !important; /* 导航栏背景改为浅粉色，增强对比 */
}


/* --- 导航栏背景色调整为枫红色调 --- */
.navbar {
    background-color: #FDF5E6 !important; /* 调整为浅米色/枫红色调 */
}



/* ==================== 时光倒流 - 地质演变展览厅 ==================== */

/* 基础样式 */
.time-rewind-exhibition {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #e8f5f7 0%, #f3e5f5 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.exhibition-header {
  text-align: center;
  margin-bottom: 24px;
}

.exhibition-title {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  letter-spacing: 2px;
}

.exhibition-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.attraction-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.nav-btn {
  padding: 12px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.nav-btn:hover {
  border-color: #00bcd4;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.15);
  transform: translateY(-2px);
}

.nav-btn.active {
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  color: white;
  border-color: #0097a7;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.nav-icon {
  font-size: 20px;
}

.nav-name {
  font-weight: 600;
}

.timeline-wrapper {
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-container {
  position: relative;
  height: 80px;
}

.timeline-track {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
}

.timeline-progress {
  height: 100%;
  background: linear-gradient(90deg, #00bcd4 0%, #0097a7 100%);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.timeline-points {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.timeline-point {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.point-dot {
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-top: 22px;
}

.timeline-point:hover .point-dot {
  border-color: #00bcd4;
  transform: scale(1.2);
}

.timeline-point.active .point-dot {
  background: #00bcd4;
  border-color: #0097a7;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
  transform: scale(1.3);
}

.point-label {
  position: absolute;
  top: 50px;
  white-space: nowrap;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.exhibition-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.image-container {
  position: relative;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  aspect-ratio: 4 / 3;
}

.image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 16px;
  color: white;
}

.image-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.image-period {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
}

.info-container {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  max-height: 280px;
}

.info-item {
  margin-bottom: 16px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-title {
  font-size: 13px;
  font-weight: bold;
  color: #00bcd4;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-content {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.info-list li {
  margin-bottom: 6px;
}

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

.keyword {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f8ff;
  border: 1px solid #00bcd4;
  border-radius: 12px;
  font-size: 12px;
  color: #00bcd4;
  font-weight: 500;
}

.control-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.control-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.control-btn:active {
  transform: translateY(0);
}

.control-btn.playing {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

@media (max-width: 1024px) {
  .exhibition-content {
    grid-template-columns: 1fr;
  }
  .info-container {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .time-rewind-exhibition {
    padding: 16px;
  }
  .exhibition-title {
    font-size: 24px;
  }
  .attraction-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .image-container {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .time-rewind-exhibition {
    padding: 12px;
  }
  .exhibition-title {
    font-size: 20px;
  }
  .attraction-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .image-container {
    aspect-ratio: 4 / 3;
    max-height: 250px;
  }
  .exhibition-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-btn {
    padding: 8px 10px;
    font-size: 11px;
  }
}
