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

:root {
    --primary-color: #8256ea;
    --secondary-color: #7c3aed;
    --accent-color: #d97706;
    --gold-color: #d4a574;  
    --gold-light: #e5b887;
    --purple-dark: #5b21b6;
    --purple-light: #a78bfa;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #faf5ff;
    --white: #ffffff;
    --shadow: rgba(184, 134, 11, 0.15);
    --transition: all 0.3s ease;
    
    /* 統一間距系統 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
    
    /* 統一區塊間距 */
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* 導航欄 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar * {
    box-sizing: border-box;
}

/* 頂部工具列 */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.nav-top-left {
    color: var(--text-light);
}

.nav-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.search-toggle,
.login-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    font-size: 0.9rem;
    border-radius: 5px;
}

.search-toggle:hover,
.login-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 搜尋框 */
.search-box {
    display: none;
    background: var(--bg-light);
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.search-box.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: #9e8b62;
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: #b5a078;
}

.close-search {
    background: var(--text-light) !important;
    padding: 0.75rem 1rem !important;
}

.close-search:hover {
    background: var(--text-dark) !important;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.logo-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: var(--transition);
}

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

/* 下拉選單 */
.nav-menu li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 180px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

.dropdown-menu a::after {
    display: none;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-count {
    background: var(--gold-color);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    position: relative;
    padding: 10px;
    margin: -10px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 首頁大型輪播 Banner */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.4), rgba(91, 33, 182, 0.3));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.slide-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.slide-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gold-color);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.slide-description {
    font-size: 1.3rem;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--gold-color);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
}

.dot.active {
    background: var(--gold-color);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--gold-light);
}

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

/* 按鈕 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #9e8b62;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(158, 139, 98, 0.3);
}

.btn-primary:hover {
    background: #b5a078;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 139, 98, 0.4);
}

/* 區塊標題 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 關於我們 */
.about {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    text-align: justify;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* 營養是健康的根本 */
.nutrition-philosophy {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    margin-top: 4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.philosophy-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.philosophy-content h4 {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.philosophy-content p {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.philosophy-content ol {
    margin-left: 2rem;
    margin-top: 1.5rem;
}

.philosophy-content ol li {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.philosophy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 核心優勢特色 */
.core-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(107, 70, 193, 0.1);
}

.advantage-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.15);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    font-size: 3rem;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    background: rgba(107, 70, 193, 0.15);
    color: var(--secondary-color);
}

.advantage-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.company-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
    gap: 2rem;
}

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

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* 專業服務 */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(107, 70, 193, 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* OEM / ODM 流程 */
.oem {
    padding: 5rem 0;
    background: var(--bg-light);
}

.oem-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.oem-step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.35);
}

/* 公司理念 */
.philosophy {
    padding: 5rem 0;
    background: var(--bg-light);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.philosophy-item {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.15);
}

.philosophy-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.philosophy-item:hover .philosophy-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.philosophy-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.philosophy-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* 產品展示 */
.products {
    padding: var(--section-padding);
    background: var(--white);
}

.product-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 3rem;
}

