/* ============================================================
   Cangzhou Haohong Animal Husbandry Equipment Co., Ltd.
   Website stylesheet
   All color values are hard-coded, no framework, no CSS variables
   ============================================================ */

/* ===== 1. Reset & base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #25343f;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5 {
    font-family: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #0e2a47;
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 46px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin-bottom: 14px; }

a {
    color: #1e4d7b;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover { color: #f27a1a; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

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

.section {
    padding: 78px 0;
}

.section-gray { background-color: #f4f6f8; }

.section-title {
    text-align: center;
    margin-bottom: 14px;
}

.section-title p {
    color: #617384;
    max-width: 640px;
    margin: 12px auto 0;
}

.title-bar {
    width: 56px;
    height: 4px;
    background-color: #f27a1a;
    margin: 16px auto 0;
    border-radius: 2px;
}

.text-center { text-align: center; }

/* ===== 2. Top bar ===== */
.top-bar {
    background-color: #0e2a47;
    color: #c8d6e2;
    font-size: 13.5px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-bar-info {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.top-bar-info span { display: inline-flex; align-items: center; gap: 7px; }

.top-bar-info svg { width: 15px; height: 15px; fill: #f27a1a; }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-right a {
    color: #c8d6e2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right a:hover { color: #f27a1a; }

.top-bar-auth {
    display: flex;
    gap: 14px;
    padding-left: 18px;
    border-left: 1px solid #274863;
}

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

.top-social a { display: inline-flex; }

.top-social svg {
    width: 16px;
    height: 16px;
    fill: #c8d6e2;
    transition: fill 0.25s ease;
}

.top-social a:hover svg { fill: #f27a1a; }

/* ===== 3. Header & navigation ===== */
.site-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow 0.3s ease;
}

.site-header.header-scrolled {
    box-shadow: 0 4px 18px rgba(14, 42, 71, 0.12);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 24px;
}

.logo { display: flex; flex-direction: column; line-height: 1.2; }

.logo-main {
    font-family: "Sora", "Segoe UI", Arial, sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: #0e2a47;
    letter-spacing: 0.3px;
}

.logo-main span { color: #f27a1a; }

.logo-sub {
    font-size: 11.5px;
    color: #617384;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-top: 3px;
}

.main-nav > ul { display: flex; align-items: center; gap: 4px; }

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
    display: block;
    padding: 30px 16px;
    color: #0e2a47;
    font-weight: 600;
    font-size: 15.5px;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
    height: 2.5px;
    background-color: #f27a1a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: #f27a1a; }

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.active > a::after { transform: scaleX(1); }

/* dropdown arrow */
.nav-caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 7px;
}

/* mega / category dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: #ffffff;
    border-top: 3px solid #f27a1a;
    box-shadow: 0 14px 34px rgba(14, 42, 71, 0.16);
    border-radius: 0 0 6px 6px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.28s ease;
}

.main-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-group-title {
    padding: 8px 20px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #f27a1a;
}

.dropdown-menu a {
    display: block;
    padding: 9px 20px;
    color: #25343f;
    font-size: 14.5px;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #f4f6f8;
    color: #f27a1a;
    border-left-color: #f27a1a;
}

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

/* mobile menu button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    background: none;
    border: 1px solid #dce3e9;
    border-radius: 6px;
    cursor: pointer;
    padding: 0 10px;
}

.nav-toggle span {
    display: block;
    height: 2.5px;
    background-color: #0e2a47;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.menu-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.menu-open span:nth-child(2) { opacity: 0; }
.nav-toggle.menu-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== 4. Buttons ===== */
.btn {
    display: inline-block;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all 0.28s ease;
    line-height: 1.2;
}

.btn-primary {
    background-color: #f27a1a;
    color: #ffffff;
    border-color: #f27a1a;
}

.btn-primary:hover {
    background-color: #d8680c;
    border-color: #d8680c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(242, 122, 26, 0.32);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #0e2a47;
    transform: translateY(-2px);
}

.btn-navy {
    background-color: #0e2a47;
    color: #ffffff;
    border-color: #0e2a47;
}

.btn-navy:hover {
    background-color: #163d63;
    border-color: #163d63;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(14, 42, 71, 0.28);
}

.btn-ghost {
    background-color: transparent;
    color: #0e2a47;
    border-color: #c4d0da;
    padding: 10px 22px;
    font-size: 14px;
}

.btn-ghost:hover {
    border-color: #f27a1a;
    color: #f27a1a;
}

.btn-block { display: block; width: 100%; }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ===== 5. Hero carousel ===== */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #0e2a47;
}

.hero-slides { position: relative; height: 600px; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 1;
}

.hero-slide.active { opacity: 1; z-index: 2; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 30, 52, 0.86) 0%, rgba(10, 30, 52, 0.5) 55%, rgba(10, 30, 52, 0.25) 100%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 640px;
    color: #ffffff;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 52px;
    margin-bottom: 18px;
}

.hero-content p {
    font-size: 19px;
    color: #d7e2ec;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* slide text animation */
.hero-slide.active .hero-content h1 {
    animation: heroUp 0.8s ease both;
}

.hero-slide.active .hero-content p {
    animation: heroUp 0.8s ease 0.15s both;
}

.hero-slide.active .hero-buttons {
    animation: heroUp 0.8s ease 0.3s both;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background-color: rgba(14, 42, 71, 0.3);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s ease;
}

.hero-arrow:hover {
    background-color: #f27a1a;
    border-color: #f27a1a;
}

.hero-arrow.prev { left: 26px; }
.hero-arrow.next { right: 26px; }

.hero-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all 0.28s ease;
}

.hero-dots button.active {
    background-color: #f27a1a;
    width: 30px;
    border-radius: 6px;
}

/* ===== 6. Feature strip ===== */
.feature-strip {
    background-color: #ffffff;
    border-bottom: 1px solid #e6ecf1;
    padding: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 24px;
}

.feature-item + .feature-item { border-left: 1px solid #e6ecf1; }

.feature-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: #fdf0e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg { width: 26px; height: 26px; fill: #f27a1a; }

.feature-item h4 { font-size: 16.5px; margin-bottom: 3px; }
.feature-item p { font-size: 13.5px; color: #617384; margin: 0; }

/* ===== 7. Product cards & grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.32s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 34px rgba(14, 42, 71, 0.14);
    border-color: #f2c9a4;
}

.product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #f4f6f8;
    overflow: hidden;
}

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

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

.product-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #f27a1a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.product-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    font-size: 17.5px;
    margin-bottom: 8px;
}

.product-body h3 a { color: #0e2a47; }
.product-body h3 a:hover { color: #f27a1a; }

.product-body p {
    font-size: 14px;
    color: #617384;
    margin-bottom: 16px;
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-link {
    font-size: 14px;
    font-weight: 700;
    color: #f27a1a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-link .arrow { transition: transform 0.25s ease; }
.product-card:hover .product-link .arrow { transform: translateX(5px); }

/* category section anchors on products page */
.category-block { margin-bottom: 64px; scroll-margin-top: 120px; }
.category-block:last-child { margin-bottom: 0; }

.category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid #e3e9ee;
    padding-bottom: 14px;
    margin-bottom: 30px;
}

.category-head h2 { font-size: 26px; }
.category-head p { color: #617384; font-size: 14.5px; margin: 6px 0 0; }

/* ===== 8. CTA banner ===== */
.cta-banner {
    background: linear-gradient(110deg, #0e2a47 0%, #163d63 60%, #1e4d7b 100%);
    padding: 64px 0;
    color: #ffffff;
}

.cta-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-banner h2 { color: #ffffff; font-size: 30px; margin-bottom: 8px; }
.cta-banner p { color: #c8d6e2; margin: 0; font-size: 16.5px; }

/* ===== 9. About teaser ===== */
.about-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-teaser-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(14, 42, 71, 0.2);
}

.about-teaser-img img { width: 100%; aspect-ratio: 3 / 2.2; object-fit: cover; }

.about-list { margin: 22px 0 28px; }

.about-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 15.5px;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: #fdf0e3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f27a1a' d='M9.5 16.2l-3.7-3.7-1.4 1.4 5.1 5.1 10-10-1.4-1.4z'/%3E%3C/svg%3E");
    background-size: 13px;
    background-position: center;
    background-repeat: no-repeat;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    background-color: #f4f6f8;
}

.stat-number {
    font-family: "Sora", "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #f27a1a;
    line-height: 1.1;
}

.stat-label { font-size: 13.5px; color: #617384; margin-top: 4px; }

/* ===== 10. Process steps ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 46px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.process-num {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background-color: #0e2a47;
    color: #ffffff;
    font-family: "Sora", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .process-num {
    background-color: #f27a1a;
    transform: scale(1.08);
}

.process-step h4 { margin-bottom: 7px; font-size: 16.5px; }
.process-step p { font-size: 14px; color: #617384; margin: 0; }

.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    right: -18px;
    width: 36px;
    height: 2px;
    background-image: linear-gradient(to right, #b9c7d3 50%, transparent 50%);
    background-size: 10px 2px;
}

/* ===== 11. Inner page banner & breadcrumb ===== */
.page-banner {
    background-color: #0e2a47;
    background-image: linear-gradient(rgba(10, 30, 52, 0.82), rgba(10, 30, 52, 0.82)), url("../images/banner-2.jpg");
    background-size: cover;
    background-position: center;
    padding: 66px 0;
    text-align: center;
}

.page-banner h1 { color: #ffffff; font-size: 38px; margin-bottom: 10px; }

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #c8d6e2;
}

.breadcrumb a { color: #c8d6e2; }
.breadcrumb a:hover { color: #f27a1a; }
.breadcrumb .sep { color: #5d7891; }
.breadcrumb .current { color: #f27a1a; }

/* ===== 12. Forms ===== */
.form-card {
    background-color: #ffffff;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    padding: 38px;
    box-shadow: 0 10px 30px rgba(14, 42, 71, 0.07);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.form-group { display: flex; flex-direction: column; }

.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #0e2a47;
    margin-bottom: 7px;
}

.form-group label .req { color: #e04f2f; margin-left: 3px; }

.form-group input,
.form-group select,
.form-group textarea {
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    color: #25343f;
    padding: 12px 14px;
    border: 1.5px solid #cfd9e1;
    border-radius: 6px;
    background-color: #fdfefe;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    width: 100%;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select { cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f27a1a;
    box-shadow: 0 0 0 3px rgba(242, 122, 26, 0.14);
    background-color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #98a7b4; }

.form-note {
    font-size: 13px;
    color: #617384;
    margin-top: 8px;
}

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

.code-btn {
    white-space: nowrap;
    padding: 0 18px;
    font-size: 13.5px;
}

.code-btn:disabled {
    background-color: #c4d0da;
    border-color: #c4d0da;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* captcha */
.captcha-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }

.captcha-img {
    min-width: 120px;
    height: 48px;
    border-radius: 6px;
    border: 1.5px solid #cfd9e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    background-color: #eef2f6;
    overflow: hidden;
}

.captcha-img span {
    font-family: "Sora", Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.captcha-tip { font-size: 12.5px; color: #617384; margin-top: 6px; }

.form-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== 13. Auth (login / register) pages ===== */
.auth-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.auth-wrap .form-card { padding: 40px 42px; }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h2 { margin-bottom: 8px; }
.auth-head p { color: #617384; font-size: 14.5px; margin: 0; }

.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 14.5px;
    color: #617384;
}

.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.remember-check { display: inline-flex; align-items: center; gap: 8px; color: #617384; cursor: pointer; }
.remember-check input { width: 16px; height: 16px; accent-color: #f27a1a; }

/* auth page wrapper */
.auth-section {
    padding: 70px 0;
    background-color: #f4f6f8;
}

/* small inline link / placeholder link on auth pages.
   Placeholder spans keep the text style only; when the backend adds real
   pages, replace them with <a> tags (anchors get the pointer cursor). */
.auth-link {
    color: #1e4d7b;
    font-weight: 600;
}
.auth-link:hover { color: #f27a1a; }

/* divider with centered text */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 26px 0 20px;
    color: #98a7b4;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e3e9ee;
}
.auth-divider span { padding: 0 14px; }

/* ===== 14. Product detail page ===== */
.detail-section { padding: 60px 0; }

.detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 52px;
    align-items: start;
}

.detail-gallery .main-img {
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f4f6f8;
}

.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }

.thumb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }

.thumb-row .thumb {
    border: 1.5px solid #dce3e9;
    border-radius: 7px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background-color: #f4f6f8;
    transition: border-color 0.25s ease;
}

.thumb-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row .thumb.active,
.thumb-row .thumb:hover { border-color: #f27a1a; }

.detail-info h1 { font-size: 32px; margin-bottom: 14px; }

.detail-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #f27a1a;
    background-color: #fdf0e3;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.detail-desc { color: #4c5d6b; font-size: 15.5px; margin-bottom: 24px; }

.detail-points { margin-bottom: 28px; }

.detail-points li {
    padding: 7px 0 7px 28px;
    position: relative;
    font-size: 15px;
    border-bottom: 1px dashed #e3e9ee;
}

.detail-points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background-color: #f27a1a;
    transform: rotate(45deg);
}

.detail-inquiry-box {
    background-color: #f4f6f8;
    border-radius: 9px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.detail-inquiry-box p { font-size: 14px; color: #4c5d6b; margin: 0 0 14px; }

.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.share-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #617384; }

/* detail tabs */
.detail-tabs { margin-top: 64px; }

.tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e3e9ee;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-nav button {
    background: none;
    border: none;
    padding: 13px 26px;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #617384;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
}

.tab-nav button.active { color: #f27a1a; border-bottom-color: #f27a1a; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }

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

.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.spec-table th,
.spec-table td {
    border: 1px solid #dde4ea;
    padding: 13px 18px;
    font-size: 14.5px;
    text-align: left;
}

.spec-table th {
    width: 30%;
    background-color: #f4f6f8;
    color: #0e2a47;
    font-weight: 700;
}

.faq-item {
    border: 1px solid #e3e9ee;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 22px;
    font-size: 15.5px;
    font-weight: 700;
    color: #0e2a47;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.faq-q .faq-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #fdf0e3;
    color: #f27a1a;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-a p { padding: 0 22px 18px; margin: 0; font-size: 14.5px; color: #4c5d6b; }

.related-products { margin-top: 70px; }

/* ===== 15. Contact page ===== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 56px;
}

.contact-card {
    text-align: center;
    padding: 36px 26px;
    border: 1px solid #e3e9ee;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(14, 42, 71, 0.12);
    border-color: #f2c9a4;
}

.contact-card .feature-icon { margin: 0 auto 18px; }
.contact-card h4 { margin-bottom: 8px; }
.contact-card p { font-size: 14.5px; color: #4c5d6b; margin: 0; }

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.map-placeholder {
    border-radius: 10px;
    border: 1px solid #e3e9ee;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #eef2f6;
    background-image: linear-gradient(rgba(238, 242, 246, 0.9), rgba(238, 242, 246, 0.9)),
        linear-gradient(#d4dee6 1px, transparent 1px),
        linear-gradient(90deg, #d4dee6 1px, transparent 1px);
    background-size: 100% 100%, 38px 38px, 38px 38px;
    color: #617384;
    text-align: center;
    padding: 20px;
}

.map-placeholder svg { width: 44px; height: 44px; fill: #f27a1a; }
.map-placeholder p { margin: 0; font-size: 14.5px; }
.map-placeholder .map-hint { font-size: 13px; color: #8294a3; }

/* ===== 16. Footer ===== */
.site-footer {
    background-color: #0b223a;
    color: #a9bccb;
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2.5px;
    background-color: #f27a1a;
    border-radius: 2px;
}

.footer-col p { font-size: 14px; color: #93a9ba; margin-bottom: 18px; }

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

.footer-links a {
    color: #93a9ba;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.footer-links a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #f27a1a;
    border-bottom: 1.5px solid #f27a1a;
    transform: rotate(-45deg);
}

.footer-links a:hover { color: #f27a1a; }

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #93a9ba;
    line-height: 1.55;
}

.footer-contact svg { flex: 0 0 18px; width: 18px; height: 18px; fill: #f27a1a; margin-top: 3px; }

/* social buttons (foreign platforms) */
.social-row { display: flex; gap: 11px; margin-top: 6px; }

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #14324f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s ease;
}

.social-btn svg { width: 19px; height: 19px; fill: #c8d6e2; transition: fill 0.28s ease; }

.social-btn:hover {
    background-color: #f27a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(242, 122, 26, 0.3);
}

.social-btn:hover svg { fill: #ffffff; }

.footer-bottom {
    border-top: 1px solid #1b3a58;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: #7f95a6;
    flex-wrap: wrap;
}

.footer-bottom a { color: #93a9ba; }
.footer-bottom a:hover { color: #f27a1a; }

/* 底部右侧：快捷链接与语言下拉框并排 */
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* 语言选择下拉框（英语 / 阿拉伯语 / 西班牙语） */
.footer-lang {
    appearance: none;
    -webkit-appearance: none;
    background-color: #12304d;
    color: #c3d2df;
    border: 1px solid #2a4d6e;
    border-radius: 6px;
    padding: 7px 32px 7px 12px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393a9ba' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-lang:hover { border-color: #f27a1a; color: #e8eef4; }
.footer-lang:focus { outline: none; border-color: #f27a1a; }
.footer-lang option { background-color: #0e2a47; color: #e8eef4; }

/* ===== 17. Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 18. Responsive ===== */
@media (max-width: 991px) {
    h1 { font-size: 38px; }
    h2 { font-size: 27px; }

    .top-bar { display: none; }

    /* Clip the off-canvas mobile menu so it cannot cause horizontal overflow */
    .site-header { overflow-x: hidden; }

    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ffffff;
        padding: 14px 20px 30px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -10px 0 30px rgba(14, 42, 71, 0.15);
    }

    .main-nav.mobile-open { transform: translateX(0); }

    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }

    .main-nav > ul > li { border-bottom: 1px solid #e6ecf1; }

    .main-nav > ul > li > a { padding: 16px 6px; display: flex; justify-content: space-between; align-items: center; }

    .main-nav > ul > li > a::after { display: none; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: #f4f6f8;
        padding: 6px 0;
        margin: 0 0 10px;
        display: none;
    }

    .dropdown-menu.mobile-open { display: block; }

    .header-actions .btn-ghost { display: none; }

    .hero-slides { height: 500px; }
    .hero-content h1 { font-size: 38px; }
    .hero-content p { font-size: 16.5px; }
    .hero-arrow { display: none; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-item:nth-child(3) { border-left: none; border-top: 1px solid #e6ecf1; }
    .feature-item:nth-child(4) { border-top: 1px solid #e6ecf1; }

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

    .about-teaser-grid { grid-template-columns: 1fr; gap: 36px; }

    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
    .process-step::after { display: none; }

    .detail-grid { grid-template-columns: 1fr; gap: 36px; }

    .contact-info-grid { grid-template-columns: 1fr; gap: 18px; }
    .contact-layout { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }

    h1 { font-size: 31px; }
    h2 { font-size: 24px; }

    .hero-slides { height: 440px; }
    .hero-content h1 { font-size: 30px; }
    .hero-buttons .btn { width: 100%; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-item + .feature-item { border-left: none; border-top: 1px solid #e6ecf1; }
    .feature-item:nth-child(3) { border-left: none; }

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

    .about-stats { grid-template-columns: 1fr; }

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

    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 26px 20px; }

    .auth-wrap .form-card { padding: 30px 22px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .footer-bottom { flex-direction: column; text-align: center; }

    .category-head { flex-direction: column; align-items: flex-start; gap: 8px; }

    .thumb-row { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
