/*
Theme Name: My Custom Theme
Theme URI: https://example.com/my-custom-theme
Author: Your Name
Author URI: https://example.com
Description: MeiCai cosmetics packaging company website - single-page responsive theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/

/* ====================
   CSS Variables — Luxury Warm Palette
   ==================== */
:root {
    /* Brand */
    --primary-color: #C41E3A;
    --primary-hover: #A01830;
    --primary-light: rgba(196, 30, 58, 0.06);
    --accent-gold: #C9A96E;
    --accent-gold-hover: #B8975E;
    --accent-gold-light: rgba(201, 169, 110, 0.10);
    --accent-rose: #E8A0BF;

    /* Text — warm charcoal instead of cold blue-gray */
    --text-dark: #2A2523;
    --text-medium: #5C5550;
    --text-light: #9A9490;

    /* Backgrounds — warm undertones */
    --bg-white: #FAFAF8;
    --bg-pure: #ffffff;
    --bg-cream: #F5F1EC;
    --bg-dark: #2A2523;
    --border-color: #E8E3DD;

    /* Layout */
    --header-height: 70px;
    --header-height-mobile: 60px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 1px 4px rgba(42, 37, 35, 0.06);
    --shadow-md: 0 4px 16px rgba(42, 37, 35, 0.08);
    --shadow-lg: 0 12px 36px rgba(42, 37, 35, 0.10);
    --shadow-gold: 0 6px 24px rgba(201, 169, 110, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ====================
   Reset & Base Styles
   ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ====================
   Layout
   ==================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    padding-top: 0;
}

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

/* ====================
   Header Styles
   ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-logo {
    max-height: 42px;
    width: auto;
}

.header-logo {
    height: 42px;
    width: auto;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.site-title a {
    color: inherit;
}

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

.site-description {
    font-size: 0.72rem;
    color: var(--accent-gold);
    line-height: 1.2;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ====================
   Desktop Horizontal Nav
   ==================== */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav-link {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    letter-spacing: 0.5px;
    position: relative;
}

.desktop-nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.desktop-nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: var(--primary-light);
}

.desktop-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* ====================
   Location Indicator (mobile only)
   ==================== */
.location-indicator {
    display: none;
}

.location-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-medium);
    background: var(--bg-pure);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

.location-current:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-light);
}

.location-current.open {
    border-color: var(--accent-gold);
    background: var(--accent-gold-light);
}

.location-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.location-name {
    font-weight: 600;
    color: var(--primary-color);
}

.location-arrow {
    transition: transform var(--transition-speed) ease;
    color: var(--text-light);
    flex-shrink: 0;
}

.location-current.open .location-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.location-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--bg-pure);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 1100;
}

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

.location-dropdown li {
    margin: 0;
}

.location-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-speed) ease;
}

.location-dropdown a:hover {
    background: var(--accent-gold-light);
    color: var(--primary-color);
}

.location-dropdown a.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* ====================
   Section 1: Featured Carousel
   ==================== */
.section-featured {
    margin-top: 0;
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: #ffffff;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.carousel-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Carousel Prev / Next Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    opacity: 0;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.06);
}

.carousel-prev {
    left: 28px;
}

.carousel-next {
    right: 28px;
}

/* Carousel Watermark */
.carousel-watermark {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 120px;
    height: auto;
    z-index: 10;
    opacity: 0.5;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

/* Carousel Overlay Slogan */
.carousel-overlay {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    z-index: 8;
    pointer-events: none;
}

.carousel-slogan-cn {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.carousel-slogan-en {
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

/* Carousel Dots — capsule style */
.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: 50px;
}

.carousel-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-speed) ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: var(--bg-pure);
    width: 36px;
}

/* ====================
   Section Headers — Shared
   ==================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    letter-spacing: 1px;
}

/* Decorative line under h2 */
.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    margin: 18px auto 0;
    border-radius: 1px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ====================
   Section 2: Products
   ==================== */
.section-products {
    padding: 80px 0;
    background-color: var(--bg-pure);
}

/* Series Tabs — refined pills */
.series-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    justify-content: center;
}

.series-tabs::-webkit-scrollbar {
    display: none;
}

.series-tab {
    padding: 10px 26px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-speed) ease;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.series-tab:hover {
    color: var(--text-dark);
    border-color: var(--text-light);
}

.series-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-pure);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}

/* Series Panels */
.series-panel {
    display: none;
}

.series-panel.active {
    display: block;
}

/* Product Image Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.series-item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-white);
    cursor: zoom-in;
    transition: all 0.35s ease;
    border: 1px solid var(--border-color);
}

.series-item:hover {
    box-shadow: var(--shadow-gold);
    border-color: transparent;
    transform: translateY(-4px);
}

.series-item-img {
    overflow: hidden;
}

.series-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.series-item:hover img {
    transform: scale(1.05);
}

.series-item-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: var(--bg-pure);
}

.series-item-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-medium);
    letter-spacing: 0.5px;
}

.series-item-badge {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-cream);
    border-radius: 50px;
    line-height: 1;
}

.series-item-badge svg {
    flex-shrink: 0;
}

/* Series Pager — slide animation */
.series-pager {
    overflow: hidden;
}

.series-pages {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.series-page {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
}

.series-pager-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.pager-prev,
.pager-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-pure);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.pager-prev:hover:not(:disabled),
.pager-next:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

.pager-prev:disabled,
.pager-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pager-info {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
    min-width: 48px;
    text-align: center;
}

/* Lightbox Gallery */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(42, 37, 35, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 90vh;
    gap: 16px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    transform: scale(0.92);
    transition: transform 0.3s ease;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Lightbox Navigation Arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.06);
}

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 2px;
    font-weight: 500;
    z-index: 10;
}

