/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    /* 無障礙設計：確保足夠的對比度 */
    scroll-behavior: smooth;
}

/* 無障礙設計：焦點樣式 */
*:focus {
    outline: 2px solid #c6a777;
    outline-offset: 2px;
}

/* 無障礙設計：跳過導航連結 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #c6a777;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Navigation */
.navbar {
    background-color: #070322;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    position: relative;
}

.nav-menu-right {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.nav-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    margin: 0 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo-center .logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo h2 {
    display: inline-block;
    vertical-align: middle;
    font-size: 24px;
    font-weight: bold;
    color: #c6a777;
    margin: 0;
}

/* 導航欄中的 h1 樣式，跟隨 h2 的樣式 */
.nav-logo h1.section-title {
    display: inline-block;
    vertical-align: middle;
    font-size: 24px;
    font-weight: bold;
    color: #c6a777;
    margin: 0;
    text-align: left;
    position: static;
}

.nav-logo h1.section-title::after {
    display: none;
}



.logo-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #c6a777;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #c6a777;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.prev-btn, .next-btn {
    background-color: rgba(199, 167, 119, 0.7);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(199, 167, 119, 0.9);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #c6a777;
}

/* Common Section Styles */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #070322;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #c6a777;
}

/* Wineries Section */
.wineries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.winery-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.winery-card:hover {
    transform: translateY(-5px);
}

.winery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.winery-info {
    padding: 20px;
}

.winery-info h3 {
    color: #070322;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.winery-info p {
    color: #666;
    line-height: 1.6;
}

/* Wines Section */
.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.wine-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wine-card:hover {
    transform: translateY(-5px);
}

.wine-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
}

.wine-info {
    padding: 20px;
}

.wine-info h3 {
    color: #070322;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.wine-info .price {
    color: #c6a777;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.wine-info p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.awards-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.awards-header {
    margin-bottom: 5px;
}

.awards-count {
    font-size: 0.75rem;
    color: #c6a777;
    font-weight: bold;
    background: rgba(198, 167, 119, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.wine-info .award {
    display: flex;
    align-items: center;
    text-align: left;
    background: linear-gradient(135deg, #c6a777, #d4b88a);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(198, 167, 119, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
}
.award-icon {
    margin-right: 8px;
    font-size: 1.1em;
    flex-shrink: 0;
}
.award-text {
    flex: 1;
    text-align: left;
}

.wine-info .award:hover {
    background: linear-gradient(135deg, #d4b88a, #c6a777);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 167, 119, 0.4);
}

.wine-details-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #555;
}

.wine-details-toggle:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border-color: #c6a777;
}

.wine-details-toggle.active {
    background: linear-gradient(135deg, #c6a777, #d4b88a);
    color: white;
    border-color: #c6a777;
}

.toggle-text {
    font-weight: 500;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.wine-details {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    animation: slideDown 0.3s ease;
}

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

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.detail-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    flex-shrink: 0;
    line-height: 1.2;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-item:hover {
    background: #f0f0f0;
}

.detail-label {
    font-weight: bold;
    color: #c6a777;
    min-width: 60px;
    margin-right: 10px;
    font-size: 0.85rem;
}

.detail-value {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

/* Custom Section */
.custom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.custom-text h3 {
    color: #070322;
    font-size: 2rem;
    margin-bottom: 20px;
}

.custom-text p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.custom-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.custom-text li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.custom-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c6a777;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background-color: #c6a777;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #a8956a;
}

.custom-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3,
.contact-form h3 {
    color: #070322;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 15px;
}

.contact-item strong {
    color: #c6a777;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.submit-btn {
    background-color: #c6a777;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #a8956a;
}

.contact-extra {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px 20px;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.contact-extra h3 {
    color: #070322;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-extra ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-extra li {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.contact-extra li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c6a777;
    font-size: 1.2em;
    line-height: 1;
}

/* Footer */
.footer {
    background-color: #070322;
    color: #c6a777;
    padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #c6a777;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #c6a777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

.logo-img {
    width: 100px;
    height: 100px;
    vertical-align: middle;
    margin-right: 10px;
    display: inline-block;
    object-fit: contain;
}

.footer-bottom-img {
    width: 100vw;
    position: fixed;
    left: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    z-index: 9999;
    background: #070322;
}

.footer-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* 手機版 logo 調整 */
    .logo-img {
        width: 80px;
        height: 80px;
    }



    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background-color: #070322;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-logo-center {
        margin: 0 10px;
    }

    .nav-container {
        justify-content: space-between;
    }

    .nav-item {
        margin: 10px 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

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

    .custom-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-extra {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .wineries-grid,
    .wines-grid {
        grid-template-columns: 1fr;
    }

    .prev-btn, .next-btn {
        padding: 10px;
        font-size: 16px;
        width: 40px;
        height: 40px;
    }

    .hero-nav {
        padding: 0 10px;
    }
    
    .awards-container {
        gap: 6px;
    }
    
    .wine-info .award {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .detail-value {
        font-size: 0.8rem;
    }
    
    .wine-details-toggle {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .toggle-text {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* 小螢幕手機版 logo 調整 */
    .logo-img {
        width: 70px;
        height: 70px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .custom-text h3 {
        font-size: 1.5rem;
    }

    .prev-btn, .next-btn {
        padding: 8px;
        font-size: 14px;
        width: 36px;
        height: 36px;
    }
}