/* 主样式文件 - 茉悠地板网站 */

/* 引入 burrow.com 字体 */
@font-face {
    font-family: 'Suisse Intl';
    src: url('../fonts/SuisseIntl-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('../fonts/SuisseIntl-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* 基础重置和变量定义 */
:root {
    /* 颜色系统 */
    --primary-color: #a5cd48;      /* 主色 - 环保绿 */
    --secondary-color: #296e73;    /* 辅助色 - 墨绿 */
    --text-primary: #111111;       /* 主要文字颜色 */
    --text-secondary: #666666;     /* 次要文字颜色 */
    --bg-light: #F5F7FA;           /* 背景灰色 */
    --white: #ffffff;
    --black: #000000;
    
    /* 字体系统 */
    --font-family-en: 'Suisse Intl', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-cn: 'Suisse Intl', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* 间距系统 - 基于8px */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* 圆角 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* 容器样式 */
.zs-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-en);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.zs-section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.zs-section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* 段落和文字样式 */
p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* 按钮样式 */
.zs-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-family: var(--font-family-en);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.zs-btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.zs-btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.zs-btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

.zs-btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.zs-btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* 网格系统 */
.zs-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.zs-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.zs-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.zs-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 卡片样式 */
.zs-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.zs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

/* 响应式断点 */
@media (max-width: 1024px) {
    .zs-container {
        max-width: 90%;
        padding: 0 var(--spacing-sm);
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .zs-grid-2,
    .zs-grid-3,
    .zs-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .zs-btn-large {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .zs-container {
        max-width: 95%;
        padding: 0 var(--spacing-xs);
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
}

/* Page Header Styles */
.zs-page-header {
    padding: 140px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
}

.zs-page-header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.zs-page-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.zs-page-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.zs-page-header-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Product Overview Intro */
.zs-product-overview-intro {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.zs-intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.zs-intro-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .zs-page-header {
        padding: 120px 0 80px;
    }
    
    .zs-page-title {
        font-size: 2.2rem;
    }
    
    .zs-page-subtitle {
        font-size: 1rem;
    }
    
    .zs-page-header-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .zs-page-header-actions .zs-btn {
        width: 100%;
    }
    
    .zs-intro-content p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

/* Product Sub Navigation */
.zs-product-subnav {
    position: sticky;
    top: 112px; /* Adjusted for the sticky header height */
    z-index: 99;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
}

.zs-subnav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.zs-subnav-list li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: var(--spacing-xs) 0;
    position: relative;
    transition: var(--transition);
}

.zs-subnav-list li a:hover,
.zs-subnav-list li a.active {
    color: var(--primary-color);
}

.zs-subnav-list li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.zs-subnav-list li a:hover::after,
.zs-subnav-list li a.active::after {
    width: 100%;
}

/* SPC Core Section */
.zs-product-core-section {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
}

.zs-core-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.zs-section-label {
    display: inline-block;
    background-color: rgba(165, 205, 72, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
}

.zs-core-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.zs-core-title span {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 8px;
}

.zs-core-desc p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.zs-core-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
    margin-bottom: var(--spacing-xl);
}

.zs-highlight-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 4px;
}

.zs-core-highlight p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.zs-core-subcategories {
    margin-bottom: var(--spacing-xl);
}

.zs-core-subcategories h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zs-subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zs-tag {
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.zs-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(165, 205, 72, 0.05);
}

.zs-core-actions {
    display: flex;
    gap: var(--spacing-md);
}

.zs-core-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.zs-core-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.5s ease;
}

.zs-core-image:hover img {
    transform: scale(1.03);
}

@media (max-width: 992px) {
    .zs-core-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .zs-core-image {
        order: -1; /* Move image to top on mobile */
    }
}

/* SPC Features Section */
.zs-spc-features {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xxl) var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.zs-features-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.zs-features-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.zs-features-header p {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 500;
}

.zs-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.zs-feature-card {
    background: var(--white);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.zs-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.zs-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: rgba(165, 205, 72, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.zs-feature-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.zs-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.zs-feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .zs-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .zs-spc-features {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    .zs-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .zs-product-subnav {
        top: 70px; /* Adjusted for mobile header height */
        padding: var(--spacing-xs) 0;
    }
    
    .zs-subnav-list {
        gap: var(--spacing-sm);
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px; /* Space for scrollbar */
    }
    
    .zs-subnav-list li {
        flex-shrink: 0;
    }
    
    .zs-subnav-list li a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 工具动画类 */
.zs-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.zs-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.zs-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.zs-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Footer 样式 */
.zs-footer {
    background-color: var(--secondary-color); /* 保持原有的背景色，墨绿或深色 */
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    font-size: 0.9rem;
}

.zs-footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.zs-footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
}

.zs-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zs-footer-column ul li {
    margin-bottom: var(--spacing-md);
}

.zs-footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.zs-footer-column a:hover {
    color: var(--white);
}

.zs-footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.zs-footer-social {
    display: flex;
    gap: 16px;
    margin-top: var(--spacing-lg);
}

.zs-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.zs-footer-social a:hover {
    transform: scale(1.1);
}

.zs-footer-social svg {
    width: 100%;
    height: 100%;
}

.zs-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.zs-footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zs-footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.85rem;
}

.zs-footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.zs-footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .zs-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
