/* 重置和基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 澳門本土色彩主題 */
    --primary-gold: #D4AF37;
    --deep-gold: #B8860B;
    --rich-burgundy: #800020;
    --deep-brown: #3C2414;
    --cream-white: #FDF5E6;
    --warm-beige: #F5F5DC;
    --charcoal: #36454F;
    --silver: #C0C0C0;

    /* 字體 */
    --font-chinese: 'Noto Serif SC', serif;
    --font-english: 'Playfair Display', serif;

    /* 陰影 */
    --shadow-soft: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-deep: 0 8px 30px rgba(0,0,0,0.2);
    --shadow-inset: inset 0 2px 10px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-chinese);
    line-height: 1.7;
    color: var(--deep-brown);
    background: var(--cream-white);
    overflow-x: hidden;
}

/* 響應式容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導航欄 */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-gold);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* Logo 横向布局 */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    order: 1;
}

.logo-png {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    order: 2;
}

.logo-image {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter:
        brightness(0.5)
        sepia(100%)
        saturate(200%)
        hue-rotate(345deg)
        drop-shadow(1px 1px 2px rgba(0,0,0,0.1));
}

.logo-image:hover {
    transform: scale(1.05);
    filter:
        brightness(0)
        saturate(100%)
        invert(12%)
        sepia(89%)
        saturate(7497%)
        hue-rotate(357deg)
        brightness(95%)
        contrast(111%)
        drop-shadow(2px 2px 4px rgba(0,0,0,0.15));
}



.company-name, .company-name-pt {
    font-size: 0.75rem;
    color: var(--primary-gold);
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--deep-brown);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: var(--rich-burgundy);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-gold), var(--deep-gold));
    transition: width 0.3s ease;
}

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

/* 手機導航按鈕 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--rich-burgundy);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 英雄區域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(128, 0, 32, 0.1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23FDF5E6"/><circle cx="20" cy="20" r="1" fill="%23D4AF37" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23800020" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(60, 36, 20, 0.1) 0%,
        rgba(212, 175, 55, 0.05) 50%,
        rgba(128, 0, 32, 0.1) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-english);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--rich-burgundy);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--primary-gold);
    margin-bottom: 30px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--deep-brown);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-decoration {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 1;
}

.chinese-pattern {
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="%23D4AF37" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="%23800020" stroke-width="1"/><circle cx="50" cy="50" r="10" fill="none" stroke="%23D4AF37" stroke-width="1"/></svg>');
    animation: rotate 20s linear infinite;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--deep-brown);
    border-color: var(--primary-gold);
}

.btn-primary:hover {
    background: var(--deep-gold);
    border-color: var(--deep-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--rich-burgundy);
    border-color: var(--rich-burgundy);
}

.btn-secondary:hover {
    background: var(--rich-burgundy);
    color: var(--cream-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
}

/* 區段通用樣式 */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-english);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--rich-burgundy);
    margin-bottom: 20px;
    position: relative;
}

.ornament {
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-gold), var(--deep-gold));
    margin: 20px auto;
    position: relative;
}

.ornament::before,
.ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    border-radius: 50%;
    transform: translateY(-50%);
}

.ornament::before {
    left: -15px;
}

.ornament::after {
    right: -15px;
}

/* 關於我們區域 */
.about {
    background: var(--warm-beige);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-english);
    font-size: 2rem;
    color: var(--rich-burgundy);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--deep-brown);
}

.heritage-quote {
    margin-top: 40px;
    padding: 30px;
    background: var(--cream-white);
    border-left: 5px solid var(--primary-gold);
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow-soft);
}

.heritage-quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--rich-burgundy);
    line-height: 1.6;
}

.image-frame {
    background: var(--cream-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-gold);
    border-radius: 5px;
    pointer-events: none;
}

.placeholder-image {
    height: 300px;
    background: linear-gradient(135deg, var(--warm-beige), var(--cream-white));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    color: var(--charcoal);
    border-radius: 5px;
}

/* About区域轮播样式 */
.about-carousel {
    position: relative;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
}

.about-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;
    border-radius: 5px;
}

.about-slide.active {
    opacity: 1;
}

.about-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.about-carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.about-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.about-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.about-indicator.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

/* 雪茄品牌區域 */
.brands {
    background: var(--cream-white);
    position: relative;
}

/* 品牌轮播样式 */
.brands-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 400%; /* 4个品牌卡片 */
    will-change: transform;
}