/* Lightbox Thumbnails */
.lightbox-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
    height: 4px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.55;
    transition: all 0.25s ease;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumb:hover {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

/* ====================
   Section 3: About Us
   ==================== */
.section-about {
    padding: 80px 0 88px;
    background: linear-gradient(170deg, var(--bg-cream) 0%, #F0EBE4 100%);
    position: relative;
}

/* Subtle decorative top border */
.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-color), var(--accent-gold));
    border-radius: 2px;
}

/* About Intro: text + gallery mosaic side by side */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.about-text-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-gold);
    letter-spacing: 1px;
}

.about-text {
    padding-top: 0;
}

.about-text p {
    font-size: 0.98rem;
    line-height: 2;
    color: var(--text-medium);
    margin-bottom: 16px;
}


.about-text p:last-child {
    margin-bottom: 0;
}

/* Gallery Mosaic: 1 tall image left + 2 stacked images right */
.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
}

.about-gallery-item {
    overflow: hidden;
    position: relative;
}

.about-gallery-item:first-child {
    grid-row: 1 / 3;
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-gallery-item:hover img {
    transform: scale(1.05);
}

/* About Contact: info + WeChat side by side */
.about-contact {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding: 40px 48px;
    background: var(--bg-pure);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.about-contact-info {
    flex: 1;
}

.contact-row {
    margin-bottom: 24px;
}

.contact-row:last-child {
    margin-bottom: 20px;
}

.contact-row h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.contact-row p {
    font-size: 0.93rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.contact-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
}

.contact-shop-link:hover {
    background: var(--primary-color);
    color: var(--bg-pure);
}

.about-wechat {
    flex-shrink: 0;
    text-align: center;
}

.about-wechat img {
    width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.about-wechat p {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ====================
   Footer Styles
   ==================== */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
    position: relative;
}

/* Gold accent line at top */
.site-footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-color), var(--accent-gold));
}

.site-footer .container {
    padding-top: 40px;
    padding-bottom: 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.footer-brand .footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.footer-brand p {
    font-size: 0.82rem;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-speed) ease;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-icp {
    margin-top: 6px;
}

.footer-icp a {
    color: rgba(255, 255, 255, 0.3);
    transition: color var(--transition-speed) ease;
}

.footer-icp a:hover {
    color: var(--accent-gold);
}

/* ====================
   Scroll to Top
   ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--text-dark);
    color: var(--accent-gold);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    z-index: 900;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ====================
   WordPress Default Styles
   ==================== */
.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ====================
   Page & Post Styles (for non-front-page)
   ==================== */
.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.entry-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 20px;
}

/* ====================
   Responsive Design
   ==================== */
@media screen and (max-width: 992px) {
    /* About intro stacks */
    .about-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-gallery {
        max-height: 320px;
    }

    /* Product grid 3 columns */
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact card reduces gap */
    .about-contact {
        gap: 50px;
        padding: 32px 36px;
    }
}

@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: var(--header-height-mobile);
    }

    .site-header {
        height: var(--header-height-mobile);
    }

    .site-content {
        padding-top: 0;
    }

    .site-title {
        font-size: 1.05rem;
    }

    .site-description {
        font-size: 0.68rem;
    }

    .header-logo {
        height: 34px;
    }

    /* Mobile: hide desktop nav, show location indicator */
    .desktop-nav {
        display: none;
    }

    .location-indicator {
        display: block;
        position: relative;
    }

    /* Mobile Location Indicator */
    .location-label {
        display: none;
    }

    .location-current {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    /* Carousel */
    .section-featured {
        margin-top: 0;
        height: 40vh;
        background: #ffffff;
    }

    .carousel-slide img {
        object-fit: cover;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
        opacity: 0.5;
    }

    .carousel-prev {
        left: 14px;
    }

    .carousel-next {
        right: 14px;
    }

    .carousel-watermark {
        width: 72px;
        top: 14px;
        right: 14px;
    }

    .carousel-overlay {
        top: 20%;
    }

    .carousel-slogan-cn {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .carousel-slogan-en {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .carousel-dots {
        bottom: 18px;
        gap: 6px;
        padding: 6px 12px;
    }

    .carousel-dot {
        width: 18px;
        height: 3px;
    }

    .carousel-dot.active {
        width: 28px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 36px;
    }

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

    .section-header h2::after {
        width: 36px;
        margin-top: 14px;
    }

    /* Products */
    .section-products {
        padding: 60px 0;
    }

    .series-tabs {
        gap: 8px;
        margin-bottom: 28px;
        justify-content: flex-start;
    }

    .series-tab {
        padding: 8px 18px;
        font-size: 0.82rem;
    }

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* About */
    .section-about {
        padding: 60px 0 68px;
    }

    .about-intro {
        gap: 24px;
    }

    .about-gallery {
        max-height: 240px;
    }

    .about-text-title {
        font-size: 1.05rem;
        margin-bottom: 14px;
    }

    .about-contact {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        padding: 28px 24px;
    }

    .about-contact-info {
        width: 100%;
    }

    .about-wechat img {
        width: 180px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .entry-title {
        font-size: 1.75rem;
    }

    /* Lightbox Mobile */
    .lightbox {
        padding: 16px;
    }

    .lightbox-body {
        max-width: 100%;
        gap: 10px;
    }

    .lightbox-img {
        max-width: 100%;
        max-height: 60vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 0.8rem;
        padding: 5px 14px;
    }

    .lightbox-thumb {
        width: 48px;
        height: 48px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 16px;
    }

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

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .series-item {
        border-radius: var(--radius-sm);
    }

    .about-text p {
        font-size: 0.93rem;
    }

    .about-contact {
        padding: 24px 18px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
