/* ============================================
   品诚酒行 · 品诚酒行
   每一瓶，都是正品
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fcf8f3;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #f5efe8;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: background 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 10px;
    padding: 8px 20px 8px 12px;
    transition: all 0.3s;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #c9a96e;
}

.logo img {
    height: 54px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c9a96e;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: rgba(60, 40, 30, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav a:hover {
    color: #c9a96e;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #6b4030;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1410 0%, #2d1a12 40%, #1a1410 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(160, 96, 32, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #c9a96e;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(201, 169, 110, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    color: #c9a96e;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-primary {
    background: #c9a96e;
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    background: #d4b87a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.4);
}

/* --- Section --- */
.section {
    padding: 100px 0;
}

.section-dark {
    background: #1a1412;
    color: #fff;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #c9a96e;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #999;
    margin-bottom: 60px;
    font-size: 1.05rem;
    letter-spacing: 2px;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.5);
}

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

.about-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

.about-gallery-main:hover img {
    transform: scale(1.03);
}

.about-gallery-sub {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.about-gallery-sub img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 110, 0.1);
    display: block;
    transition: transform 0.4s;
}

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

.about-text h3 {
    font-size: 1.6rem;
    color: #c9a96e;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-text p {
    color: #6b5843;
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.9;
}

/* --- Advantages --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s;
}

.advantage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.advantage-card h3 {
    color: #c9a96e;
    font-size: 1.15rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Stats --- */
.stats {
    background: linear-gradient(135deg, #1a1410 0%, #2d1a12 50%, #1a1410 100%);
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #c9a96e;
    letter-spacing: 2px;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* --- Products --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8f4ef;
    overflow: hidden;
}

.product-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c9a96e, transparent);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #222;
}

.product-info p {
    color: #6b5843;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    background: rgba(201, 169, 110, 0.1);
    color: #b8963e;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 110, 0.2);
}

/* --- Brand Auth Cards --- */
.brand-auth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.brand-auth-card {
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}

.brand-auth-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.35);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.brand-auth-badge {
    display: inline-block;
    font-size: 0.7rem;
    color: #1a1410;
    background: #c9a96e;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.brand-auth-card h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.brand-auth-card p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.brand-auth-link {
    color: #c9a96e;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.brand-auth-card:hover .brand-auth-link {
    letter-spacing: 1px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 400px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(201, 169, 110, 0.15);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* --- Product Photo Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.1);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s;
}

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

/* --- Trace Chain --- */
.trace-chain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.trace-node {
    text-align: center;
    flex: 1;
    min-width: 120px;
    padding: 30px 15px;
    background: #f5efe8;
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 110, 0.15);
    transition: all 0.3s;
}

.trace-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.trace-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.trace-node h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
}

.trace-node p {
    font-size: 0.82rem;
    color: #999;
}

.trace-arrow {
    font-size: 1.5rem;
    color: #c9a96e;
    flex-shrink: 0;
    font-weight: 300;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h4 {
    color: #c9a96e;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}


/* --- Footer --- */
.footer {
    background: #120e0b;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-about h4,
.footer-links h4 {
    color: #c9a96e;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c9a96e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-slogan {
    color: #c9a96e !important;
    margin-top: 4px;
    letter-spacing: 4px;
    font-weight: 500;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #c9a96e;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

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

/* --- Scroll Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #f5efe8;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(201, 169, 110, 0.4);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        color: rgba(60, 40, 30, 0.9);
    }

    .nav-toggle {
        display: block;
    }

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

    .hero-badges {
        gap: 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-gallery-main img {
        height: 200px;
    }

    .about-gallery-sub {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-gallery-sub img {
        height: 90px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 2.2rem;
    }

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

    .brand-auth-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trace-chain {
        flex-direction: column;
    }

    .trace-arrow {
        transform: rotate(90deg);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .brand-auth-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
