/* GreenToolPro 官网样式 —— 按设计稿像素级规格重写
   色板: 深绿 #1F5F2A / 中绿 #2E7D32 / 亮绿 #7CB342 / 近黑 #1A1A1A
   容器: max-width 1320px; 内容页边距约 96px */
body.corporate {
    background: #fff;
    color: #1a1a1a;
    padding-top: 0;   /* 覆盖 FastAdmin frontend.css 的 body padding-top:60px */
    -webkit-font-smoothing: antialiased;
}

body.corporate a { color: inherit; }

/* 覆盖 Bootstrap 固定 .container 宽度（≥1200px 时为 1170px）+ 15px 内边距 */
body.corporate .container {
    width: 100%;
    max-width: 1320px;
}

/* ============ 顶部导航 ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

/* 导航为全宽贴边布局（左 Logo / 右菜单），高度按设计稿实测 55px */
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.brand-green, .brand-ink { color: #1f5f2a; }   /* Green + Tool 均为深绿 */
.brand-bright { color: #7cb342; }              /* Pro 亮绿 */
.brand-leaf { width: 17px; height: 17px; margin-left: 3px; }

.site-nav { display: flex; align-items: center; }

.nav-link {
    position: relative;
    margin-left: 42px;
    padding: 5px 2px;
    font-size: 16px;
    font-weight: 400;
    color: #2a2a2a;
    text-decoration: none;
    transition: color .2s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: #7cb342;
    transform: scaleX(0);
    transition: transform .2s;
}

.nav-link:hover { color: #1f5f2a; text-decoration: none; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #1f5f2a; font-weight: 700; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #1f5f2a;
    border-radius: 2px;
}

/* ============ 页脚（设计稿：全宽分割线 + 左侧紧凑排列 Logo+版权） ============ */
.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 30px 0;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    padding: 0 24px 0 56px;
}

.footer-brand {
    font-weight: 700;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.footer-brand .brand-green, .footer-brand .brand-ink { color: #1f5f2a; }
.footer-brand .brand-bright { color: #7cb342; }
.footer-brand .brand-leaf { width: 16px; height: 16px; margin-left: 3px; }
.footer-copy { color: #8a8a8a; font-size: 13px; }

/* ============ 首页轮播（banner 按真实图 3:1 比例自适应高度，不裁切） ============ */
.hero-carousel { background: #eef2ee; }

.hero-carousel .carousel-inner { aspect-ratio: 3 / 1; }

.hero-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 40px;
    margin: 0 0 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c8c8c8;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.hero-dot.active {
    background: #1f5f2a;
    transform: scale(1.2);
}

/* ============ 首页/目录产品区 ============ */
.catalog-section { padding: 28px 0 64px; }

.catalog-title {
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1f5f2a;
}

.catalog-sub {
    margin: 10px 0 0;
    text-align: center;
    font-size: 14px;
    color: #8a8a8a;
}

.catalog-tools {
    text-align: center;
    margin-top: 18px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 9px 24px;
    border: 1px solid #1f5f2a;
    border-radius: 6px;
    color: #1f5f2a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-download:hover { background: #1f5f2a; color: #fff; text-decoration: none; }

.category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 26px 0 34px;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    color: #1f5f2a;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
    white-space: nowrap;
}

.tab-link:hover { border-color: #1f5f2a; color: #1f5f2a; text-decoration: none; }
.tab-link:focus { text-decoration: none; }

.tab-link.active {
    background: #1f5f2a;
    border-color: #1f5f2a;
    color: #fff;
}

/* 数量徽：胶囊形 */
.tab-badge {
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tab-link.active .tab-badge { background: #fff; color: #1f5f2a; }

.product-area { position: relative; min-height: 200px; }
.product-area.loading { opacity: .55; pointer-events: none; }

.product-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 32px;
}

.product-heading {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1f5f2a;
}

/* 左图右文：左右各约 50% */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.product-figure {
    background: #fff;
    border: 1px solid #eef1ee;
    border-radius: 8px;
    overflow: hidden;
}

.product-figure img { width: 100%; display: block; }

.product-name {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-sub {
    margin: 8px 0 24px;
    font-size: 16px;
    color: #666;
}

/* 参数表：参数名与数值均左对齐，两列网格 */
.spec-row {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid #efefef;
    font-size: 14px;
    line-height: 1.5;
    min-height: 36px;
    align-items: start;
}

.spec-row:last-child { border-bottom: none; }

.spec-label { color: #555; }
.spec-value { color: #1a1a1a; }

/* 多型号卡片网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 18px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.product-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); }

.product-card .card-figure { height: 190px; display: flex; align-items: center; justify-content: center; }
.product-card .card-figure img { max-width: 100%; max-height: 190px; object-fit: contain; }

.product-card-name { margin: 12px 0 4px; font-size: 18px; font-weight: 700; color: #1a1a1a; }
.product-card-sub { margin: 0 0 14px; font-size: 13px; color: #666; }

/* 卡片内直接展示规格表（去掉 View Details 入口后） */
.card-specs { text-align: left; }

.card-specs .spec-row {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    min-height: 0;
}

.card-specs .spec-value { font-weight: 400; }

.btn-detail {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #1f5f2a;
    border-radius: 6px;
    color: #1f5f2a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-detail:hover { background: #1f5f2a; color: #fff; text-decoration: none; }

/* 详情页面包屑 */
.breadcrumb-bar { padding: 22px 0 4px; font-size: 13px; color: #7a7a7a; }
.breadcrumb-bar a { color: #1f5f2a; }
.breadcrumb-bar a:hover { text-decoration: underline; }

/* ============ About 页 ============ */
/* Hero：白底，左文右图(6:6)，文字与图顶部对齐 */
.about-hero { background: #fff; }

.about-hero-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.about-hero-text { padding: 40px 32px 40px 0; }

.about-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #555;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0 0 26px;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.about-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #3c4a42;
}

.about-hero-img-wrap { display: flex; }
.about-hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* 三大特性：整条浅灰背景带，三栏左对齐，无竖线 */
.about-features {
    background: #f5f5f5;
    padding: 64px 0;
}

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

.feature-item { text-align: left; }

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 16px;
    border: 1.5px solid #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg { width: 24px; height: 24px; stroke: #2e7d32; fill: none; stroke-width: 1.8; }

.feature-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.feature-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #5a6a62; }

/* Operations：深色标题，三图直角等宽，标签常规字重 */
.about-operations { padding: 64px 0 64px; }

.about-operations h2 {
    margin: 0 0 32px;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

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

.ops-item img { width: 100%; height: 300px; object-fit: cover; display: block; }

.ops-caption {
    margin: 24px 0 0;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
}

/* 标语：常规字重 */
.about-slogan {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #2e7d32;
    padding: 40px 0;
}

/* ============ Contact 页 ============ */
.contact-head { padding: 56px 0 40px; }

.contact-head .about-eyebrow { color: #2e7d32; margin-bottom: 16px; }

.contact-head h1 {
    margin: 0 0 20px;
    font-size: 56px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
}

.contact-head p.contact-desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #5a5a5a;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e5e5e5;
}

.contact-col { padding: 40px 0 48px; }

.contact-col + .contact-col {
    padding-left: 48px;
    border-left: 1px solid #d9d9d9;
}

.contact-col h2 {
    margin: 0 0 28px;
    font-size: 32px;
    font-weight: 700;
    color: #111;
}

.info-item { margin-bottom: 26px; }

.info-label {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.info-value { font-size: 16px; line-height: 1.5; color: #333; }
.info-value a { color: #1f5f2a; }
.info-value a:hover { text-decoration: underline; }

/* 询盘表单：48px 输入框、D9D9D9 边框、4px 圆角 */
.form-item { margin-bottom: 16px; }

.form-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

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

.form-item input:focus, .form-item textarea:focus, .form-item select:focus { border-color: #1f5f2a; }

.btn-send {
    width: 100%;
    height: 56px;
    margin-top: 22px;
    border: none;
    border-radius: 4px;
    background: #1f6b2e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.btn-send:hover { background: #175822; }
.btn-send[disabled] { opacity: .7; cursor: default; }

.inquiry-msg {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.inquiry-msg.show { display: block; }
.inquiry-msg.ok { background: #e8f5e9; color: #1f5f2a; border: 1px solid #c5e3c8; }
.inquiry-msg.err { background: #fdecea; color: #a43d34; border: 1px solid #f5c6c2; }

.contact-cta {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #2e7d32;
    padding: 40px 0 32px;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-figure img { max-height: 380px; object-fit: contain; }

    .about-hero-cols { grid-template-columns: 1fr; }
    .about-hero-text { padding: 32px 0 28px; }
    .about-hero-img-wrap img { height: 320px; }

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

    .ops-grid { grid-template-columns: 1fr; gap: 36px; }
    .ops-item img { height: auto; max-height: 340px; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-col + .contact-col {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #d9d9d9;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body.corporate { font-size: 15px; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        z-index: 999;
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        padding: 8px 24px 18px;
        display: none;
    }

    .site-nav.open { display: flex; }

    .nav-link {
        margin: 0;
        padding: 13px 0;
        font-size: 16px;
        width: 100%;
    }

    .nav-link::after { display: none; }

    .hero-carousel .carousel-inner { aspect-ratio: auto; height: 240px; }
    .hero-carousel .item img { height: 100%; }
    .hero-dots { height: 36px; }

    .catalog-section { padding: 22px 0 48px; }
    .catalog-title { font-size: 24px; margin-bottom: 12px; }
    .catalog-sub { margin-top: 12px; }
    .category-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .category-tabs::-webkit-scrollbar { display: none; }
    .tab-link { flex-shrink: 0; }

    .product-panel { padding: 20px; }
    .spec-row { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }

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

    .about-hero h1 { font-size: 34px; }
    .about-operations h2 { font-size: 26px; }
    .contact-head h1 { font-size: 34px; }
    .contact-head { padding: 40px 0 28px; }
    .contact-head p.contact-desc { font-size: 15px; }

    .site-footer-inner { flex-direction: column; gap: 6px; text-align: center; padding: 0 24px; }
}

@media (max-width: 480px) {
    .hero-carousel .carousel-inner { height: 200px; }
    .feature-item { padding: 0 4px; }
    .product-name { font-size: 24px; }
    .brand { font-size: 22px; }
}