.carousel-track .brand-card {
    flex: 0 0 25%; /* 每个卡片占25%宽度 */
    margin: 0;
    border-radius: 0;
    min-height: 500px;
}

.brand-card {
    background: var(--warm-beige);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
}

.brand-header {
    background: linear-gradient(135deg, var(--rich-burgundy), var(--deep-brown));
    color: var(--cream-white);
    padding: 25px;
    text-align: center;
    position: relative;
}

.brand-header h3 {
    font-family: var(--font-english);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.origin {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-gold);
}

.brand-content {
    padding: 30px;
}

.brand-content h4 {
    font-family: var(--font-english);
    font-size: 1.3rem;
    color: var(--rich-burgundy);
    margin-bottom: 15px;
    margin-top: 25px;
}

.brand-content h4:first-child {
    margin-top: 0;
}

.brand-content p {
    color: var(--deep-brown);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 自創品牌特殊樣式 */
.brand-card.signature-brand {
    background: linear-gradient(135deg,
        var(--primary-gold) 0%,
        #f4e4bc 30%,
        var(--cream-white) 100%);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.brand-card.signature-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.brand-header.signature {
    background: linear-gradient(135deg,
        var(--rich-burgundy) 0%,
        var(--primary-gold) 50%,
        var(--deep-brown) 100%);
    position: relative;
}

.origin.signature {
    color: var(--cream-white);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.signature-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--cream-white);
    color: var(--rich-burgundy);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.signature-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.feature-tag {
    background: var(--primary-gold);
    color: var(--rich-burgundy);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--rich-burgundy);
}

.signature-note {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-gold);
    font-style: italic;
    color: var(--rich-burgundy) !important;
    margin-top: 20px;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(139, 69, 19, 0.8);
    color: var(--cream-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--rich-burgundy);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 轮播指示器 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(139, 69, 19, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary-gold);
    border-color: var(--rich-burgundy);
    transform: scale(1.3);
}

/* 品鑑空間區域 */
.lounge {
    background: linear-gradient(135deg,
        var(--warm-beige) 0%,
        var(--cream-white) 100%);
    position: relative;
}

.lounge-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.feature-card {
    background: var(--cream-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

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

.feature-card h3 {
    font-family: var(--font-english);
    font-size: 1.5rem;
    color: var(--rich-burgundy);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--deep-brown);
    line-height: 1.6;
}

.lounge-booking {
    background: var(--rich-burgundy);
    color: var(--cream-white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-deep);
}

.lounge-booking h3 {
    font-family: var(--font-english);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.lounge-booking p {
    margin-bottom: 30px;
    line-height: 1.7;
}

/* 文化傳承區域 */
.heritage {
    background: var(--warm-beige);
    position: relative;
}

.heritage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.heritage-text h3 {
    font-family: var(--font-english);
    font-size: 2rem;
    color: var(--rich-burgundy);
    margin-bottom: 30px;
}

.heritage-text h4 {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.heritage-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--deep-brown);
}

.image-frame.traditional::before {
    border-color: var(--rich-burgundy);
}

/* 聯絡資訊區域 */
.contact {
    background: var(--cream-white);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: var(--font-english);
    font-size: 2.5rem;
    color: var(--rich-burgundy);
    margin-bottom: 10px;
}

.company-subtitle {
    font-size: 1rem;
    color: var(--primary-gold);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

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

.contact-item strong {
    color: var(--rich-burgundy);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--deep-gold);
}

.contact-item p {
    color: var(--deep-brown);
    line-height: 1.6;
}

.philosophy {
    background: var(--warm-beige);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-gold);
}

.philosophy p {
    font-style: italic;
    font-size: 1.05rem;
}

.transport-info h3 {
    font-family: var(--font-english);
    font-size: 2rem;
    color: var(--rich-burgundy);
    margin-bottom: 30px;
}

.bus-routes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.route-group {
    background: var(--warm-beige);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-gold);
}

