/* ============================================
   基礎設定與變數
   ============================================ */
:root {
    --primary-color: #2C4A3E;
    --secondary-color: #3D6B57;
    --accent-color: #E07A5F;
    --text-color: #2A2A2A;
    --text-light: #6B6760;
    --bg-color: #FDFBF7;
    --bg-light: #F5F0E8;
    --bg-gradient: #FDFBF7;
    --border-color: #D9D3C8;
    --shadow: 0 2px 10px rgba(44, 74, 62, 0.08);
    --shadow-hover: 0 4px 20px rgba(44, 74, 62, 0.14);
    --shadow-card: 0 8px 30px rgba(44, 74, 62, 0.10);
    --transition: all 0.3s ease;
    --font-family: 'Noto Sans TC', sans-serif;
    --font-serif: 'Noto Serif TC', serif;
    --header-offset: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-color);
    position: relative;
}

.main-content {
    position: relative;
    z-index: 1;
    padding-top: var(--header-offset);
}

body:not(.is-home) .main-content {
    padding-top: calc(var(--header-offset) - 70px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   導航欄
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
    order: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    order: 2;
    white-space: nowrap;
    line-height: 1;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-marquee {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow);
}

.marquee-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.nav-marquee__label {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nav-marquee__viewport {
    overflow: hidden;
    flex: 1;
}

.nav-marquee__track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    min-width: 100%;
    transform: translateX(0);
}

.nav-marquee__track span {
    display: inline-block;
}

/* ============================================
   Hero Section
   ============================================ */
/* ============================================
   標題圖片背景區域
   ============================================ */
.header-banner {
    position: relative;
    width: 100%;
    margin-top: var(--header-offset);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 100%;
    height: 150px;
    min-height: 150px;
    background-image: url('../old_web/default.files/image001.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-light);
    position: relative;
}

.banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 74, 62, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   按鈕
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #c96a52;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   區塊樣式
   ============================================ */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(224, 122, 95, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* ============================================
   關於我們
   ============================================ */
.about-section {
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.responsive-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 3px solid rgba(245, 240, 232, 0.8);
}

.responsive-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   服務項目
   ============================================ */
.services-section {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
    background: var(--bg-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(224, 122, 95, 0.3));
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   圖片展示
   ============================================ */
.gallery-section {
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    background: var(--bg-color);
    transition: var(--transition);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 74, 62, 0.9) 0%, rgba(61, 107, 87, 0.7) 50%, transparent 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

/* DM 圖片完整顯示 */
.dm-img {
    height: auto;
    max-height: 800px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
}

/* 歷史 DM 小圖 */
.history-dm-section {
    background: var(--bg-light);
    padding: 3rem 0 6rem;
}

#current-dm-section[hidden] + .history-dm-section {
    margin-top: 70px;
}

#current-dm-section:not([hidden]) + .history-dm-section {
    padding-top: 0;
}

.history-dm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.history-dm-empty {
    color: var(--text-light);
    text-align: center;
    width: 100%;
}

.history-dm-thumb {
    flex: 0 0 auto;
    width: 120px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.history-dm-thumb:hover,
.history-dm-thumb:focus-visible {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    outline: none;
}

.history-dm-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.history-dm-thumb__label {
    padding: 0.5rem 0.35rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-align: center;
    background: var(--bg-color);
}

/* DM Lightbox */
.dm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.dm-lightbox[hidden] {
    display: none;
}

.dm-lightbox-open {
    overflow: hidden;
}

.dm-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 74, 62, 0.85);
}

.dm-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 900px);
    max-height: 92vh;
    background: var(--bg-color);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.dm-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.dm-lightbox__close:hover {
    background: var(--accent-color);
}

.dm-lightbox__image {
    max-width: 100%;
    max-height: calc(92vh - 5rem);
    object-fit: contain;
    border-radius: 8px;
}

.dm-lightbox__caption {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .history-dm-grid {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .history-dm-thumb {
        width: 90px;
    }

    .history-dm-thumb img {
        height: 120px;
    }

    .dm-lightbox {
        padding: 1rem;
    }
}

/* 圖片輪播 */
.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

.gallery-window {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    background: var(--bg-color);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(44, 74, 62, 0.85);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 5;
}

.gallery-nav:hover {
    background: rgba(224, 122, 95, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cfd8dc;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gallery-carousel {
        padding: 0 1.5rem;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

/* ============================================
   頁尾
   ============================================ */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 122, 95, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: white;
    opacity: 0.9;
}

.contact-info a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.qr-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ============================================
   動畫
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加淡入动画到卡片 */
.services-grid .service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }

.gallery-grid .gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.gallery-grid .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-grid .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-grid .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-grid .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-grid .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-grid .gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   響應式設計 (RWD)
   ============================================ */

/* 平板 (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-offset: 120px;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* 手機 (最大 768px) */
@media (max-width: 768px) {
    :root {
        --header-offset: 150px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-offset);
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: var(--transition);
        gap: 0;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* 小手機 (最大 480px) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   表單樣式
   ============================================ */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.download-container {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.download-intro {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.download-intro .hint {
    color: var(--secondary-color);
    font-weight: 600;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    gap: 0.75rem;
    transition: var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
    border-color: rgba(44, 74, 62, 0.2);
}

.download-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.download-card h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.download-card p {
    margin: 0;
    color: var(--text-light);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: var(--primary-color);
    color: white;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
    background: rgba(44, 74, 62, 0.08);
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 74, 62, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   路線頁面樣式
   ============================================ */
.route-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.route-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.route-info {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.route-info h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.route-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.route-item:last-child {
    border-bottom: none;
}

.route-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.route-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.map-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.address-info {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 2px solid rgba(224, 122, 95, 0.15);
    transition: var(--transition);
}

.address-info:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.address-info h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-details p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* ============================================
   體驗與產品卡片樣式
   ============================================ */
.experience-grid,
.products-grid,
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-card,
.product-card,
.plant-card {
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.experience-card:hover,
.product-card:hover,
.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.experience-img,
.product-img,
.plant-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.experience-card:hover .experience-img,
.product-card:hover .product-img,
.plant-card:hover .plant-img {
    transform: scale(1.05);
}

.experience-content,
.product-info,
.plant-info {
    padding: 1.5rem;
}

.experience-content h3,
.product-info h3,
.plant-info h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.experience-content p,
.product-info p,
.plant-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   表單驗證樣式
   ============================================ */
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.was-validated .form-group input:invalid,
.was-validated .form-group textarea:invalid {
    border-color: #dc3545;
}

.was-validated .form-group input:valid,
.was-validated .form-group textarea:valid {
    border-color: #28a745;
}

/* 列印樣式 */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        height: auto;
        padding: 2rem 0;
    }
}

/* ============================================
   響應式設計 - 其他頁面
   ============================================ */
@media (max-width: 1024px) {
    .route-map-grid,
    .contact-map-grid,
    .map-content {
        grid-template-columns: 1fr;
    }
    
    .experience-grid,
    .products-grid,
    .plants-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .route-info,
    .address-info {
        padding: 1.5rem;
    }
    
    .experience-grid,
    .products-grid,
    .plants-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 300px;
    }
}
