/* 
   KAKOBUY v2 - 欧美极简奢侈品风
   风格: 象牙白底 + 暖炭文字 + 细沙边框（参考 Celine / The Row / Toteme）
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --bg: #faf8f5;          /* 暖象牙白底 */
    --bg-2: #f4f1ec;        /* 略深米白，卡片hover */
    --bg-3: #ede9e2;        /* 更深一层 */
    --bg-4: #e4dfd6;        /* 深米色 */
    --text: #1c1a17;        /* 暖黑炭，几乎黑但带褐 */
    --text-muted: #7c7770;  /* 中灰褐 */
    --text-dim: #b5afa7;    /* 浅灰褐，辅助文字 */
    --accent: #1c1a17;      /* 主强调 = 文字色，极简不用彩色 */
    --accent-2: #3d3a35;    /* hover深色 */
    --border: #e2ddd6;      /* 细沙米边框 */
    --border-light: #ede9e2;
    --max-width: 1320px;
    --radius: 0px;          /* 无圆角，奢侈品直线感 */
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; transition: all 0.25s ease; }
img { display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

/* ===== TICKER BAR ===== */
.ticker-wrap {
    background: var(--text);   /* 深炭底 */
    overflow: hidden;
    white-space: nowrap;
    padding: 9px 0;
}

.ticker-inner {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}

.ticker-inner span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bg);   /* 象牙白文字 */
    padding: 0 32px;
}

.ticker-inner span::after {
    content: '·';
    margin-left: 32px;
    opacity: 0.4;
}

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

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo span {
    color: var(--text-muted);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--text);   /* 深炭按钮 */
    color: var(--bg);
    padding: 8px 22px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.discord-btn:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .header-center { display: none; }
}

/* ===== FILTERS ===== */
.filters-section {
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--border);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-group:last-child { margin-bottom: 0; }

/* 二级品牌菜单：默认隐藏，点击品类后展开 */
.filter-group-brands {
    display: none;
    overflow: hidden;
    animation: slideDown 0.25s ease;
    width: 100%;
}

.filter-group-brands.visible {
    display: flex;
}

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


.filter-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    padding-right: 8px;
    border-right: 1px solid var(--border-light);
    margin-right: 4px;
}

.filter-btn {
    padding: 7px 18px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ===== HERO ===== */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 180px;
    font-style: italic;
    color: var(--text);
    opacity: 0.02;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.03em;
    line-height: 1;
}

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

.hero-eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 64px;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-title { font-size: 96px; }
}

.hero-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin-top: 16px;
    display: none;
}

/* ===== PRODUCT GRID ===== */
.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.grid-count {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    border-left: 1px solid var(--border);
}

@media (max-width: 1023px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 639px) {
    .product-grid { grid-template-columns: 1fr !important; }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    display: block;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.product-card:hover {
    background: var(--bg-2);
}

.card-image-wrap {
    aspect-ratio: 3/4;
    background: var(--bg-2);
    overflow: hidden;
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%);
}

.product-card:hover .card-image-wrap img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--text);
    color: var(--bg);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0;
}

.card-info {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--border);
}

.card-brand {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.view-details {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.25s, color 0.25s;
}

.product-card:hover .view-details {
    opacity: 1;
    color: var(--text);
}

/* ===== DETAIL PAGE ===== */
.detail-page {
    padding: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.breadcrumb-item { color: var(--text-muted); }
.breadcrumb-item:hover { color: var(--text); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

.detail-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    min-height: calc(100vh - 130px);
}

@media (min-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.detail-image-box {
    background: var(--bg-2);
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--border);
}

.detail-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 48px;
    transition: transform 0.5s ease;
}

.detail-image-box:hover img {
    transform: scale(1.03);
}

.detail-content {
    padding: 48px;
    border-left: 1px solid var(--border);
}

@media (max-width: 1023px) {
    .detail-image-box {
        position: relative;
        height: 60vw;
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .detail-content { padding: 32px 0; }
}

.product-brand-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-title {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    font-style: italic;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .product-title { font-size: 44px; }
}

.product-price-large {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

.buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--text);
    color: var(--bg);
    padding: 18px 32px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-now-btn:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(28, 26, 23, 0.15);
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}

.detail-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-list-item {
    display: flex;
    gap: 12px;
}

.bullet { color: var(--text-muted); }

.product-description-text,
.brand-description-text,
.category-description-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
}

.brand-description-text {
    border-left: 1px solid var(--border);
    padding-left: 20px;
    font-style: italic;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(28, 26, 23, 0.92);
    color: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(28, 26, 23, 0.18);
    backdrop-filter: blur(14px);
    z-index: 999;
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--text);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 20px 48px rgba(28, 26, 23, 0.24);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 639px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

/* ===== RECOMMENDED ===== */
.recommended-section {
    border-top: 1px solid var(--border);
    padding: 0 0 80px;
}

.recommended-header {
    padding: 40px 0 32px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.recommended-title {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-style: italic;
    color: var(--text);
}

.recommended-sub {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.rec-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    border-left: 1px solid var(--border);
}

@media (max-width: 1023px) {
    .rec-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 639px) {
    .rec-grid { grid-template-columns: 1fr !important; }
}

.rec-card {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s;
}

.rec-card:hover { background: var(--bg-2); }

.rec-image-box {
    aspect-ratio: 1/1;
    background: var(--bg-2);
    overflow: hidden;
}

.rec-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(15%);
}

.rec-card:hover .rec-image-box img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.rec-info {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.rec-brand {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.rec-name {
    font-size: 13px;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    height: 2.7em;
}

.rec-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* ===== SITE INFO ===== */
.site-info-sections {
    background: var(--bg-3);    /* 更深一层米色 */
    border-top: 1px solid var(--border);
    padding: 80px 0;
    color: var(--text-muted);
}

.info-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

.faq-section { margin-bottom: 64px; }

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Serif Display', serif;
    font-style: italic;
}

.info-title svg { color: var(--text-muted); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.faq-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.faq-item p, .faq-item ul {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.disclaimer-box {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.transparency-item {
    font-size: 11px;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.transparency-item svg { color: var(--text-muted); }

@media (max-width: 1024px) {
    .faq-grid { grid-template-columns: 1fr; }
    .transparency-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .info-container { padding: 0 24px; }
    .transparency-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-4);   /* 深米色底，区分主内容 */
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 48px;
}

.perks-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perk svg { color: var(--text-muted); flex-shrink: 0; }

.perk-text { display: flex; flex-direction: column; gap: 2px; }

.perk-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
}

.perk-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--text);
}

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

.footer-link {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.footer-link:hover { color: var(--text); }

.footer-socials { display: flex; gap: 8px; }

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.social-btn:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    transform: translateY(-2px);
}

.copyright-bar {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.payment-tags { display: flex; gap: 8px; }

.payment-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 0;
    letter-spacing: 0.12em;
}

@media (max-width: 1024px) {
    .perks-bar { flex-wrap: wrap; }
    .perk { width: calc(50% - 10px); }
    .footer-main { flex-wrap: wrap; gap: 20px; }
    .footer-links { width: 100%; order: 3; }
}

@media (max-width: 640px) {
    .container { padding: 0 24px; }
    .footer-inner { padding: 0 24px; }
    .info-container { padding: 0 24px; }
    .perk { width: 100%; }
    .footer-main { flex-direction: column; align-items: flex-start; }
    .copyright-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .detail-content { padding: 24px 0; }
}