.product-category {
    padding: 0.75rem 2rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.product-category:hover,
.product-category.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.product-image a {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.product-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.3s ease;
    z-index: 1;
}

.product-image:hover .product-image-overlay,
a.product-image:hover .product-image-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.product-image-overlay i {
    color: rgba(255, 255, 255, 0);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.product-image:hover .product-image-overlay i,
a.product-image:hover .product-image-overlay i {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.product-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(107, 70, 193, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.learn-more {
    width: 100%;
    padding: 10px;
    background: #9e8b62;
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(158, 139, 98, 0.3);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.learn-more:hover {
    background: #b5a078;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(158, 139, 98, 0.4);
}

/* 最新消息 */
.news {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.news-date {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--gold-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 1.5rem 1rem;
    font-weight: 600;
}

.news-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
}

.news-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* 聯絡我們 */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item h3 i {
    margin-right: 0.5rem;
    color: var(--gold-color);
}

.contact-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* 品牌展示 */
.brands {
    padding: var(--section-padding);
    background: var(--white);
}

.brand-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.brand-card {
    background: var(--bg-light);
    padding: 3rem 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.15);
}

.brand-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(107, 70, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.brand-card:hover .brand-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.brand-image {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.brand-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.brand-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.brand-card:hover .brand-image {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.2);
}

.brand-card:hover .brand-image img {
    transform: scale(1.05);
}

.brand-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.brand-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* 會員登入彈窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

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

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.login-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.divider {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    position: relative;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    background: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: var(--white);
    border-color: #1877f2;
}

.social-btn.google:hover {
    background: #db4437;
    color: var(--white);
    border-color: #db4437;
}

.register-link {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 通用頁面樣式 */
.page-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: block;
}

.page-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.3), rgba(91, 33, 182, 0.2));
    z-index: 1;
}

.page-header {
    background: var(--white);
    color: var(--text-dark);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.breadcrumb a {
    color: #d32f2f;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb span:last-child {
    color: var(--text-light);
}

/* 次級按鈕樣式 */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    background: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

/* 頁尾 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold-color);
    padding-left: 5px;
}

.contact-info-footer p {
    margin-bottom: 0.75rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-info-footer p i {
    margin-right: 0.5rem;
    color: var(--gold-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.4);
    border-left: 4px solid var(--gold-color);
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}

/* 浮動 LINE 官方帳號按鈕 */
.line-float-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1500;
    width: 60px;
    height: 60px;
    background: #06C755;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.line-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.6);
    background: #05B047;
}

.line-float-btn i {
    font-size: 32px;
    color: var(--white);
}

.line-float-btn .line-text {
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.line-float-btn:hover .line-text {
    opacity: 1;
    right: 75px;
}

/* 響應式設計 - 手機版統一優化 */
@media (max-width: 768px) {
    /* 容器統一調整 */
    .container {
        padding: 0 1rem;
    }

    /* 導航欄 */
    .nav-top {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .nav-top-left {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }

    .nav-top-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex !important;
        padding: 12px;
        margin: -12px;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        z-index: 1002 !important;
        position: relative !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* 確保漢堡選單在所有情況下都可見且可點擊 */
    .nav-wrapper .hamburger {
        order: 2;
    }
    
    .nav-wrapper .logo {
        order: 1;
    }
    
    .nav-wrapper .nav-menu {
        order: 3;
    }

    .logo-img {
        height: 35px;
        max-width: 100px;
        margin-right: 8px;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 5rem 0 2rem;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    /* 手機版選單背景遮罩 */
    .nav-menu::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: -1;
        pointer-events: none;
    }

    .nav-menu.active::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-menu > li > a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }

    /* 手機版下拉選單樣式 */
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        border-radius: 0;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .nav-menu .dropdown-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu .dropdown-menu a {
        padding: 0.75rem 3rem;
        text-align: left;
    }

    .nav-menu .dropdown > a {
        position: relative;
    }

    .nav-menu .dropdown > a i {
        position: absolute;
        right: 2rem;
        transition: transform 0.3s ease;
    }

    .nav-menu .dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Hero 輪播 */
    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .slide-subtitle {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .slide-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* 區塊標題 */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* 按鈕 */
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 10px 24px;
    }

    /* 頁面 Hero */
    .page-hero {
        height: 40vh;
        min-height: 300px;
        max-height: 400px;
    }

    .page-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* 頁面標題 */
    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .breadcrumb {
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }

    /* 統一區塊間距 - 手機版 */
    .about,
    .services,
    .products,
    .news,
    .contact,
    .brands,
    .about-page,
    .services-page,
    .products-page,
    .news-page,
    .contact-page,
    .lumbrokinase-page,
    .product-detail-page,
    .article-page {
        padding: var(--section-padding-mobile);
    }

    /* 關於我們 */
    .about-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .about-text-content,
    .philosophy-text-content {
        padding: 2rem 1.5rem;
    }

    .about-text-image,
    .philosophy-image {
        height: 250px;
        width: 100%;
    }

    .about-text,
    .nutrition-philosophy {
        flex-direction: column;
    }

    .nutrition-philosophy {
        padding: 2rem 1.5rem;
    }

    .philosophy-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .philosophy-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* 核心優勢 */
    .core-spirit-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .core-spirit-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .core-advantages {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .advantage-card {
        padding: 2rem 1.5rem;
    }

    .advantage-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .advantage-icon i {
        font-size: 2.5rem;
    }

    .advantage-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .advantage-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* 專業服務 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .services-hero {
        padding: 2rem 1.5rem;
        grid-template-columns: 1fr;
    }

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

    .hero-image img {
        margin: 0 auto;
        max-width: 100%;
    }

    .section-intro {
        padding: 2rem 1.5rem;
    }

    .section-intro h2 {
        font-size: 1.75rem;
    }

    .section-intro p {
        font-size: 1rem;
    }

    .oem-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .oem-step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .step-badge {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* 產品 */
    .product-categories {
        gap: 0.75rem;
        margin: 1.5rem 0 2rem;
    }

    .product-category {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .product-badge {
        font-size: 0.85rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.75rem;
    }

    .learn-more {
        display: none;
    }

    /* 產品詳情 */
    .product-detail-container,
    .article-container {
        padding: 2rem 1.5rem;
    }

    .product-detail-title,
    .article-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .product-detail-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .product-detail-description,
    .product-detail-full-description,
    .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .product-detail-images-grid,
    .article-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-detail-images-grid.two-images,
    .article-images-grid.two-images {
        grid-template-columns: 1fr;
    }

    .product-detail-footer,
    .article-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .btn-back,
    .btn-contact,
    .btn-share {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }

    /* 最新消息 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card {
        border-radius: 10px;
    }

    .news-item {
        padding: 1.5rem;
    }

    .news-item-header {
        flex-direction: column;
        margin-bottom: 1.25rem;
    }

    .news-item-date {
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
        margin-bottom: 1rem;
    }

    .news-item-date-day {
        font-size: 2rem;
    }

    .news-item-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .news-item-body {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .news-images-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-images-grid.two-images {
        grid-template-columns: 1fr;
    }

    .news-image-item {
        padding-top: 60%;
    }

    .news-item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .btn-read-more {
        width: 100%;
        justify-content: center;
    }

    /* 聯絡我們 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }

    .contact-item {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-item h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .contact-item p {
        font-size: 0.95rem;
    }

    .contact-map {
        min-height: 300px;
    }

    .contact-map iframe {
        min-height: 300px;
    }

    /* 品牌展示 */
    .brand-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brand-card {
        padding: 2rem 1.5rem;
    }

    .brand-image {
        max-width: 100%;
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .brand-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .brand-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* 公司理念 */
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .philosophy-item {
        padding: 2rem 1.5rem;
    }

    .philosophy-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .philosophy-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .philosophy-item p {
        font-size: 0.95rem;
    }

    /* 公司統計 */
    .company-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 0.95rem;
    }

    /* 關於蚓激酶 */
    .lumbrokinase-intro,
    .lumbrokinase-story {
        padding: 2rem 1.5rem;
    }

    .lumbrokinase-intro h2,
    .story-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .lumbrokinase-intro p,
    .story-content p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }

    .lumbrokinase-story {
        grid-template-columns: 1fr;
    }

    .professor-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .professor-image img {
        max-width: 250px;
    }

    /* 頁尾 */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }

    /* 購物車 */
    .cart-container {
        padding: 0 1rem;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.5rem 0.25rem;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .cart-summary {
        padding: 1.5rem;
    }

    #checkoutContent > div {
        grid-template-columns: 1fr !important;
    }

    /* 模態框 */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
    }

    .product-modal.active {
        padding: 1rem;
    }

    .product-modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .product-modal-name {
        font-size: 1.5rem;
    }

    .product-modal-description,
    .product-modal-full-description {
        font-size: 0.95rem;
    }

    .product-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
    }

    /* 搜尋框 */
    .search-form {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .search-form input {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .search-form button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* 圖片燈箱 */
    .lightbox-content {
        max-width: 95%;
        padding: 1rem;
    }

    .lightbox-close {
        top: -30px;
        right: 0;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    /* 手機版 LINE 按鈕調整 */
    .line-float-btn {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 80px;
    }

    .line-float-btn i {
        font-size: 26px;
    }

    .line-float-btn .line-text {
        display: none;
    }

    /* Toast 提示 */
    .toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 購物車頁面樣式 */
.cart-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.cart-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 3px 10px var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #9e8b62;
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: #b5a078;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.remove-btn {
    background: #dc3545;
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    background: #c82333;
}

.cart-summary {
    margin-top: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--gold-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 15px;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* 產品詳情模態框 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
}

.product-modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-modal.active .product-modal-content {
    transform: scale(1);
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10001;
    transition: var(--transition);
}

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

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2.5rem;
}

.product-modal-image {
    width: 100%;
}

.product-modal-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-modal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(107, 70, 193, 0.12);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 999px;
    width: fit-content;
    font-size: 0.9rem;
}

.product-modal-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.product-modal-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

.product-modal-full-description {
    color: var(--text-dark);
    line-height: 2;
    font-size: 1.05rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
    white-space: pre-line;
}

.product-modal-actions {
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .product-modal-body {
        grid-template-columns: 1fr;
    }
    .product-modal-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* 在手機版完全隱藏產品模態框 */
    #productModal,
    #productModal.product-modal,
    #productModal.product-modal.active,
    .product-modal,
    .product-modal.active {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

