/*
Theme Name: Qiyu Textile B2B (Zhang Qi)
Theme URI: https://example.com
Author: AI Developer
Description: Official B2B Theme for Qiyu Textile.
Version: 4.0
*/

:root {
    --primary-blue: #004481; /* 齐瑜深蓝 */
    --accent-red: #D31718;   /* 强调红 */
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f4f6f8;
    --white: #ffffff;
}

/* 基础设置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.6; color: var(--text-dark); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* 布局容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* 头部 Header */
header { background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 999; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { font-size: 22px; font-weight: 900; color: var(--primary-blue); text-transform: uppercase; line-height: 1.2; }
.logo small { display: block; font-size: 12px; color: var(--text-gray); font-weight: 500; }
.main-menu ul { display: flex; gap: 30px; align-items: center; }
.main-menu a { font-weight: 600; font-size: 15px; color: var(--primary-blue); }
.contact-btn { background: var(--accent-red); color: white !important; padding: 10px 25px; border-radius: 4px; }

/* 按钮 */
.btn { display: inline-block; padding: 14px 35px; border-radius: 4px; font-weight: bold; cursor: pointer; text-transform: uppercase; font-size: 14px; letter-spacing: 0.5px; }
.btn-primary { background: var(--accent-red); color: white; border: 2px solid var(--accent-red); }
.btn-primary:hover { background: #b01010; border-color: #b01010; }
.btn-outline { border: 2px solid white; color: white; background: transparent; }
.btn-outline:hover { background: white; color: var(--primary-blue); }

/* 标题 */
.section-title { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 15px; font-weight: 800; }
.section-desc { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin: 0 auto 50px auto; }

/* 优势卡片 */
.feature-card { background: white; padding: 30px; border-radius: 6px; border: 1px solid #eee; text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--primary-blue); }
.feature-icon { font-size: 3rem; margin-bottom: 15px; }

/* 色卡展示 */
.chart-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; }
.chart-header { background: var(--primary-blue); color: white; padding: 12px; text-align: center; font-weight: bold; font-size: 1.1rem; }
.chart-img-wrap { height: 240px; overflow: hidden; position: relative; }
.chart-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.chart-body { padding: 20px; text-align: center; }
.stock-tag { background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-bottom: 10px; display: inline-block; }

/* 联系区域 */
.contact-section { background: var(--bg-light); }
.contact-info-box { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.info-row { display: flex; align-items: flex-start; margin-bottom: 25px; }
.info-icon { font-size: 24px; margin-right: 15px; min-width: 30px; }
.info-content strong { display: block; color: var(--primary-blue); font-size: 14px; text-transform: uppercase; margin-bottom: 5px; }
.info-content p { font-size: 18px; font-weight: 500; color: var(--text-dark); margin: 0; }

/* 底部 */
footer { background: #111; color: #999; padding: 40px 0; text-align: center; font-size: 14px; }

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-blue);
}

/* 响应式 */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    .header-inner { flex-direction: row; height: 70px; padding: 0 20px; justify-content: space-between; }
    .logo { font-size: 18px; }
    .logo small { display: none; }

    .mobile-menu-toggle { display: block; }

    .main-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 998;
    }

    .main-menu.active { left: 0; }

    .main-menu ul {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
        padding: 0 20px;
    }

    .main-menu a {
        font-size: 18px;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: block;
    }

    .contact-btn {
        background: var(--accent-red) !important;
        color: white !important;
        text-align: center;
        border-radius: 6px;
        margin-top: 20px;
    }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .section-desc { font-size: 1rem; }

    .feature-card { padding: 20px; }
    .feature-icon { font-size: 2.5rem; }

    .chart-card { margin-bottom: 20px; }
    .chart-img-wrap { height: 200px; }

    .contact-info-box { padding: 30px 20px; }
    .info-row { margin-bottom: 20px; }
    .info-content p { font-size: 16px; }

    .btn { padding: 12px 30px; font-size: 13px; }

    h1 { font-size: 2rem !important; }
    p { font-size: 1.2rem !important; }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* 快速导航悬浮按钮 */
.quick-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: all 0.3s ease;
}

