/* ============================================================
   黑龙江省大庆百湖防雷检测科技有限公司 - 官方网站
   现代化企业官网样式
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5fb4;
    --primary-dark: #0d3b7a;
    --primary-light: #3584e4;
    --accent: #f5a623;
    --accent-light: #ffbe4d;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #f8f9fa;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--white); }
.top-bar span { margin-right: 15px; }
.top-bar .top-links a { margin-left: 15px; }

/* === Header === */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-box img {
    height: 52px;
    width: auto;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.header-phone .phone-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* === Navigation === */
.nav {
    background: var(--primary);
}

.nav .container {
    display: flex;
}

.nav a {
    display: block;
    color: var(--white);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav a:hover, .nav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* === Hero Banner === */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3b7a 0%, #1a5fb4 40%, #3584e4 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

/* Hero stats */
.hero-stats {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: -60px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* === Section Common === */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* === About Section (Home) === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 2;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.about-feature .check {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* === Service Cards === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon, .svc-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* === Equipment Grid === */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.equipment-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.equipment-card .card-img {
    height: 180px;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.equipment-card .card-body {
    padding: 16px;
    text-align: center;
}

.equipment-card .card-body h3 {
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}

/* === News Section === */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.news-main .news-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-main .news-item:hover {
    box-shadow: var(--shadow-lg);
}

.news-date {
    text-align: center;
    min-width: 60px;
    padding-top: 4px;
}

.news-date .day {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    color: var(--text-light);
}

.news-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.news-info h3 a { color: var(--text); }
.news-info h3 a:hover { color: var(--primary); }

.news-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.news-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.news-sidebar h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary-dark);
}

.news-sidebar li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.news-sidebar li a {
    font-size: 14px;
    color: var(--text);
}

.news-sidebar li a:hover { color: var(--primary); }

/* === Honor Section === */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.honor-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.honor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.honor-card .card-img {
    height: 240px;
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
}

.honor-card .card-img .watermark {
    position: absolute;
    font-size: 120px;
    color: rgba(0,0,0,0.03);
    transform: rotate(-15deg);
}

.honor-card .card-body {
    padding: 14px;
    text-align: center;
}

.honor-card .card-body h3 {
    font-size: 14px;
    color: var(--text);
}

/* === CTA Section === */
.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta .btn { margin: 0 8px; }

/* === Footer === */
.footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 14px;
    line-height: 2;
}

.footer-links h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover { color: var(--accent); }

.footer-qr {
    display: flex;
    gap: 20px;
}

.footer-qr .qr-item {
    text-align: center;
}

.footer-qr .qr-item img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    background: var(--white);
    padding: 4px;
    margin-bottom: 8px;
}

.footer-qr .qr-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* === Page Banner === */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-banner .breadcrumb {
    font-size: 14px;
    opacity: 0.85;
}

.page-banner .breadcrumb a {
    color: rgba(255,255,255,0.85);
}

.page-banner .breadcrumb a:hover {
    color: var(--white);
}

/* === Page Content === */
.page-content {
    padding: 60px 0;
}

.page-content .container {
    max-width: 1000px;
}

.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    line-height: 2.2;
}

.content-card p {
    margin-bottom: 16px;
    color: var(--text);
    text-indent: 2em;
}

.content-card h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin: 30px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}

/* === Contact Page === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.contact-info-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info h4 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* === Message Form === */
.message-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.message-form h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(53, 132, 228, 0.15);
}

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

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

.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Equipment Page === */
.equipment-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.equipment-page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.equipment-page-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.equipment-page-card .card-img {
    height: 200px;
    background: linear-gradient(135deg, #e8f0fe, #d2e3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.equipment-page-card .card-body {
    padding: 20px;
}

.equipment-page-card .card-body h3 {
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.equipment-page-card .card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === Honor Page === */
.honor-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.honor-page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.honor-page-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.honor-page-card .card-img {
    height: 280px;
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
}

.honor-page-card .card-body {
    padding: 16px;
    text-align: center;
}

.honor-page-card .card-body h3 {
    font-size: 16px;
    color: var(--primary-dark);
}

/* === Service Page === */
.service-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.flow-step {
    text-align: center;
    position: relative;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -18px;
    top: 40px;
    font-size: 24px;
    color: var(--primary-light);
}

.flow-step:last-child::after { display: none; }

.flow-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 14px;
}

.flow-step h4 {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 6px;
}

.flow-step p {
    font-size: 12px;
    color: var(--text-light);
}

/* === News Detail === */
.news-detail {
    max-width: 860px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.news-detail-header h1 {
    font-size: 26px;
    color: var(--text);
    margin-bottom: 12px;
}

.news-detail-meta {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 20px;
}

.news-detail-body {
    line-height: 2.2;
    font-size: 15px;
    color: var(--text);
}

.news-detail-body p {
    margin-bottom: 16px;
    text-indent: 2em;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* === Mobile Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 18px;
    z-index: 1001;
    text-decoration: none;
}

.navbar-brand .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-dark);
    background: rgba(26, 95, 180, 0.06);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(26, 95, 180, 0.1);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.15);
}

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

.mobile-nav a {
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover {
    color: var(--primary);
    background: rgba(26, 95, 180, 0.06);
}

.mobile-nav a.active {
    color: var(--primary);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .equipment-grid { grid-template-columns: repeat(2, 1fr); }
    .honor-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .equipment-page-grid { grid-template-columns: repeat(2, 1fr); }
    .honor-page-grid { grid-template-columns: repeat(2, 1fr); }
    .service-flow { grid-template-columns: repeat(2, 1fr); }
    .flow-step::after { display: none; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: 1fr; }
    .equipment-grid { grid-template-columns: 1fr 1fr; }
    .honor-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 28px; }
    .hero { height: 380px; }
    .nav .container { flex-wrap: wrap; }
    .nav a { padding: 10px 16px; font-size: 13px; }
    .header .container { flex-direction: column; gap: 10px; }
    .header-right { display: none; }
    .top-bar { display: none; }
    .equipment-page-grid { grid-template-columns: 1fr 1fr; }
    .honor-page-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    /* Mobile nav: hide desktop links, show hamburger */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .navbar { padding: 0 20px; height: 60px; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr; }
    .equipment-grid { grid-template-columns: 1fr; }
    .honor-grid { grid-template-columns: 1fr; }
    .equipment-page-grid { grid-template-columns: 1fr; }
    .honor-page-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 24px; }
    .section-header h2 { font-size: 24px; }
    .content-card { padding: 20px; }
    .navbar { padding: 0 14px; height: 56px; }
    .mobile-nav a { font-size: 18px; padding: 12px 24px; }
    .page-banner h1 { font-size: 24px; word-break: break-word; overflow-wrap: break-word; }
}
