:root {
    --primary-red: #e70012;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --bg-light: #F5F5F5;
    --bg-dark: #111111;
    --container-width: 1580px;
    --max-page-width: 2560px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'BodyFont', Helvetica, Arial, sans-serif !important;
    text-decoration: none;
}

@font-face {
    font-family: 'confFont';
    src: url('./fonts/BAGABT.TTF') format('truetype');
    font-style: normal;

}

@font-face {
    font-family: 'BodyFont';
    src: url('./fonts/Poppins\ Regular.otf') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'BodyFont';
    src: url('./fonts/Poppins-SemiBold.ttf') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'BodyFont';
    src: url('./fonts/Poppins-Bold.ttf') format('woff2');
    font-weight: 700;
    font-style: normal;
}

ul,
li {
    list-style: none;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    max-width: var(--max-page-width);
    margin: 0 auto;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-red {
    display: inline-block;
    background-color: var(--primary-red);
    color: white !important;
    padding: 14px 80px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s;
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    width: auto !important;
    border: 0;

    &:hover {
        background-color: #c2000f;
    }
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
    color: #000;

    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background-color: var(--primary-red);
    }
}

.hero {
    position: relative;
    background: url('../img/top-ban.jpg') no-repeat center center/cover;
    padding: 100px 0;
    min-height: 700px;
    display: flex;
    align-items: center;

    .container {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 50px;
    }

    .hero-content {
        color: white;
        flex: 1;

        h2 {
            color: var(--primary-red);
            font-size: 48px;
            margin-bottom: 16px;
            letter-spacing: 2px;
            font-weight: 700;
            font-family: 'confFont', 'Arial Black', sans-serif !important;
            /* 核心修复 */
        }

        h1 {
            font-size: 56px;
            line-height: 1.2;
            margin-bottom: 20px;
            font-weight: 800;
            color: #fff !important;
        }

        p.subtitle {
            font-size: 18px;
            margin-bottom: 36px;
            opacity: 0.9;
            color: #fff !important;
        }

        ul.features-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 80px;

            li {
                display: flex;
                align-items: center;
                font-size: 20px;
                font-weight: 500;

                i {
                    color: var(--text-dark);
                    background: white;
                    border-radius: 50%;
                    width: 20px;
                    height: 20px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-right: 10px;
                    font-size: 12px;
                    font-family: "Font Awesome 6 Free" !important
                }
            }
        }
    }

    .form-card {
        background: white;
        padding: 30px;
        border-radius: 8px;
        width: 450px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

        .radio-group {
            display: flex;
            gap: 30px;
            margin-bottom: 20px;
            font-size: 16px;

            label {
                display: flex;
                align-items: center;
                cursor: pointer;

                input {
                    margin-right: 5px;
                    accent-color: var(--primary-red);
                    cursor: pointer;
                }
            }
        }

        .input-row {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;

            .field-half {
                flex: 1;
            }
        }

        .form-group {
            margin-bottom: 16px;

            label {
                display: block;
                font-size: 14px;
                color: var(--text-dark);
                font-weight: 600;
                margin-bottom: 5px;
                color: #444;
            }

            input,
            select {
                width: 100%;
                padding: 10px;
                border: 1px solid #ddd;
                border-radius: 4px;
                outline: none;
                font-size: 16px;
                color: #333;
                background: #fff;

                &:focus {
                    border-color: var(--primary-red);
                }

                &::placeholder {
                    color: #c0c0c0;
                }

                &:invalid,
                option[value=""][disabled] {
                    color: #666;
                }
            }
        }


        .form-submit-btn {
            width: 100%;
            margin-top: 10px;
            font-size: 18px !important;
        }

        .terms {
            margin-top: 16px;
            font-size: 12px;
            color: #999;
            text-align: center;
        }
    }
}

