* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif TC', serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

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

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

/* 分頁導航 */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Noto Serif TC', serif;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #333;
    background-color: #f5f5f5;
}

.tab-btn.active {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
    font-weight: 600;
}

/* 分頁內容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.image-section {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    display: block;
}

.nav-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    margin: 0 15px;
    user-select: none;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.nav-btn:active {
    background-color: rgba(0, 0, 0, 0.9);
}

.image-counter {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    color: #666;
}

.image-credit {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.info-section {
    max-width: 900px;
    margin: 0 auto 40px;
}

.weather-info,
.traffic-info {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.weather-info h2,
.traffic-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

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

.info-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.info-item .label {
    font-weight: 500;
    color: #666;
    margin-right: 8px;
}

.info-item .value {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.export-section {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.export-btn,
.share-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Noto Serif TC', serif;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.share-btn {
    background-color: #50c878;
}

.export-btn:hover {
    background-color: #357abd;
}

.share-btn:hover {
    background-color: #45b069;
}

.export-btn:active {
    background-color: #2868a0;
}

.share-btn:active {
    background-color: #3a9d58;
}

/* 天氣預報樣式 */
.forecast-section {
    max-width: 900px;
    margin: 0 auto;
}

.forecast-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.forecast-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.forecast-date {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.forecast-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.forecast-weather {
    font-size: 1.1rem;
    color: #4a90e2;
    font-weight: 600;
    margin: 10px 0;
}

.forecast-temp {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.forecast-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.6;
}

.forecast-details div {
    margin: 5px 0;
}

/* 景點樣式 */
.attractions-section {
    max-width: 1200px;
    margin: 0 auto;
}

.attractions-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}

.attractions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.attraction-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.attraction-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.attraction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attraction-content {
    padding: 20px;
}

.attraction-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.attraction-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.attraction-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.attraction-details div {
    font-size: 0.95rem;
    color: #555;
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.attraction-details strong {
    color: #333;
    margin-right: 8px;
    min-width: 60px;
}

.attraction-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.feature-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 景點推薦按鈕 */
.attraction-recommend-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.recommend-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Noto Serif TC', serif;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recommend-btn:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.recommend-btn:active {
    background-color: #e65100;
    transform: translateY(0);
}

/* 頁尾樣式 */
.site-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.footer-email {
    font-size: 1rem;
}

.footer-email a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .slider-container {
        padding: 10px 0;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        margin: 0 10px;
    }

    .image-wrapper img {
        max-height: 400px;
    }

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

    .weather-info,
    .traffic-info {
        padding: 20px;
    }

    .export-btn,
    .share-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .export-section {
        flex-direction: column;
        align-items: center;
    }

    .tab-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .forecast-container {
        grid-template-columns: 1fr;
    }

    .attractions-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        margin: 0 5px;
    }

    .image-wrapper img {
        max-height: 300px;
    }
}

