/* ============================================================
   首页样式 (原创)
   ============================================================ */

/* ---------- 1. Hero 横幅 ---------- */
.hero {
    position: relative;
    height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url("../images/banner.jpg") center center / cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 46, 28, 0.78) 0%, rgba(15, 118, 74, 0.55) 100%);
}

.hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero .hero-tag {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    animation: fadeInDown 0.8s ease both;
}

.hero h1 {
    font-size: calc(var(--font-ratio) * 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    animation: fadeInUp 0.9s ease 0.2s both;
}

.hero h1 em {
    color: #8de0b0;
    font-style: normal;
}

.hero .hero-desc {
    font-size: calc(var(--font-ratio) * 17px);
    line-height: 1.7;
    margin-bottom: 36px;
    opacity: 0.92;
    animation: fadeInUp 0.9s ease 0.4s both;
}

.hero .hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.9s ease 0.6s both;
}

/* Hero 下方价值徽章条 */
.hero-badges {
    background: #fff;
    display: flex;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
}

.hero-badge {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 30px;
    border-right: 1px solid #f0f0f0;
    transition: var(--transition);
}

.hero-badge:last-child {
    border-right: none;
}

.hero-badge:hover {
    background: var(--theme-color-light);
}

.hero-badge img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.hero-badge .hb-title {
    font-size: calc(var(--font-ratio) * 16px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.hero-badge .hb-sub {
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-mute);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 2. 产品中心 ---------- */
.product-section {
    padding: 80px 0;
    background: #fff;
}

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

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--theme-color);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

.product-card .pc-img {
    width: 100%;
    height: 260px;
    background: #f5f7f6;
    overflow: hidden;
    position: relative;
}

.product-card .pc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-card .pc-body {
    padding: 26px 24px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .pc-title {
    font-size: calc(var(--font-ratio) * 20px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.product-card .pc-params {
    margin-bottom: 20px;
    flex: 1;
}

.product-card .pc-params li {
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-sub);
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
}

.product-card .pc-params li strong {
    color: var(--text-main);
    min-width: 80px;
    font-weight: 600;
}

.product-card .pc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-color);
    font-size: calc(var(--font-ratio) * 14px);
    font-weight: 600;
    margin-top: auto;
}

.product-card .pc-link img {
    width: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .pc-link img {
    transform: translateX(5px);
}

/* ---------- 3. 应用案例 ---------- */
.case-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.case-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.case-tab {
    padding: 10px 30px;
    font-size: calc(var(--font-ratio) * 15px);
    font-weight: 600;
    color: var(--text-sub);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.case-tab:hover {
    color: var(--theme-color);
    border-color: var(--theme-color);
}

.case-tab.active {
    background: var(--theme-color);
    color: #fff;
    border-color: var(--theme-color);
}

.case-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.case-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-slide {
    min-width: 100%;
    position: relative;
}

.case-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.case-slide .case-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.case-slide .case-caption h4 {
    font-size: calc(var(--font-ratio) * 20px);
    margin-bottom: 4px;
}

.case-slide .case-caption p {
    font-size: calc(var(--font-ratio) * 13px);
    opacity: 0.9;
}

.case-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    font-size: 22px;
    color: var(--theme-color);
}

.case-arrow:hover {
    background: var(--theme-color);
    color: #fff;
}

.case-arrow.prev { left: 20px; }
.case-arrow.next { right: 20px; }

.case-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.case-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9d4cd;
    cursor: pointer;
    transition: var(--transition);
}

.case-dots button.active {
    background: var(--theme-color);
    width: 28px;
    border-radius: 5px;
}

/* ---------- 4. 关于我们 ---------- */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.about-img .about-stat {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: var(--theme-color);
    color: #fff;
    padding: 24px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 118, 74, 0.35);
}

.about-img .about-stat .num {
    font-size: calc(var(--font-ratio) * 38px);
    font-weight: 700;
    line-height: 1;
}

.about-img .about-stat .label {
    font-size: calc(var(--font-ratio) * 13px);
    letter-spacing: 2px;
    margin-top: 4px;
    opacity: 0.9;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-content .section-title .title-sub {
    padding-left: 0;
}

.about-content .section-title .title-sub::before {
    display: none;
}

.about-content p.about-desc {
    font-size: calc(var(--font-ratio) * 15px);
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 28px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 32px;
}

.about-feature {
    display: flex;
    gap: 12px;
}

.about-feature img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.about-feature h5 {
    font-size: calc(var(--font-ratio) * 16px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-sub);
    line-height: 1.6;
}

/* ---------- 5. Why Choose Us ---------- */
.why-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0b3b24 0%, #0F764A 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: "";
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    border-radius: 50%;
}

.why-section .section-title h2,
.why-section .section-title .title-sub {
    color: #fff;
}

.why-section .section-title .title-sub::before,
.why-section .section-title .title-sub::after {
    background: #8de0b0;
}

