/* ===================================
   沭阳凯杰利系统门窗 - 高端风格样式
   参考摩格门窗设计风格
   =================================== */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===================================
   导航栏 - 黑金配色
   =================================== */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 3px solid #c9a962;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #c9a962;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-menu a {
    color: #fff;
    padding: 12px 20px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #c9a962;
    transition: width 0.3s ease;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: #c9a962;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #c9a962;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===================================
   Hero 轮播区域 - 全屏大气
   =================================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(45,45,74,0.75) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(45,45,74,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: #fff;
}

.hero-content h2 span {
    color: #c9a962;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    letter-spacing: 2px;
}

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

/* 按钮样式 */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #c9a962 0%, #b8941f 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4b878 0%, #c9a962 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,169,98,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #c9a962;
}

.btn-secondary:hover {
    background: #c9a962;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* ===================================
   数据统计区域 - 黑金风格
   =================================== */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(201,169,98,0.3);
    border-bottom: 1px solid rgba(201,169,98,0.3);
}

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

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

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #c9a962;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Arial Black', sans-serif;
}

.stat-label {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ===================================
   区块通用标题样式
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-subtitle {
    color: #c9a962;
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-desc {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   产品系列区域
   =================================== */
.products-section {
    background: #fff;
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c9a962 0%, #b8941f 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: #c9a962;
}

.product-image {
    font-size: 4rem;
    margin-bottom: 20px;
}

.product-card h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-link {
    color: #c9a962;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.product-link:hover {
    color: #b8941f;
}

/* ===================================
   五大性能区域 - 深色背景
   =================================== */
.features-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    padding: 100px 0;
}

.features-section .section-title {
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 40px 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(201,169,98,0.2);
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: #c9a962;
}

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

.feature-item h3 {
    color: #c9a962;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-item p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================================
   工艺细节区域
   =================================== */
.craftsmanship-section {
    background: #fff;
    padding: 100px 0;
}

.craftsmanship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.craft-item {
    text-align: center;
    padding: 30px;
}

.craft-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, rgba(201,169,98,0.1) 0%, rgba(201,169,98,0.2) 100%);
    border-radius: 50%;
    border: 2px solid #c9a962;
}

.craft-item h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.craft-item p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================================
   工厂优势区域 - 金色渐变
   =================================== */
.advantages-section {
    background: linear-gradient(135deg, #c9a962 0%, #b8941f 100%);
    padding: 100px 0;
}

.advantages-section .section-title {
    color: #1a1a1a;
}

.advantages-section .section-subtitle {
    color: #1a1a1a;
    opacity: 0.7;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

.advantage-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.advantage-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: rgba(26,26,26,0.3);
    margin-bottom: 15px;
    font-family: 'Arial Black', sans-serif;
}

.advantage-item h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.advantage-item p {
    color: rgba(26,26,26,0.85);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================================
   应用场景区域
   =================================== */
.scenarios-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.scenario-item {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.scenario-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.scenario-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.scenario-item h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.scenario-item p {
    color: #666;
    font-size: 0.9rem;
}

/* ===================================
   CTA 行动号召区域
   =================================== */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.cta-section h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* ===================================
   页脚 - 深色高端
   =================================== */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 60px 0 30px;
    border-top: 3px solid #c9a962;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #c9a962;
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 2;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 2px solid #c9a962;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 450px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

.product-card,
.feature-item,
.advantage-item,
.scenario-item {
    animation: fadeInUp 0.6s ease forwards;
}
