/*
 * ESONS Theme Styles
 * Brand: 自然质感 · 精工剪裁 · 穿越流行
 */

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .3s; }
a:hover { opacity: .75; }
ul, ol { list-style: none; }

/* ─── Utility ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background: #f8f8f8; }

.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #333;
    margin: 20px auto 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}
.page-subtitle {
    color: #888;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.no-content { text-align: center; color: #999; padding: 60px 0; }

/* ─── Header ──────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(10px);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-branding { display: flex; align-items: center; }
.site-logo-img {
    height: 30px;
    width: auto;
    display: block;
}
.site-title,
.site-tagline {
    display: none;
}

/* ─── Navigation ──────────────────────────────────── */
.primary-menu {
    display: flex;
    gap: 28px;
}
.primary-menu > li > a {
    font-size: 1.2rem;
    font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", "Songti SC", Georgia, serif;
    letter-spacing: 0.15em;
    padding: 24px 0;
    color: #555;
    position: relative;
    transition: color .35s, letter-spacing .35s, transform .35s;
}
.primary-menu > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 2px;
    background: #c0392b;
    transform: translateX(-50%);
    transition: width .4s ease;
    border-radius: 1px;
}
.primary-menu > li > a:hover {
    color: #c0392b;
    letter-spacing: 0.24em;
    transform: translateY(-2px);
}
.primary-menu > li > a:hover::after {
    width: 70%;
}
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all .25s;
    z-index: 99;
    padding: 8px 0;
}
.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.primary-menu .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.82rem;
    color: #555;
    white-space: nowrap;
}
.primary-menu .sub-menu a:hover { background: #f5f5f5; color: #111; }
.menu-item-has-children {
    position: relative;
}

/* ─── Mobile Menu Toggle ──────────────────────────── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: all .3s;
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .primary-menu {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid #eee;
        transform: translateY(-100%);
        opacity: 0;
        transition: all .3s;
        pointer-events: none;
    }
    .primary-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .primary-menu > li > a { padding: 14px 0; display: block; border-bottom: 1px solid #f0f0f0; }
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding-left: 15px;
    }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/* ─── Front Page ─────────────────────────────────── */
.site-content { padding-top: 64px; }

/* Hero */
.hero-section { height: 70vh; min-height: 420px; overflow: hidden; }
.hero-bg { width: 100%; height: 100%; position: relative; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}
.hero-text { text-align: center; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    letter-spacing: 0.3em;
    color: #333;
    margin-bottom: 15px;
}
.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #888;
}