.why-section .section-title p {
    color: rgba(255, 255, 255, 0.85);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.why-item {
    text-align: center;
    padding: 30px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
}

.why-item .why-num {
    font-size: calc(var(--font-ratio) * 46px);
    font-weight: 700;
    line-height: 1;
    color: #8de0b0;
    margin-bottom: 8px;
}

.why-item .why-label {
    font-size: calc(var(--font-ratio) * 15px);
    font-weight: 600;
    margin-bottom: 8px;
}

.why-item .why-desc {
    font-size: calc(var(--font-ratio) * 13px);
    opacity: 0.82;
    line-height: 1.6;
}

/* ---------- 6. 核心价值观 ---------- */
.values-section {
    padding: 80px 0;
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--theme-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.value-card:hover {
    border-color: var(--theme-color);
    box-shadow: var(--shadow-card);
    transform: translateY(-6px);
}

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

.value-card .vc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--theme-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card .vc-icon img {
    width: 32px;
    height: 32px;
}

.value-card h4 {
    font-size: calc(var(--font-ratio) * 17px);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.value-card .vc-line {
    width: 30px;
    height: 2px;
    background: var(--theme-color);
    margin: 0 auto 14px;
}

.value-card p {
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-sub);
    line-height: 1.7;
}

/* ---------- 7. 询盘表单 ---------- */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    color: #fff;
    background: linear-gradient(135deg, #0b3b24 0%, #0F764A 100%);
    padding: 48px 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.contact-info::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    border-radius: 50%;
}

.contact-info h3 {
    font-size: calc(var(--font-ratio) * 26px);
    margin-bottom: 14px;
    font-weight: 700;
}

.contact-info .ci-desc {
    font-size: calc(var(--font-ratio) * 14px);
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-info .ci-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-info .ci-item img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info .ci-item .ci-label {
    font-size: calc(var(--font-ratio) * 12px);
    opacity: 0.75;
    margin-bottom: 2px;
}

.contact-info .ci-item .ci-val {
    font-size: calc(var(--font-ratio) * 15px);
    font-weight: 600;
}

.contact-form {
    background: #fff;
    padding: 40px 36px;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
    font-size: calc(var(--font-ratio) * 22px);
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form .cf-desc {
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-mute);
    margin-bottom: 26px;
}

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

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-sub);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-field label .req {
    color: #e0413e;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0 14px;
    font-size: calc(var(--font-ratio) * 14px);
    background: #fff;
    transition: var(--transition);
}

.form-field textarea {
    height: 110px;
    padding: 10px 14px;
    resize: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px var(--theme-color-light);
}

.form-success {
    display: none;
    padding: 12px 16px;
    background: var(--theme-color-light);
    color: var(--theme-color);
    border-radius: 4px;
    font-size: 14px;
    margin-top: 14px;
    font-weight: 600;
}

/* ---------- 8. 客户评价 ---------- */
.testi-section {
    padding: 80px 0;
    background: #fff;
}

.testi-carousel {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testi-slides {
    display: flex;
    transition: transform 0.6s ease;
}

.testi-slide {
    min-width: 100%;
    text-align: center;
    padding: 20px 40px;
}

.testi-slide .testi-quote {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
}

.testi-slide p {
    font-size: calc(var(--font-ratio) * 17px);
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 26px;
    font-style: italic;
}

.testi-slide .testi-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testi-slide .testi-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--theme-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.testi-slide .testi-name {
    font-size: calc(var(--font-ratio) * 16px);
    font-weight: 700;
    color: var(--text-main);
}

.testi-slide .testi-role {
    font-size: calc(var(--font-ratio) * 13px);
    color: var(--text-mute);
}

.testi-stars {
    color: #f5a623;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--theme-color);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 5;
    transition: var(--transition);
}

.testi-arrow:hover {
    background: var(--theme-color);
    color: #fff;
}

.testi-arrow.prev { left: 20px; }
.testi-arrow.next { right: 20px; }

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .about-wrap { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: calc(var(--font-ratio) * 38px); }
}

@media screen and (max-width: 768px) {
    .hero { height: 480px; }
    .hero h1 { font-size: 26px; line-height: 1.15; margin-bottom: 14px; }
    .hero .hero-desc { font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
    .hero .hero-btns { flex-direction: column; padding: 0 36px; gap: 10px; }
    .hero .hero-btns .btn { width: 100%; padding: 10px 20px; font-size: 14px; }

    .hero-badges { flex-wrap: wrap; }
    .hero-badge { flex: 1 1 50%; border-right: none; border-bottom: 1px solid #f0f0f0; padding: 18px 16px; }
    .hero-badge .hb-title { font-size: 14px; }
    .hero-badge .hb-sub { font-size: 12px; }
    .hero-badge img { width: 32px; height: 32px; }

    .product-grid { grid-template-columns: 1fr; }
    .product-card .pc-img { height: 220px; }

    .case-slide img { height: 280px; }
    .case-arrow { width: 38px; height: 38px; }
    .case-arrow.prev { left: 8px; }
    .case-arrow.next { right: 8px; }
    .testi-arrow { width: 38px; height: 38px; }
    .testi-arrow.prev { left: 8px; }
    .testi-arrow.next { right: 8px; }

    .about-img .about-stat { right: 10px; bottom: -15px; padding: 16px 20px; }
    .about-img .about-stat .num { font-size: 28px; }
    .about-img img { height: 280px; }
    .about-features { grid-template-columns: 1fr; }

    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .why-item { padding: 22px 12px; }
    .why-item .why-num { font-size: 34px; }

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

    .contact-info { padding: 32px 26px; }
    .contact-form { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .testi-slide { padding: 10px 16px; }
    .testi-slide p { font-size: 15px; }
}

@media screen and (max-width: 480px) {
    .hero { height: 420px; }
    .hero h1 { font-size: 22px; }
    .hero .hero-desc { font-size: 12px; margin-bottom: 16px; }
    .hero .hero-btns { padding: 0 28px; }
    .hero .hero-btns .btn { padding: 9px 16px; font-size: 13px; }
    .why-grid { grid-template-columns: 1fr; }
    .hero-badge { flex: 1 1 100%; }
}
