/* ============================================
   华宇瑞得官网 — B2B工业风（参考海天激光）
   品牌色：中国红 #b22222 + 金色点缀 #c9a84c
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    background: #fff;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

:root {
    --primary: #b22222;
    --primary-dark: #8b0000;
    --primary-light: #d45050;
    --gold: #c9a84c;
    --dark: #1c1c1c;
    --dark2: #262626;
    --gray-bg: #f5f5f5;
    --gray-border: #e5e5e5;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
}

/* 通用容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-gray { background: var(--gray-bg); }
.section-dark { background: var(--dark); color: #fff; }

/* 标题 */
.section-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 45px;
}
.section-dark .section-title { color: #fff; }

/* ============ 顶部导航 ============ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(28, 28, 28, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 8px; }
.nav > li { position: relative; }
.nav > li > a {
    display: block;
    padding: 25px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    transition: color 0.3s;
    border-bottom: 3px solid transparent;
}
.nav > li > a:hover,
.nav > li.active > a { color: var(--gold); }
.nav > li.active > a { border-bottom-color: var(--gold); }

/* 下拉菜单 */
.nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
}
.nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.dropdown a:hover {
    background: var(--primary);
    color: #fff;
    padding-left: 28px;
}

/* 移动端菜单 */
.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* ============ Banner ============ */
.banner {
    position: relative;
    height: 88vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1c1c1c 0%, #3d0d0d 55%, #6b1010 100%);
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(178,34,34,0.12) 0%, transparent 45%);
}
.banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
}
.banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 40px;
}
.banner .logo-mark {
    margin-bottom: 28px;
    opacity: 0.95;
}
.banner h1 {
    font-size: 46px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 18px;
    letter-spacing: 2px;
}
.banner h1 .gold { color: var(--gold); }
.banner p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    margin-bottom: 35px;
    max-width: 700px;
}
.banner .btn-group { display: flex; gap: 15px; }
.btn {
    display: inline-block;
    padding: 13px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(178,34,34,0.35); }
.btn-outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============ 数据统计 ============ */
.stats {
    background: var(--primary);
    padding: 45px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    font-family: "DIN", "Helvetica Neue", Arial, sans-serif;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 5px; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.2); }

/* ============ 卡片 ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}
.card {
    background: #fff;
    border: 1px solid var(--gray-border);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card-icon { font-size: 42px; margin-bottom: 15px; display: block; }
.card h3 { font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.card p { font-size: 13.5px; color: var(--text-light); line-height: 1.7; }

/* ============ 核心技术 ============ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.tech-item {
    background: #fff;
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.tech-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateX(4px);
}
.tech-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tech-item h4 .icon { color: var(--primary); }
.tech-item p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ============ 产品页 ============ */
.prod-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.prod-item {
    border: 1px solid var(--gray-border);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}
.prod-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(178,34,34,0.1);
}
.prod-item .img-box {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 12px;
    background: var(--gray-bg);
    border-radius: 4px;
}
.prod-item h4 { font-size: 14.5px; color: var(--dark); font-weight: 600; }
.prod-item .tag {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    font-size: 11px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 2px;
}

/* ============ 荣誉 ============ */
.honor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.honor-item {
    border: 1px solid var(--gray-border);
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text);
    background: #fff;
    transition: all 0.3s;
    cursor: default;
}
.honor-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============ 客户 ============ */
.client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.client-item {
    background: #fff;
    border: 1px solid var(--gray-border);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
}
.client-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.03);
}
.client-item.star {
    border-color: var(--gold);
    color: var(--primary-dark);
    background: linear-gradient(135deg, #fff8e8, #fff);
}

/* ============ 页面Banner（内页） ============ */
.page-banner {
    background: linear-gradient(135deg, #1c1c1c 0%, #3d0d0d 60%, #6b1010 100%);
    color: #fff;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}
.page-banner h1 { font-size: 34px; font-weight: 700; letter-spacing: 2px; }
.page-banner p { color: rgba(255,255,255,0.6); margin-top: 10px; font-size: 15px; }
.page-banner .crumb {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.page-banner .crumb a { color: var(--gold); }

/* ============ 表格 ============ */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.data-table th {
    background: var(--dark);
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}
.data-table td { padding: 12px 15px; border-bottom: 1px solid var(--gray-border); }
.data-table tr:hover td { background: #fff8f8; }

/* ============ 新闻 ============ */
.news-item {
    display: flex;
    gap: 25px;
    padding: 22px 0;
    border-bottom: 1px solid var(--gray-border);
    transition: all 0.3s;
}
.news-item:hover { padding-left: 10px; }
.news-date {
    min-width: 80px;
    text-align: center;
    border-right: 2px solid var(--primary);
    padding-right: 20px;
}
.news-date .day { font-size: 30px; font-weight: 800; color: var(--primary); font-family: "DIN", Arial; }
.news-date .mon { font-size: 13px; color: var(--text-light); }
.news-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.news-item h3 a { color: var(--text); transition: color 0.3s; }
.news-item h3 a:hover { color: var(--primary); }
.news-item p { font-size: 13.5px; color: var(--text-light); }

/* ============ 联系页 ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    max-width: 950px;
    margin: 0 auto;
}
.contact-info h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.contact-info p { line-height: 2.3; font-size: 15px; }
.contact-info strong { color: var(--dark); min-width: 80px; display: inline-block; }
.contact-card { background: var(--gray-bg); padding: 25px; border-left: 4px solid var(--primary); }
.contact-card p { font-size: 14px; }

/* ============ 页脚 ============ */
.footer {
    background: #141414;
    color: rgba(255,255,255,0.6);
    padding: 55px 0 0;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 45px;
}
.footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer p { line-height: 2.1; }
.footer a { display: block; padding: 5px 0; color: rgba(255,255,255,0.5); transition: all 0.3s; }
.footer a:hover { color: var(--gold); padding-left: 6px; }
.footer .logo img { height: 34px; margin-bottom: 12px; }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .prod-row { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(28,28,28,0.98);
        padding: 15px 20px;
    }
    .nav.active { display: flex; }
    .nav > li > a { padding: 14px 0; border-bottom: none; }
    .nav .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,0.05); }
    .dropdown a { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.05); }
    .nav-toggle { display: flex; }
    .banner { height: 75vh; }
    .banner h1 { font-size: 30px; }
    .banner-inner { padding: 0 25px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; gap: 10px; }
    .news-date { border-right: none; border-bottom: 2px solid var(--primary); padding-bottom: 8px; text-align: left; display: flex; gap: 10px; align-items: baseline; }
    .section { padding: 50px 0; }
    .page-banner { padding: 110px 0 45px; }
}