.products-section {
    padding: 80px 0;
    background: #fff;

    ul.products-grid {
        display: flex;
        justify-content: space-between;
        margin-bottom: 88px;
        flex-wrap: wrap;

        li {
            text-align: center;
            width: 13%;

            .icon-circle {
                border-radius: 50%;
                border: 1px solid #ddd;
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 0 auto 20px;
                transition: 0.3s;
                background-color: #fff;
                cursor: pointer;

                img {
                    width: 100%;
                    height: 100%;
                    background-size: cover;
                    border-radius: 50%;
                }

                &:hover {
                    border-color: var(--primary-red);
                    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
                    transform: scale(1.01);
                }
            }

            span {
                font-weight: 500;
                font-size: 16px;
                color: #333;
            }
        }
    }

    ul.features-row {
        display: flex;
        justify-content: center;
        gap: 120px;

        li {
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: 400;
            flex-wrap: wrap;
            justify-content: center;
            text-align: center;

            i {
                color: white;
                background: var(--primary-red);
                width: 20px;
                height: 20px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                margin-right: 10px;
                font-size: 12px;
                font-family: "Font Awesome 6 Free" !important
            }
        }
    }
}

.applications-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    background-image: repeating-linear-gradient(45deg, #111 0px, #111 20px, #0a0a0a 20px, #0a0a0a 40px);
    color: white;

    .app-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;

        .app-card {
            background: #1a1a1a;
            border-radius: 4px;
            overflow: hidden;
            transition: transform 0.3s;

            a {
                color: #fff;
            }

            &:hover {
                transform: translateY(-5px);
            }

            .img-wrapper {
                height: 250px;
                overflow: hidden;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            .content {
                padding: 30px;

                h3 {
                    margin-bottom: 10px;
                    font-size: 21px;
                    color: #fff;
                    font-weight: bold;
                }

                p {
                    font-size: 16px;
                    color: #aaa;
                    margin-bottom: 20px;
                    line-height: 1.5;
                    min-height: 40px;
                    text-indent: 0 !important;
                }

                ul.tags {
                    display: flex;
                    gap: 10px;
                    flex-wrap: wrap;
                    padding: 0 !important;

                    li {
                        font-size: 14px;
                        border: 1px solid #444;
                        padding: 5px 13px;
                        border-radius: 20px;
                        color: #ccc;
                        background: #222;
                    }
                }
            }
        }
    }
}

.why-choose-section {
    padding: 100px 0;
    background: #fff;

    .container {
        display: flex;
        gap: 80px;
        align-items: center;
    }

    .image-box {
        flex: 1;
        position: relative;

        &::before {
            content: '';
            position: absolute;
            top: -20px;
            left: -20px;
            width: 130px;
            height: 100px;
            background: var(--primary-red);
            z-index: 1;
        }

        img {
            width: 100%;
            border-radius: 8px;
            position: relative;
            z-index: 2;
            box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.1);
            min-height: 400px;
            object-fit: cover;
        }
    }

    .content-box {
        flex: 1;

        .section-title {
            text-align: left;
            margin-bottom: 40px;

            &::after {
                left: 0;
                transform: none;
            }
        }

        ul.reasons-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;

            li {
                .icon {
                    width: 80px;
                    height: 80px;
                    background-color: #f5f5f5;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-bottom: 16px;
                    font-size: 28px;
                    color: #000;
                }

                p {
                    font-size: 16px;
                    line-height: 1.6;
                    color: #222;
                    font-weight: 400;
                }

                i {
                    font-family: "Font Awesome 6 Free" !important;
                }
            }
        }
    }
}

