/* ================================
   基础样式 & 变量
   ================================ */
:root {
    --color-primary: #2c2c2c;
    --color-secondary: #8b7355;
    --color-accent: #c9a96e;
    --color-light: #f8f6f3;
    --color-white: #ffffff;
    --color-dark: #1a1a1a;
    --color-gray: #6b6b6b;
    --color-light-gray: #e8e4df;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    --container-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

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

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

ul {
    list-style: none;
}

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

/* ================================
   按钮样式
   ================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ================================
   导航栏
   ================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--color-primary);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-white);
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

.nav-cta {
    padding: 10px 24px;
    background: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: 4px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--color-secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-primary);
}

/* ================================
   Hero 区域
   ================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0d0d0d 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease infinite;
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ================================
   通用 Section 样式
   ================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--color-accent);
}

.section-tag::before {
    right: calc(100% + 15px);
}

.section-tag::after {
    left: calc(100% + 15px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-gray);
    font-weight: 300;
}

/* ================================
   产品展示区
   ================================ */
.products {
    background: var(--color-light);
}

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

.product-card {
    background: var(--color-white);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

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

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.cigar-bg {
    background: linear-gradient(135deg, #5c4033, #8b6914);
}

.food-bg {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.beverage-bg {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.dairy-bg {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

.coffee-bg {
    background: linear-gradient(135deg, #6f4e37, #a0522d);
}

.custom-bg {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 24px;
    position: relative;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.6;
}

.product-tag {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================================
   关于我们
   ================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    height: 500px;
}

.placeholder-about-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4c5b0, #a89279);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 64px;
}

.about-content .section-tag {
    text-align: left;
}

.about-content .section-tag::before {
    display: none;
}

.about-text {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-light-gray);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-gray);
    letter-spacing: 1px;
}

/* ================================
   定制服务流程
   ================================ */
.custom {
    background: var(--color-dark);
    color: var(--color-white);
}

.custom .section-title {
    color: var(--color-white);
}

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

.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.step-card:last-child::after {
    display: none;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ================================
   品牌展示条
   ================================ */
.brands {
    padding: 60px 0;
    background: var(--color-light);
    text-align: center;
}

.brands-title {
    font-size: 14px;
    color: var(--color-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.brands-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-light-gray);
    letter-spacing: 2px;
    font-weight: 500;
}

/* ================================
   联系我们
   ================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-tag::before {
    display: none;
}

.contact-text {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-item .label {
    display: block;
    font-size: 12px;
    color: var(--color-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-item .value {
    font-size: 15px;
    color: var(--color-primary);
}

.contact-form-wrapper {
    background: var(--color-light);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1px solid var(--color-light-gray);
    background: var(--color-white);
    transition: var(--transition);
    outline: none;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-accent);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 15px;
    color: var(--color-gray);
    pointer-events: none;
    transition: var(--transition);
    background: var(--color-white);
    padding: 0 4px;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    font-size: 12px;
    color: var(--color-accent);
}

/* ================================
   页脚
   ================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-accent);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.newsletter-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--color-accent);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-secondary);
}

.newsletter-form svg {
    width: 20px;
    height: 20px;
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
}

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

/* ================================
   滚动动画
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ================================
   响应式设计
   ================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-card::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-link {
        color: var(--color-primary);
        padding: 16px 0;
        border-bottom: 1px solid var(--color-light-gray);
        width: 100%;
    }
    
    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 300px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .brands-scroll {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}
