/* ========================================
   GUANGZHOU XIANG FENG SHOES - 官网样式
   极简专业风 · 驼色强调 · 女鞋行业
   ======================================== */

/* CSS 变量 */
:root {
    --bg-primary: #F9F9F7;
    --bg-secondary: #F2F0EC;
    --text-primary: #2C2C2C;
    --text-secondary: #6B6B6B;
    --accent: #C4A484;
    --accent-hover: #B08F6E;
    --white: #FFFFFF;
    --border: #E8E4DE;
    --shadow: rgba(44, 44, 44, 0.06);
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(249, 249, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(249, 249, 247, 0.98);
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Banner
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #EDE8E0 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(196, 164, 132, 0.12) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 18px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ========================================
   产品区
   ======================================== */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.product-img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.03);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   市场区
   ======================================== */
.markets {
    background: var(--bg-secondary);
}

.market-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.market-row:last-child {
    margin-bottom: 0;
}

.market-row.reverse {
    direction: rtl;
}

.market-row.reverse > * {
    direction: ltr;
}

.market-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 2px;
}

.market-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.market-row:hover .market-img img {
    transform: scale(1.03);
}

.market-content {
    padding: 20px 0;
}

.market-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.market-region {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.market-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   关于我们
   ======================================== */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 2px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-name-cn {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 24px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========================================
   联系方式
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-heading {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-hover);
}

.address-block {
    margin-bottom: 28px;
}

.address-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.address-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.address-text-cn {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 4px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   滚动动画
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .market-row.reverse {
        direction: ltr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 80px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-tagline {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .market-name {
        font-size: 22px;
    }
    
    .about-name {
        font-size: 20px;
    }
    
    .contact-heading {
        font-size: 18px;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}