/* ===== 苏州罗德仪器技术有限公司 - 官网样式 v2 ===== */
/* 配色方案 — 基于LOGO提取 + 用户调整要求 */
:root {
    --pri: #0d7d70;        /* 主色-绿（比原 #156362 更浅更亮） */
    --pri-dark: #095b50;   /* 深绿（hover） */
    --pri-darker: #1a5a58; /* 深绿 */
    --pri-light: #e8f2f0;  /* 极浅绿背景 */
    --sec: #001a50;        /* 深蓝（比原 #013E90 更深） */
    --sec-light: #f0f4fa;  /* 浅蓝背景 */
    --light: #aac6dc;      /* 浅青灰（旧站色） */
    --footer: #0a1a24;     /* 深色页脚 */
    --gold: #c8963e;       /* 金色点缀（高端感） */
    --text: #2c2c2c;       /* 正文色 */
    --text-light: #6b7280; /* 次要文字 */
    --border: #e5e7eb;     /* 边框 */
}

body { 
    font-family: "Microsoft YaHei","微软雅黑","PingFang SC","Helvetica Neue",sans-serif; 
    color: var(--text); 
    background: #fff; 
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== 一体化表头（深青背景） ===== */
.site-header { 
    background: #0C2C3B url('../images/header-bg.png') no-repeat center top;
    background-size: 100% auto;
    aspect-ratio: 1920 / 140;
}

@media (max-width: 768px) {
    .site-header { aspect-ratio: 1920 / 100; }
}

/* 导航栏 */
.navbar { 
    background: #91c0b9;
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 0;
}
.navbar .navbar-collapse {
    background: #91c0b9;
}
.navbar-dark .navbar-nav { 
    padding-left: 14rem;
}
.navbar-dark .navbar-nav .nav-link { 
    color: rgba(0,0,0,.75); 
    font-size: 16px; 
    padding: 16px 22px; 
    letter-spacing: 1px;
    font-weight: 500;
    transition: all .2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { 
    color: #000; 
    background: rgba(0,0,0,.06);
}
.navbar-dark .navbar-nav .dropdown-toggle::after {
    border-top-color: rgba(0,0,0,.5);
}
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-dark .navbar-toggler {
    border-color: rgba(0,0,0,.2);
}
.dropdown-menu { 
    border: none; 
    border-radius: 0 0 8px 8px; 
    box-shadow: 0 8px 30px rgba(0,0,0,.12); 
    padding: 8px 0;
    margin-top: 0;
    background: #fff;
    border-top: 2px solid #91c0b9;
}
.dropdown-item { 
    padding: 12px 24px; 
    font-size: 15px; 
    color: #2c2c2c; 
    transition: all .15s; 
}
.dropdown-item:hover { 
    background: #e8f5f3; 
    color: #0C2C3B; 
}

@media (max-width: 768px) {
    .navbar-dark .navbar-nav .nav-link { padding: 12px 16px; font-size: 15px; }
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 130px;
    padding: 10px 20px;
}
.header-logo-link {
    flex-shrink: 0;
    margin-right: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .site-header .container {
    }
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 20px;
}
.site-logo { max-height: 65px; }


/* 顶部快捷栏 */
.top-bar { 
    background: #091E2A; 
    font-size: 12px; 
    padding: 6px 0; 
    color: rgba(255,255,255,.7); 
}
.top-bar a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 12px; }
.top-bar a:hover { color: #fff; }

/* ===== 主导航 ===== */
/* 下拉箭头变深 */
/* 移动端汉堡图标变深 */

/* ===== Hero/Banner 轮播 ===== */
.hero-slider { 
    max-height: 500px; 
    overflow: hidden; 
    position: relative;
}
.hero-slider .carousel-item { max-height: 500px; }
.hero-slider img { 
    object-fit: cover; 
    width: 100%; 
    height: 500px;
    filter: brightness(.92);
}
/* Hero custom nav arrows */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 48px; height: 48px;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    opacity: .8;
}
.hero-slider .carousel-control-prev { left: 16px; }
.hero-slider .carousel-control-next { right: 16px; }
.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: rgba(255,255,255,.4);
    opacity: 1;
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}
/* Hero overlay text */
.hero-caption {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    background: linear-gradient(90deg, rgba(0,26,80,.75) 0%, rgba(6,66,56,.7) 100%);
    padding: 20px 50px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.hero-caption h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-caption p {
    font-size: 17px;
    color: rgba(255,255,255,.92);
    margin-top: 6px;
    letter-spacing: 1px;
}

/* ===== 区块标题 ===== */
.section-title { text-align: center; margin: 50px 0 30px; }
.section-title .badge-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--pri);
    background: var(--pri-light);
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.section-title h2 { 
    font-size: 30px; 
    font-weight: 700; 
    color: var(--pri-darker); 
    display: inline-block; 
    position: relative; 
    letter-spacing: 1px;
}
.section-title h2::after { 
    content: ''; 
    display: block; 
    width: 50px; 
    height: 3px; 
    background: linear-gradient(90deg, var(--pri), var(--pri-dark)); 
    margin: 10px auto 0; 
    border-radius: 2px;
}
.section-title p { color: var(--text-light); margin-top: 10px; font-size: 15px; }