.quote-section {
    padding: 80px 0;
    background-color: #F9F9F9;

    .quote-form-container {
        background: white;
        padding: 60px;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);

        .radio-group {
            display: flex;
            justify-content: center;
            gap: 150px;
            margin-bottom: 30px;

            label {
                cursor: pointer;
                display: flex;
                align-items: center;
                font-weight: 500;
                font-size: 18px;

                input {
                    margin-right: 10px;
                    accent-color: var(--primary-red);
                    transform: scale(1.2);
                    cursor: pointer;
                }
            }
        }

        form {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 30px;
            line-height: 1;

            .form-group {
                label {
                    display: block;
                    font-size: 14px;
                    color: #444;
                    margin-bottom: 8px;
                    font-weight: 500;
                }

                input,
                select {
                    width: 100%;
                    padding: 16px;
                    border: 1px solid #eee;
                    border-radius: 4px;
                    background-color: #fff;
                    font-size: 16px;
                    color: #333;

                    &:focus {
                        border-color: var(--primary-red);
                        outline: none;
                    }

                    &::placeholder {
                        color: #c0c0c0;
                    }

                    &:invalid,
                    option[value=""][disabled] {
                        color: #666;
                    }
                }
            }

            .form-actions {
                grid-column: 1 / -1;
                text-align: center;
                margin-top: 30px;

                .btn-red {
                    width: 36%;
                    font-size: 16px;
                }

                p {
                    font-size: 14px;
                    color: #aaa;
                    margin-top: 16px;
                }
            }
        }
    }
}

.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 80px 0;
    font-size: 14px;

    .footer-header {
        margin-bottom: 40px;

        h3 {
            font-size: 18px;
            text-transform: uppercase;
            font-weight: 800;
            margin-bottom: 13px;
            letter-spacing: 1px;
            color: #fff !important;
        }

        .underline {
            width: 40px;
            height: 3px;
            background-color: var(--primary-red);
        }
    }

    ul.contact-info {
        display: flex;
        flex-wrap: wrap;
        gap: 200px;

        li.contact-block {
            display: flex;
            flex-direction: column;
            gap: 16px;

            .block-head {
                display: flex;
                align-items: center;
                gap: 16px;
                font-weight: 500;

                i {
                    color: var(--primary-red);
                    font-size: 20px;
                    font-family: "Font Awesome 6 Brands" !important;
                }

                span.label {
                    color: #fff;
                    font-size: 16px;
                }
            }

            .block-body {
                display: flex;
                gap: 40px;
                color: #ccc;
                font-size: 16px;
                padding-left: 34px;
            }
        }
    }
}

@media (max-width: 1200px) {
    .icon-circle {
        width: 140px !important;
        height: 140px !important;
    }

    .products-section {
        & ul.products-grid {
            li {
                width: 33% !important;
            }
        }
    }

    .products-section {
        ul.features-row {
            gap: 40px;
        }
    }

    .hero {
        height: auto;
        padding: 80px 0;

        .container {
            flex-direction: column;
        }

        .hero-content {
            text-align: center;

            ul.features-list {
                justify-content: center;
                max-width: 600px;
                margin: 0 auto 40px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }
        }

        .form-card {
            width: 100%;
            max-width: 500px;
        }
    }

    .why-choose-section .container {
        flex-direction: column;
    }

    .why-choose-section .image-box {
        width: 100%;
        height: 400px;

        img {
            height: 100%;
        }
    }

    .quote-section .quote-form-container {
        padding: 30px;

        form {
            grid-template-columns: 1fr;
            gap: 16px;

            .form-actions {
                margin-top: 10px;

                .btn-red {
                    width: 100%;
                }
            }
        }

        .form-group[style*="grid-column"] {
            grid-column: auto !important;
        }
    }

    footer ul.contact-info {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
        margin-bottom: 32px;
    }

    .hero .hero-content h1 {
        font-size: 36px;
    }

    .hero .hero-content ul.features-list {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .radio-group {
        gap: 16px !important;
    }

    .products-section {
        ul.products-grid {
            justify-content: center;
            gap: 20px;

            li {
                width: 45%;
                margin-bottom: 20px;
            }
        }

        ul.features-row {
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
    }

    .applications-section .app-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-section .content-box ul.reasons-grid {
        grid-template-columns: 1fr;
    }

    .quote-section .quote-form-container {
        padding: 30px;
    }

    footer ul.contact-info {
        flex-direction: column;
        gap: 40px;

        li.contact-block .block-body {
            flex-direction: column;
            gap: 10px;
        }
    }
}

.fa-envelope:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    content: "\f0e0";
}