.route-group h4 {
    color: var(--rich-burgundy);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.route-numbers {
    color: var(--deep-brown);
    font-weight: 600;
    letter-spacing: 1px;
}

/* 頁腳 */
.footer {
    background: linear-gradient(135deg, var(--deep-brown), var(--charcoal));
    color: var(--cream-white);
    padding: 50px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand h3 {
    font-family: 'Bickham Script Pro 3';
    font-size: 5rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--silver);
    font-style: italic;
}

.footer-nav {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

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

.footer-nav a:hover {
    color: var(--primary-gold);
}

.footer-nav span {
    margin: 0 15px;
    color: var(--primary-gold);
}

.footer-links p {
    color: #d4af37;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

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

@keyframes rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* 滾動動畫 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 響應式設計 */
/* 雪茄百科页面样式 */
.page-hero {
    background: linear-gradient(135deg, var(--deep-brown) 0%, var(--rich-burgundy) 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.encyclopedia-content {
    padding: 80px 0;
}

.brand-category {
    margin-bottom: 80px;
}

.brand-category.signature {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
    position: relative;
}

.brand-category.signature::before {
    content: '★';
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--primary-gold);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.brand-category h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--deep-brown);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.brand-category h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
}

.category-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--rich-burgundy);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.brand-item {
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-item.featured .brand-card {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4d03f 100%);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border: none;
}

.brand-item.featured .brand-info h3 {
    color: var(--deep-brown);
}

.brand-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

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

.brand-image {
    height: 180px;
    background: linear-gradient(135deg, var(--rich-burgundy) 0%, var(--deep-brown) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>') center/80px;
}

.placeholder-image {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.brand-info {
    padding: 25px;
}

.brand-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--rich-burgundy);
    margin-bottom: 8px;
    font-weight: 600;
}

.origin {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description {
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.brand-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--rich-burgundy) 0%, var(--deep-brown) 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-link:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4d03f 100%);
    color: var(--deep-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* 品牌内链样式 */
.brand-content h4 a {
    color: var(--rich-burgundy);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.brand-content h4 a:hover {
    color: var(--primary-gold);
    transform: translateX(3px);
}

.brand-content h4 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), var(--rich-burgundy));
    transition: width 0.3s ease;
}

.brand-content h4 a:hover::after {
    width: 100%;
}

/* 品牌标题链接样式 */
.brand-header h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.brand-header h3 a:hover {
    color: var(--primary-gold);
    transform: scale(1.05);
}

/* 更多品牌链接区域 */
.cuban-brands-more,
.dominican-brands-more {
    margin: 15px 0;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
}

.cuban-brands-more p,
.dominican-brands-more p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--deep-brown);
}

.cuban-brands-more a,
.dominican-brands-more a {
    color: var(--rich-burgundy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.cuban-brands-more a:hover,
.dominican-brands-more a:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* 查看全部链接样式 */
.brand-content .brand-link {
    margin-top: 15px;
    font-size: 0.85rem;
    padding: 8px 16px;
}

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

    /* 移动端logo布局调整 */
    .logo {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .logo-text {
        align-items: center;
        text-align: center;
        order: 1;
    }

    .logo-png {
        justify-content: center;
        order: 2;
    }

    .logo-image {
        height: 36px;
    }

    .company-name, .company-name-pt {
        font-size: 0.7rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream-white);
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        border-radius: 0 0 10px 10px;
        z-index: 1000;
    }

    .nav-toggle {
        display: flex;
    }

    nav.compact .nav-container {
        padding: 6px 15px;
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        padding: 0.8rem 2rem;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-menu a:hover {
        background: rgba(212, 175, 55, 0.1);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .heritage-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lounge-content {
        grid-template-columns: 1fr;
    }

        .carousel-track .brand-card {
        min-height: 450px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-controls {
        padding: 0 10px;
    }

    .signature-features {
        justify-content: center;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .lounge-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    /* 雪茄百科页面移动端样式 */
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .brand-category h2 {
        font-size: 2rem;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-category.signature {
        padding: 20px;
        margin: 0 10px;
    }

    .brand-category.signature::before {
        left: 15px;
        font-size: 1rem;
        padding: 6px 12px;
    }
}

/* 品牌详细页面样式 */
.brand-hero {
    background: linear-gradient(135deg, var(--deep-brown) 0%, var(--rich-burgundy) 50%, var(--primary-gold) 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.brand-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>') center/200px;
    animation: rotate 60s linear infinite;
}

.brand-hero-content {
    position: relative;
    z-index: 1;
}

.brand-badge {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--deep-brown);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: shimmer 2s ease-in-out infinite alternate;
}

.brand-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-tagline {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.brand-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-tag.premium {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-tag.premium:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.brand-story {
    padding: 80px 0;
    background: var(--warm-beige);
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.story-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--deep-brown);
    margin-bottom: 20px;
}

.story-text .lead {
    font-size: 1.2rem;
    color: var(--rich-burgundy);
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
}

.story-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--rich-burgundy);
    margin-top: 30px;
    margin-bottom: 15px;
}

.story-text p {
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.image-frame.premium {
    border: 3px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.image-frame.premium::before {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #f4d03f 100%);
}

.tasting-guide {
    padding: 80px 0;
}

.tasting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.tasting-notes h3,
.pairing-suggestions h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--deep-brown);
    margin-bottom: 30px;
    text-align: center;
}

.notes-grid,
.pairing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.note-item,
.pairing-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-gold);
    transition: transform 0.3s ease;
}

.note-item:hover,
.pairing-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.note-item h4,
.pairing-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--rich-burgundy);
    margin-bottom: 10px;
}

.note-item p,
.pairing-item p {
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-specs {
    padding: 80px 0;
    background: var(--warm-beige);
}

.specs-content {
    max-width: 800px;
    margin: 0 auto;
}

.specs-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: background 0.3s ease;
}

.spec-row:hover {
    background: rgba(212, 175, 55, 0.05);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    background: var(--primary-gold);
    color: var(--deep-brown);
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.05rem;
}

.spec-value {
    padding: 20px 25px;
    color: var(--charcoal);
    font-size: 1.05rem;
}

.purchase-info {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--rich-burgundy) 0%, var(--deep-brown) 100%);
    color: white;
}

