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

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --success: #10b981;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 顶部公告栏 */
.top-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

.top-bar i {
    margin-right: 8px;
}

/* 导航栏 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 32px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.logo span {
    font-size: 12px;
    color: var(--gray);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--dark);
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

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

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 25px;
    padding: 8px 15px;
    gap: 8px;
}

.search-box i {
    color: var(--gray);
    font-size: 14px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 150px;
    font-size: 14px;
}

.currency-select, .lang-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
}

.cart-btn, .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.cart-btn:hover, .menu-toggle:hover {
    background: var(--primary);
    color: white;
}

.menu-toggle {
    display: none;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

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

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

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero区域 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 600px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--dark), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

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

.section-header.left {
    text-align: left;
}

.section-tag {
    display: inline-block;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.left p {
    margin: 0;
}

.view-all {
    float: right;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

/* 产品系列 */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.series-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.series-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 148, 136, 0.1);
}

.series-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--primary);
}

.series-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.series-card p {
    font-size: 13px;
    color: var(--gray);
}

/* 全球市场 */
.global-market {
    background: linear-gradient(180deg, #fffbeb 0%, white 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--gray);
    font-weight: 500;
}

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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border-left: 4px solid var(--secondary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* 明星产品 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-badge.red {
    background: #ef4444;
    color: white;
}

.product-img {
    height: 250px;
    overflow: hidden;
    background: #f8fafc;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card h4 {
    padding: 15px 15px 8px;
    font-size: 15px;
    font-weight: 600;
}

.stars {
    padding: 0 15px;
    color: #f59e0b;
    font-size: 13px;
}

.stars span {
    color: var(--gray);
    margin-left: 5px;
}

.price {
    padding: 10px 15px 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price span {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

/* 工厂优势 */
.advantages {
    background: var(--light);
}

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

.advantage-card {
    background: white;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 28px;
    color: white;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--gray);
    font-size: 14px;
}

/* 联系我们 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-list {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray);
}

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

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    font-size: 20px;
}

.footer-logo span {
    color: #94a3b8;
}

.footer-col p {
    color: #94a3b8;
    margin: 20px 0;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

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

.footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 3px;
}

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

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

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* 浮动WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .search-box input {
        width: 100px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 32px;
    }
    .slide-content h3 {
        font-size: 20px;
    }
    .slide-content p {
        font-size: 16px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
    }
    .nav-actions .currency-select,
    .nav-actions .lang-select {
        display: none;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .series-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 25px 20px;
    }
}
/* ==================== 阿拉伯语 RTL 适配 ==================== */
[dir="rtl"] .top-bar i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .feature-card {
    border-left: none;
    border-right: 4px solid var(--secondary);
}

[dir="rtl"] .view-all {
    float: left;
}

[dir="rtl"] .price span {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .stars span {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }
}

/* ==================== 产品目录 ==================== */
.catalog {
    background: var(--light);
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
}

.cat-tab {
    border: 1px solid var(--border);
    background: white;
    color: var(--dark);
    padding: 9px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}

.cat-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.catalog-grid .product-card {
    background: white;
}

.catalog-grid .product-img {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.catalog-grid .product-img img {
    object-fit: contain;
}

.catalog-grid h4 {
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

.product-badge.orange {
    background: var(--secondary);
    color: white;
}

.price .inquiry {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
}

.catalog-more {
    text-align: center;
    margin-top: 35px;
}


/* 页脚小字提示 */
.footer-note {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}


/* ==================== 工厂实拍 ==================== */
.factory-tour {
    background: white;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.factory-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: white;
}

.factory-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.factory-grid figure:hover img {
    transform: scale(1.04);
}

.factory-grid figcaption {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

@media (max-width: 768px) {
    .factory-grid {
        grid-template-columns: 1fr;
    }
    .factory-grid img {
        height: 220px;
    }
}