/* Philosophy */
.philosophy-section { max-width: 700px; margin: 0 auto; }
.philosophy-content p { font-size: 1rem; line-height: 2; color: #555; margin-bottom: 20px; }

/* News Grid (Front Page) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-card { background: #fff; }
.news-thumb { display: block; overflow: hidden; }
.news-thumb img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.news-thumb:hover img { transform: scale(1.03); }
.news-body { padding: 20px 0; }
.news-date { font-size: 0.8rem; color: #999; letter-spacing: 0.05em; }
.news-title { font-size: 1.05rem; font-weight: 500; margin: 8px 0 10px; line-height: 1.5; }
.news-title a { color: #222; }
.news-excerpt { font-size: 0.9rem; color: #666; line-height: 1.7; }

@media (max-width: 768px) {
    .news-grid, .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
    .news-grid, .products-grid { grid-template-columns: 1fr; }
}

/* Season Entry (Front Page) */
.seasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.season-card {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    transition: all .4s;
}
.season-overlay {
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    text-align: center;
}
.season-name { font-size: 1.3rem; font-weight: 400; letter-spacing: 0.1em; margin-bottom: 4px; }
.season-desc { font-size: 0.85rem; opacity: .8; }
.season-count { font-size: 0.78rem; opacity: .6; display: block; margin-top: 8px; }
.season-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
@media (max-width: 600px) {
    .seasons-grid { grid-template-columns: 1fr; }
    .season-card { height: 280px; }
}

/* ─── Collection Page ─────────────────────────────── */
.collection-hero { padding: 60px 0 40px; }
.season-nav {
    position: sticky;
    top: 64px;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}
.season-nav .container { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.season-nav-item {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: #888;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all .3s;
}
.season-nav-item:hover, .season-nav-item.active { color: #111; border-color: #111; }

/* ─── 当季推荐（Collection 页）─── */
.featured-section { background: #f8f8f8; }
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.featured-card {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    transition: box-shadow .3s, transform .3s;
}
.featured-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.featured-thumb {
    flex-shrink: 0;
    width: 280px;
    overflow: hidden;
}
.featured-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .5s;
}
.featured-card:hover .featured-thumb img { transform: scale(1.04); }
.featured-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.featured-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.featured-title a { color: #222; transition: color .3s; }
.featured-title a:hover { color: #c0392b; }
.featured-date {
    font-size: 0.82rem;
    color: #999;
    display: block;
    margin-bottom: 10px;
}
.featured-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}
.featured-card .read-more {
    font-size: 0.85rem;
    color: #c0392b;
    border-bottom: 1px solid #c0392b;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: all .3s;
}
.featured-card .read-more:hover {
    color: #a93226;
    border-color: #a93226;
    opacity: 1;
}
@media (max-width: 640px) {
    .featured-card { flex-direction: column; }
    .featured-thumb { width: 100%; }
    .featured-thumb img { height: 200px; }
}

/* Product Grid */
.season-heading {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    margin-bottom: 40px;
    padding-top: 30px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card { 
    display: flex;
    flex-direction: column;
    transition: transform .3s;
}
.product-card:hover { transform: translateY(-3px); }
.product-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.85rem;
}
.product-price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,.9);
    padding: 4px 10px;
    font-size: 0.82rem;
    color: #c00;
}
.product-info { padding: 14px 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-title { font-size: 0.95rem; font-weight: 500; }
.product-title a { color: #222; }
.product-fabric { font-size: 0.8rem; color: #888; }
.product-excerpt { font-size: 0.82rem; color: #666; line-height: 1.6; flex: 1; }
.btn-tmall {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: #c00;
    border: 1px solid #c00;
    transition: all .3s;
    align-self: flex-start;
    margin-top: 6px;
}
.btn-tmall:hover {
    background: #c00;
    color: #fff;
    opacity: 1;
}

@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ─── Single Product ──────────────────────────────── */
.product-detail { padding: 40px 0 80px; }
.product-breadcrumb { margin-bottom: 30px; font-size: 0.85rem; color: #888; }
.product-breadcrumb a { color: #555; }
.product-breadcrumb a:hover { color: #111; }
.breadcrumb-sep { margin: 0 10px; }

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.product-gallery {
    position: sticky;
    top: 84px;
    align-self: start;
}
.product-main-image img { width: 100%; }

.product-detail-info { padding-top: 20px; }
.product-detail-title { font-size: 1.8rem; font-weight: 300; margin-bottom: 20px; letter-spacing: 0.05em; }
.product-detail-price { font-size: 1.3rem; color: #c00; margin-bottom: 30px; }
.product-detail-row {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 20px;
}
.detail-label { width: 80px; color: #888; font-size: 0.85rem; flex-shrink: 0; }
.detail-value { color: #333; font-size: 0.9rem; }
.product-description { margin: 30px 0; line-height: 1.9; color: #555; }
.product-description p { margin-bottom: 15px; }

.btn-large {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .product-layout { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { position: static; }
}

/* ─── Activity Page ───────────────────────────────── */
.activity-hero, .store-hero, .contact-hero { padding: 60px 0 40px; }

.post-list-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}
.post-list-thumb { flex-shrink: 0; width: 260px; }
.post-list-thumb img { width: 100%; height: 180px; object-fit: cover; }
.post-list-title { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.post-list-title a { color: #222; }
.post-list-date { font-size: 0.82rem; color: #999; display: block; margin-bottom: 10px; }
.post-list-excerpt { color: #666; line-height: 1.7; margin-bottom: 12px; }
.read-more { font-size: 0.85rem; color: #555; border-bottom: 1px solid #555; padding-bottom: 2px; }

@media (max-width: 600px) {
    .post-list-item { flex-direction: column; gap: 15px; }
    .post-list-thumb { width: 100%; }
    .post-list-thumb img { height: 200px; }
}

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { background: #fff; padding: 20px; }
.event-thumb { margin-bottom: 15px; }
.event-thumb img { width: 100%; height: 200px; object-fit: cover; }
.event-title { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.event-excerpt { font-size: 0.85rem; color: #666; }
@media (max-width: 600px) {
    .events-grid { grid-template-columns: 1fr; }
}

/* ─── Store Page ──────────────────────────────────── */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px; 
}
.gallery-item { 
    position: relative; 
    overflow: hidden; 
}
.gallery-item img { 
    width: 100%; 
    height: 320px; 
    object-fit: cover; 
    transition: transform .5s; 
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px; 
    background: linear-gradient(transparent, rgba(0,0,0,.6)); 
    color: #fff; 
}
.gallery-caption h3 { font-size: 1rem; font-weight: 400; letter-spacing: 0.05em; }
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ─── Contact Page ────────────────────────────────── */
.about-content { max-width: 700px; margin: 0 auto; line-height: 2; color: #555; }
.contact-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.channel-card { text-align: center; padding: 40px 20px; background: #fff; }
.channel-icon { font-size: 2rem; margin-bottom: 15px; }
.channel-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
.channel-card p { font-size: 0.85rem; color: #888; }
.form-wrapper { max-width: 600px; margin: 0 auto; }
@media (max-width: 600px) {
    .contact-channels { grid-template-columns: 1fr; }
}
.join-section p { color: #555; margin-bottom: 10px; }
.join-section a { color: #333; border-bottom: 1px solid #333; }

/* ─── Post Single ─────────────────────────────────── */
.post-content { max-width: 750px; margin: 0 auto; padding: 40px 0 80px; }
.post-header { margin-bottom: 40px; }
.post-header .post-title { font-size: 1.8rem; font-weight: 300; line-height: 1.4; margin-bottom: 15px; }
.post-meta { font-size: 0.82rem; color: #999; display: flex; gap: 15px; }
.post-cats a { color: #888; }
.post-cats a:hover { color: #111; }
.post-featured-image { margin-bottom: 40px; }
.post-featured-image img { width: 100%; }
.post-body { font-size: 1rem; line-height: 2; color: #444; }
.post-body p { margin-bottom: 24px; }
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}
.post-nav a { font-size: 0.9rem; color: #555; }
.post-nav a:hover { color: #111; }

/* ─── Pagination ──────────────────────────────────── */
.pagination {
    text-align: center;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    border: 1px solid #eee;
    color: #555;
}
.pagination span.current { background: #333; color: #fff; border-color: #333; }
.pagination a:hover { border-color: #333; }

/* ─── 404 Page ────────────────────────────────────── */
.page-404 { text-align: center; padding: 120px 20px; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.error-code { font-size: 6rem; font-weight: 100; color: #ddd; letter-spacing: 0.1em; margin-bottom: 10px; }
.error-message { font-size: 1.3rem; color: #555; margin-bottom: 10px; }
.page-404 p { color: #888; margin-bottom: 30px; }
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #333;
    color: #fff;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    transition: background .3s;
}
.btn-primary:hover { background: #111; opacity: 1; color: #fff; }

/* ─── Footer ──────────────────────────────────────── */
.site-footer {
    background: #222;
    color: #999;
    padding: 60px 0 40px;
    margin-top: 80px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.footer-brand h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: 0.1em; color: #ccc; margin-bottom: 6px; }
.footer-brand p { font-size: 0.85rem; color: #777; }
.footer-social { margin: 30px 0; display: flex; justify-content: center; gap: 24px; }
.footer-social a { font-size: 0.85rem; color: #888; letter-spacing: 0.05em; }
.footer-social a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; color: #666; border-top: 1px solid #333; padding-top: 30px; }

/* ─── Banner Section ────────────────────────────── */
.esons-banner {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

/* 首页用背景图的 Hero */
.esons-banner-img {
    height: 60vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
}
.hero-text-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero-text-wrap .hero-title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-text-wrap .hero-subtitle {
    color: rgba(255,255,255,.85);
}

/* ─── Store Entry (完整内容展示) ────────────── */
.store-entry {
    border-bottom: 1px solid #f0f0f0;
    padding: 60px 0;
}
.store-entry:last-of-type {
    border-bottom: none;
}
.store-entry-image {
    margin-bottom: 30px;
    text-align: center;
}
.store-entry-image img {
    width: 100%;
    max-width: 1200px;
    border-radius: 4px;
}
.store-entry-title {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    text-align: center;
    color: #222;
}
.store-entry-content .entry-body {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 2;
    color: #555;
}
.store-entry-content .entry-body p {
    margin-bottom: 18px;
}
.store-entry-content .entry-body a {
    color: #333;
    border-bottom: 1px solid #ccc;
}

/* ─── Product Video ─────────────────────────────── */
.product-video {
    margin: 30px 0;
}
.section-subtitle {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #555;
    letter-spacing: 0.05em;
}
.video-wrapper {
    max-width: 700px;
}
.video-wrapper iframe,
.video-wrapper video {
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

/* ─── Admin Bar Support ──────────────────────────── */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* ─── Archive ─────────────────────────────────────── */
.archive-header { padding: 60px 0 40px; }
.archive-title { font-size: 1.5rem; font-weight: 300; letter-spacing: 0.08em; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card .post-title { font-size: 1.1rem; font-weight: 500; margin: 15px 0 8px; }
.post-card .post-title a { color: #222; }
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
}
