/* ============================================================
   QICHENG · 柒城服装 - 公共样式
   适用于：中英文网站所有页面
   ============================================================ */

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

:root {
    --primary-color: #1a1a2e;
    --accent-color: #c8a97e;
    --text-color: #2a2a2a;
    --text-light: #777;
    --bg-light: #f7f7f5;
    --border: #e8e8e8;
    --radius: 4px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* ===== 导航栏（通用） ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 44px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

.btn-inquiry-nav {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
}

.btn-inquiry-nav:hover {
    background: #b8956d;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.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);
}

/* ===== 英文导航移动端菜单 ===== */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (min-width: 901px) {
    .nav-cta {
        display: inline-block;
    }
}

/* ===== 通用按钮 ===== */
.btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 2px;
}

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

.btn-primary:hover {
    background: #b8956d;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200,169,126,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.7);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 14px 40px;
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 30px;
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 40px;
    opacity: 0.95;
}

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

/* ===== Section 通用 ===== */
.section {
    padding: 100px 60px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 18px;
    letter-spacing: 3px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 60px;
}

.stats-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-unit {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 250px;
}

.gallery-content {
    padding: 24px;
    color: white;
}

.gallery-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.gallery-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer, footer {
    background: #1a1a2e;
    color: white;
    padding: 80px 60px 30px;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    padding-bottom: 60px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}

/* ===== Factory Stats ===== */
.factory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-box {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(30px);
}

.stat-box.reveal {
    opacity: 1;
    transform: translateY(0);
}

.stat-box .stat-number {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-box .stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== Departments Grid ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.department-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(30px);
}

.department-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.department-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.department-card p {
    color: var(--text-light);
    line-height: 1.7;
    padding: 0 20px 20px;
}

/* ===== Process Steps ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.process-step {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.process-step.reveal {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.process-step p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(30px);
}

.category-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ===== Equipment List ===== */
.equipment-list {
    background: var(--primary-color);
    color: white;
    padding: 50px;
    border-radius: var(--radius);
}

.equipment-list h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.equipment-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.equipment-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
}

/* ===== About Content ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.contact-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200,169,126,0.1);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: 0.3s;
}

.close-modal:hover {
    background: var(--accent-color);
    color: white;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(200,169,126,0.35);
    transition: 0.3s;
}

.back-to-top.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: #b8956d;
    transform: translateY(-3px);
}

/* ===== Floating CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 36px;
    left: 36px;
    z-index: 999;
}

.floating-cta .btn {
    padding: 12px 24px;
    font-size: 13px;
}

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

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .nav-container { padding: 0 30px; }
    .nav-menu { gap: 28px; }
    .section { padding: 80px 40px; }
    .footer { padding: 60px 40px 30px; }
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .nav-menu.active { display: flex; }
    .footer-content { gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
    .nav-container { padding: 0 20px; }
    .section { padding: 60px 20px; }
    .footer { padding: 60px 20px 20px; }
    .stats-grid { gap: 20px; }
    .hero-content h1 { font-size: 36px; }
    .modal-content { padding: 30px 20px; }
    .floating-cta { display: none; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 24px; height: 24px; }
    .back-to-top { right: 20px; bottom: 80px; }
}

/* ===== 中文页面特有样式（向后兼容） ===== */
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch a { text-decoration: none; color: var(--text-light); font-size: 13px; transition: color 0.3s; }
.lang-switch a.active, .lang-switch a:hover { color: var(--primary-color); font-weight: 600; }
.lang-switch span { color: var(--border); font-size: 12px; }

.section-title h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 300; color: var(--primary-color); margin-bottom: 18px; letter-spacing: 3px; }
.section-title h2::after { content: ''; display: block; width: 40px; height: 2px; background: var(--accent-color); margin: 16px auto 0; }
.section-title p { font-size: 17px; color: var(--text-light); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.footer-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 28px; letter-spacing: 2px; text-transform: uppercase; color: white; }
.footer-section p { font-size: 14px; line-height: 1.9; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; font-size: 14px; color: #ffffff; }
.footer-section ul li a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.3s; }
.footer-section ul li a:hover { color: var(--accent-color); }

.whatsapp-float { position: fixed; bottom: 100px; right: 30px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.35); z-index: 998; transition: all 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.page-section { padding: 120px 60px; }
.page-section-light { background: white; }
.page-section-gray { background: var(--bg-light); }