.purchase-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.purchase-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.purchase-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-info a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.purchase-cta {
    text-align: center;
}

.purchase-cta .btn {
    display: block;
    margin-bottom: 15px;
    width: 100%;
    max-width: 200px;
}

/* 品牌详细页面移动端样式 */
@media (max-width: 768px) {
    .brand-hero h1 {
        font-size: 2.5rem;
    }

    .brand-tagline {
        font-size: 1.1rem;
    }

    .brand-features {
        gap: 10px;
    }

    .feature-tag.premium {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tasting-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .notes-grid,
    .pairing-grid {
        gap: 20px;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .spec-label {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .purchase-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .purchase-cta .btn {
        margin: 0 auto 15px;
    }
}

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

    .logo-image {
        height: 32px;
    }

    .company-name,
    .company-name-pt {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .brand-card,
    .feature-card {
        margin: 0 10px;
    }
}

/* 特殊效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 高質感滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--warm-beige);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-gold), var(--deep-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--deep-gold), var(--rich-burgundy));
}

/* JavaScript 增強樣式 */
/* 導航欄滾動效果 */
nav.scrolled {
    background: rgba(253, 245, 230, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.compact .nav-container {
    padding: 8px 20px;
}



/* 動畫類別 */
.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 品牌卡片互動效果 */
.brand-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 确保滚动动画优先级高于悬停效果 */
.brand-card.fade-in:not(.animated) {
    opacity: 0;
    transform: translateY(30px);
}

.brand-card.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.brand-card.expanded {
    transform: scale(1.02);
    z-index: 10;
}

.brand-details {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-gold);
    animation: slideDown 0.3s ease;
}

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

/* 打字動畫效果 */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-gold);
    animation: blink-caret 1s infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-gold); }
}

/* 通知樣式 */
.notification {
    font-family: var(--font-chinese);
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: var(--primary-gold);
    color: white;
}

.notification.error {
    background: var(--rich-burgundy);
    color: white;
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.back-to-top:hover {
    background: var(--rich-burgundy);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 頁面載入動畫 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader::before {
    content: '🚬';
    font-size: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 鍵盤導航支援 */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 懶載入圖片 */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 視差背景 */
.parallax-bg {
    will-change: transform;
}



/* 活躍導航項目 */
.nav-menu a.active {
    color: var(--primary-gold);
    font-weight: 600;
}

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

/* 載入完成動畫 */
body.loaded .fade-in:not(.animated) {
    animation: fadeInUp 0.8s ease forwards;
}

/* 自定義光標（可選） */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    transition: transform 0.1s ease;
}

/* 性能優化 */
.brand-card,
.feature-card,
.btn {
    will-change: transform;
}

/* 滑鼠懸停時的微妙動畫 */
.brand-card:hover,
.feature-card:hover {
    animation: subtle-float 0.3s ease;
}

@keyframes subtle-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(-10px); }
}