/* ===== 核心优势卡片 ===== */
.core-card { 
    text-align: center; 
    padding: 36px 24px; 
    transition: all .35s; 
    border-radius: 12px;
    background: #fff;
}
.core-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.core-card .core-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    background: var(--pri-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
}
.core-card:hover .core-icon { background: var(--pri); }
.core-card:hover .core-icon img { filter: brightness(0) invert(1); }
.core-card img { width: 40px; transition: filter .3s; }
.core-card h5 { color: var(--pri-dark); font-weight: 700; margin-bottom: 8px; }
.core-card p { color: var(--text-light); font-size: 14px; margin: 0; }

/* ===== 产品卡片 ===== */
.product-card { 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    overflow: hidden; 
    transition: all .35s; 
    background: #fff;
}
.product-card:hover { 
    box-shadow: 0 12px 36px rgba(0,0,0,.1); 
    transform: translateY(-4px); 
    border-color: transparent;
}
.product-card .card-img-wrapper {
    height: 230px;
    overflow: hidden;
    background: #f8fafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .card-img-wrapper img { 
    width: 100%; 
    height: 230px; 
    object-fit: contain;
    padding: 16px;
    transition: transform .4s;
}
.product-card:hover .card-img-wrapper img { transform: scale(1.05); }
.product-card .card-body { padding: 18px; }
.product-card h5 { font-size: 16px; color: var(--pri-darker); font-weight: 700; }
.product-card .card-text { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* ===== 新闻列表 ===== */
.news-item { 
    padding: 16px 0; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    gap: 16px;
}
.news-item:last-child { border-bottom: none; }
.news-item .date { 
    background: var(--pri); 
    color: #fff; 
    padding: 5px 12px; 
    border-radius: 6px; 
    font-size: 12px; 
    white-space: nowrap; 
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}
.news-item .title { flex: 1; }
.news-item .title a { 
    color: var(--text); 
    text-decoration: none; 
    font-size: 15px;
    transition: color .2s;
}
.news-item .title a:hover { color: var(--pri); }

/* ===== 关于页面特色 ===== */
.stats-bar {
    background: linear-gradient(135deg, #b0ccda 0%, #aac6dc 50%, #c0d8e4 100%);
    padding: 60px 0;
    margin: 40px 0;
}
.stats-item {
    text-align: center;
    color: #0c2c3b;
}
.stats-item .number {
    font-size: 42px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}
.stats-item .label {
    font-size: 14px;
    opacity: .85;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* ===== 资质认证区 ===== */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: all .3s;
}
.cert-badge:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    border-color: var(--pri);
}
.cert-badge .cert-icon {
    font-size: 32px;
}

/* ===== 联系页面 ===== */
.contact-card {
    background: var(--pri-light);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: all .3s;
    height: 100%;
}
.contact-card:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.contact-card .icon-circle {
    width: 56px;
    height: 56px;
    background: var(--pri);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
}
.contact-card h5 { font-weight: 700; color: var(--pri-darker); }
.contact-card p { color: var(--text-light); font-size: 14px; margin: 0; }

/* ===== 联系表单 ===== */
.contact-form .form-control { 
    border-radius: 8px; 
    border: 1px solid var(--border); 
    padding: 12px 16px; 
    font-size: 14px;
    transition: all .2s;
}
.contact-form .form-control:focus { 
    border-color: var(--pri); 
    box-shadow: 0 0 0 3px rgba(13,125,112,.12); 
}

/* ===== 按钮 ===== */
.btn-primary { 
    background: linear-gradient(135deg, var(--pri), var(--pri-dark)); 
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: .5px;
    transition: all .3s;
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--pri-dark), var(--pri-darker)); 
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,125,112,.3);
}
.btn-outline-primary { 
    color: var(--pri); 
    border: 2px solid var(--pri); 
    border-radius: 8px;
    font-weight: 600;
    transition: all .3s;
}
.btn-outline-primary:hover { 
    background: var(--pri); 
    border-color: var(--pri); 
    color: #fff;
}

