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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 動態背景 */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 50%, #e0f2e0 100%);
    animation: bgMove 20s ease-in-out infinite;
}

/* logo樣式 */
.logo img {
  height: 45px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.inline-logo {
  height: 180px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes bgMove {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #2d5a2d;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a7c4a;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #4a7c4a;
}

.nav-menu a.active {
    color: #4a7c4a;
}

.nav-menu a.active::after {
    width: 100%;
}

/* 主要內容區域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

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

.page {
    display: none;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

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

/* 頁面標題 */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: white;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 3rem;
    color: #2d5a2d;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 卡片樣式 */
.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.card h3 {
    color: #2d5a2d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 格子佈局 */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

/* 產品卡片 */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #4a7c4a, #5a8c5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-price {
    color: #4a7c4a;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/*耕作者卡片*/
.producer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.producer-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
}

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

.producer-card .info {
    flex: 1;
}

.producer-card h4 {
    margin-bottom: 1rem;
    color: #4a7c4a;
}

.producer-card p {
    margin-bottom: 0.5rem;
}

.producer-card .contact {
    margin-top: 1rem;
    font-weight: bold;
}

.producer-card .photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.producer-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #4a7c4a, #5a8c5a);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 124, 74, 0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 74, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4a7c4a;
    border: 2px solid #4a7c4a;
}

.btn-outline:hover {
    background: #4a7c4a;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2d5a2d;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a7c4a;
}

/* 特色區塊 */
.feature-highlight {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(74, 124, 74, 0.1);
    margin: 2rem 0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* 時間軸樣式 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4a7c4a;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 55%;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 統計數據 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4a7c4a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1.1rem;
}

/* 頁尾 */
.footer {
    background: #2d5a2d;
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #a8d8a8;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #a8d8a8;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }

    .page-title {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 40px);
        left: 40px !important;
        text-align: left !important;
    }

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

/* 漢堡選單 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* 在原有的styles.css末尾添加以下樣式 */

/* 農遊體驗頁面專用樣式 */
.section-title {
    font-size: 2rem;
    color: #2d5a2d;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

/* 行程容器 */
.itinerary-container {
    margin-top: 2rem;
}

.day-block {
    margin-bottom: 3rem;
}

.day-title {
    font-size: 1.5rem;
    color: #4a7c4a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4a7c4a;
}

/* 垂直時間軸 */
.timeline-vertical {
    position: relative;
    padding-left: 40px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a7c4a;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-time {
    font-weight: bold;
    color: #4a7c4a;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #2d5a2d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 活動標籤 */
.activity-tags {
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    background: #e8f5e8;
    color: #4a7c4a;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
}

/* 行程特色 */
.itinerary-features {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.itinerary-features h3 {
    text-align: center;
    color: #2d5a2d;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

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

.feature-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    color: #4a7c4a;
    margin-bottom: 0.5rem;
}

/* 點位篩選按鈕 */
.location-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #4a7c4a;
    background: white;
    color: #4a7c4a;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: #4a7c4a;
    color: white;
}

.filter-btn.active {
    background: #4a7c4a;
    color: white;
}

/* 點位卡片網格 */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.location-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: #4a7c4a;
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-card h3 {
    color: #2d5a2d;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.location-category {
    color: #4a7c4a;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.location-service {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-detail {
    background: linear-gradient(45deg, #4a7c4a, #5a8c5a);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-detail:hover {
    transform: scale(1.05);
}

/* 彈出視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-header {
    background: linear-gradient(135deg, #4a7c4a, #5a8c5a);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.modal-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    color: #4a7c4a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section p {
    line-height: 1.8;
    color: #555;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a7c4a;
    font-weight: bold;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .timeline-vertical {
        padding-left: 25px;
    }
    
    .timeline-vertical::before {
        left: 10px;
    }
    
    .timeline-event::before {
        left: -25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .day-title {
        font-size: 1.2rem;
    }
}

/* 農產加工品專用樣式 */

/* 產品卡片照片樣式 */
.product-image-photo {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

/* 品牌名稱樣式 */
.brand-name {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

/* 產品詳情彈窗內的圖片 */
.product-detail-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 資訊網格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 10px;
}

.info-item {
    padding: 0.5rem;
}

.info-item strong {
    color: #4a7c4a;
    display: block;
    margin-bottom: 0.3rem;
}

/* 價格高亮 */
.price-highlight {
    color: #d84315;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 用途標籤 */
.usage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.usage-tags .tag {
    background: linear-gradient(135deg, #4a7c4a, #5a8c5a);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .product-detail-image {
        max-height: 250px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}