.quick-nav.active .quick-nav-toggle {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.quick-nav-toggle {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-nav-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 160px;
    overflow: hidden;
}

.quick-nav.active .quick-nav-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.quick-nav-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.quick-nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.quick-nav-item:last-child {
    border-bottom: none;
}

.quick-nav-item.phone {
    background: #4CAF50;
    color: white;
}

.quick-nav-item.phone:hover {
    background: #45a049;
}

.quick-nav-item.wechat {
    background: #07C160;
    color: white;
}

.quick-nav-item.wechat:hover {
    background: #06ad56;
}

/* 页面滚动动画 */
.feature-card, .chart-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

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

/* 增强的hover效果 */
.feature-card {
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 40px rgba(0,68,129,0.15);
    transform: translateY(-8px) scale(1.02);
}

.chart-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chart-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.chart-card:hover .chart-img-wrap img {
    transform: scale(1.1);
}

.chart-img-wrap img {
    transition: transform 0.6s ease;
}

/* 改进按钮样式 */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* 懒加载图片样式 */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #f0f0f0 50%, #f8f8f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }

    .contact-info-box { padding: 25px 15px; }
    .info-content p { font-size: 14px; }

    .info-content strong { font-size: 12px; }

    footer { padding: 30px 0; font-size: 12px; }

    .quick-nav {
        bottom: 20px;
        right: 20px;
    }

    .quick-nav-toggle {
        padding: 12px 16px;
        font-size: 12px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
        font-size: 20px;
    }

    .quick-nav-menu {
        right: -20px;
        min-width: 140px;
    }

    .quick-nav-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* 页面样式 */
.page-hero {
    background: linear-gradient(rgba(0,40,80,0.8), rgba(0,40,80,0.8)), url('https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; padding: 120px 0; color: white; text-align: center;
}

.page-title { font-size: 3rem; font-weight: 800; margin-bottom: 15px; }
.page-subtitle { font-size: 1.3rem; margin-bottom: 0; opacity: 0.9; }

/* 公司简介页面样式 */
.company-timeline {
    margin: 40px 0;
}

.timeline-item {
    display: flex; margin-bottom: 40px; align-items: flex-start;
}

.timeline-year {
    background: var(--primary-blue); color: white; padding: 10px 20px;
    border-radius: 25px; font-weight: bold; margin-right: 25px; min-width: 100px; text-align: center;
}

.timeline-content h3 {
    color: var(--primary-blue); margin-bottom: 10px; font-size: 1.3rem;
}

.timeline-content p {
    line-height: 1.6; color: var(--text-gray);
}

.about-image {
    width: 100%; height: 400px; object-fit: cover; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.value-card {
    background: white; padding: 40px 30px; border-radius: 8px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease; border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.value-icon { font-size: 3rem; margin-bottom: 20px; }
.value-card h3 { color: var(--primary-blue); margin-bottom: 15px; }

/* 统计数字样式 */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem; color: var(--text-gray); text-transform: uppercase;
    letter-spacing: 1px;
}

/* 团队样式 */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px;
}

.team-member {
    text-align: center; background: white; padding: 30px; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-photo {
    width: 200px; height: 200px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
}

.team-photo img {
    width: 100%; height: 100%; object-fit: cover;
}

.team-member h3 {
    color: var(--primary-blue); margin-bottom: 5px;
}

.team-role {
    color: var(--accent-red); font-weight: 600; margin-bottom: 10px;
}

.team-bio {
    color: var(--text-gray); line-height: 1.6; font-size: 0.95rem;
}

.showroom-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin: 50px 0;
    background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.showroom-address h3, .showroom-hours h3 {
    color: var(--primary-blue); margin-bottom: 15px;
}

/* 产品页面样式 */
.product-filters {
    display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; padding: 40px;
    background: white; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.filter-group {
    display: flex; flex-direction: column; gap: 8px;
}

.filter-group label {
    font-weight: 600; color: var(--primary-blue);
}

.filter-select {
    padding: 10px 15px; border: 2px solid #e0e0e0; border-radius: 6px;
    font-size: 14px; background: white; cursor: pointer; transition: border-color 0.3s;
}

.filter-select:focus { border-color: var(--primary-blue); outline: none; }

.products-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

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

.product-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.product-tag {
    position: absolute; top: 15px; right: 15px; background: var(--accent-red);
    color: white; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold;
}

.product-tag.premium {
    background: linear-gradient(45deg, #FFD700, #FFA500); color: var(--text-dark);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: var(--primary-blue); margin-bottom: 5px; font-size: 1.3rem;
}

.product-code {
    color: var(--text-gray); font-size: 14px; margin-bottom: 15px;
}

.product-desc {
    color: var(--text-dark); line-height: 1.6; margin-bottom: 20px;
}

.product-specs {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px;
}

.spec {
    font-size: 13px; color: var(--text-gray); background: var(--bg-light);
    padding: 5px 10px; border-radius: 4px; display: inline-block;
}

.product-actions {
    display: flex; justify-content: space-between; align-items: center;
}

.stock-status {
    font-size: 14px; font-weight: 600;
}

.stock-status:nth-of-type(1) {
    color: #2e7d32;
}

.btn-sm {
    padding: 8px 20px; font-size: 12px;
}

/* 自定义服务样式 */
.custom-services {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    margin: 50px 0;
}

.service-item {
    background: white; padding: 30px; border-radius: 8px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon { font-size: 2.5rem; margin-bottom: 20px; }
.service-item h3 { color: var(--primary-blue); margin-bottom: 15px; }
.service-item p { color: var(--text-gray); line-height: 1.6; }

/* FAQ页面样式 */
.faq-container {
    max-width: 900px; margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.category-title {
    color: var(--primary-blue); font-size: 1.8rem; margin-bottom: 25px;
    padding-bottom: 10px; border-bottom: 3px solid var(--accent-red); display: inline-block;
}

.faq-item {
    background: white; border-radius: 8px; margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05); overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 25px; cursor: pointer; transition: background-color 0.3s;
    background: white;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    color: var(--primary-blue); font-size: 1.1rem; margin: 0; font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem; color: var(--primary-blue); font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    background: var(--bg-light);
}

.faq-answer p {
    color: var(--text-dark); line-height: 1.6; margin-bottom: 15px;
}

.faq-answer ul {
    margin: 0 0 15px 0; padding-left: 20px;
}

.faq-answer li {
    color: var(--text-gray); margin-bottom: 8px;
}

.faq-answer strong {
    color: var(--primary-blue);
}

.faq-answer {
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px 25px;
    max-height: 600px;
}

/* 联系选项样式 */
.contact-options {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    margin-top: 50px;
}

.contact-option {
    background: white; padding: 40px 30px; border-radius: 8px;
    text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon { font-size: 3rem; margin-bottom: 20px; }
.contact-option h3 { color: var(--primary-blue); margin-bottom: 15px; }
.contact-option p { color: var(--text-gray); margin-bottom: 25px; }

/* 响应式 - 页面 */
@media (max-width: 768px) {
    .page-hero { padding: 80px 0; }
    .page-title { font-size: 2rem; }
    .page-subtitle { font-size: 1.1rem; }

    .timeline-item { flex-direction: column; text-align: center; }
    .timeline-year { margin-right: 0; margin-bottom: 15px; }

    .about-image { height: 250px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 2rem; }

    .team-grid { grid-template-columns: 1fr; }
    .showroom-info { grid-template-columns: 1fr; gap: 30px; }

    .product-filters { flex-direction: column; gap: 20px; padding: 25px; }

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

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

    .faq-question h3 { font-size: 1rem; }
    .category-title { font-size: 1.5rem; }

    .contact-options { grid-template-columns: 1fr; gap: 20px; }
    .contact-option { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .product-filters { padding: 20px; }
    .filter-group { width: 100%; }

    .faq-question { padding: 15px 20px; }
    .faq-answer { padding: 0 20px 15px 20px; }

    .stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .stat-number { font-size: 1.8rem; }
}