/* ===== 页脚 ===== */
.site-footer { 
    background: var(--footer); 
    color: rgba(255,255,255,.7); 
    font-size: 14px;
    padding: 50px 0 30px;
}
.site-footer h5 { 
    color: #fff; 
    margin-bottom: 16px; 
    font-size: 16px; 
    font-weight: 700;
    letter-spacing: .5px;
}
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.08); }
.site-footer .copyright {
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

/* ===== 面包屑 ===== */
.breadcrumb-bar { 
    background: var(--pri-light); 
    padding: 12px 0; 
    font-size: 14px; 
    border-bottom: 1px solid var(--border);
}

/* ===== 页面标题区 ===== */
.page-hero {
    background: linear-gradient(135deg, #0C2C3B, #0a3a48) center center / cover no-repeat;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 0;
}
.page-hero h1 { font-size: 34px; font-weight: 700; position: relative; z-index:1; }
.page-hero .subtitle { font-size: 15px; opacity: .85; margin-top: 6px; position: relative; z-index:1; }

/* ===== 产品详情页 ===== */
.product-detail .spec-table td { padding: 10px 14px; font-size: 14px; }
.product-detail .spec-table td:first-child { 
    background: var(--pri-light); 
    font-weight: 600; 
    width: 30%; 
    color: var(--pri-dark);
}

/* ===== 面包屑链接 ===== */
.breadcrumb-bar a { color: var(--pri); text-decoration: none; font-weight: 500; }
.breadcrumb-bar a:hover { color: var(--pri-dark); text-decoration: underline; }
.breadcrumb-bar span { color: var(--text-light); }

/* ===== 关于页面的交互卡片 ===== */
.qual-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    height: 100%;
    transition: all .35s;
    background: #fff;
}
.qual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.08);
    border-color: var(--pri);
}

/* ===== 新闻卡片悬停 ===== */
.news-card { transition: all .35s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.1); border-color: transparent; }

/* ===== 形状分隔线 ===== */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--pri), var(--pri-dark));
    border-radius: 2px;
    margin: 0 auto 24px;
}

/* ===== 表单标签 ===== */
.contact-form .form-label {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease-out; }

/* ===== 响应式增强 ===== */
@media (max-width: 768px) {
    .site-header { min-height: 70px; }
    .site-logo { max-height: 46px; }
    .hero-slider, .hero-slider img, .hero-slider .carousel-item { max-height: 240px; height: 240px; }
    .hero-caption { padding: 14px 20px; bottom: 6%; }
    .hero-caption h2 { font-size: 22px; }
    .hero-caption p { font-size: 14px; }
    .section-title h2 { font-size: 24px; }
    .page-hero { padding: 40px 0; }
    .page-hero h1 { font-size: 26px; }
    .stats-bar { padding: 36px 0; }
    .stats-item .number { font-size: 30px; }
    .product-detail-card .row { flex-direction: column; }
    .product-detail-card .col-md-5 { min-height: 200px; }
    .contact-card { margin-bottom: 12px; }
}

@media (max-width: 576px) {
    .hero-caption { padding: 10px 16px; }
    .hero-caption h2 { font-size: 18px; letter-spacing: 1px; }
    .hero-caption p { font-size: 12px; letter-spacing: 0; }
    .section-title h2 { font-size: 22px; }
    .page-hero h1 { font-size: 22px; }
    .stats-item .number { font-size: 26px; }
    .core-card { padding: 24px 16px; }
    .btn-primary { padding: 10px 20px; font-size: 14px; }
}
