/* ============================================
   美立华信息科技有限公司官网 - 统一样式表
   设计理念：专业、现代、可信、创新
   ============================================ */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Han Sans SC', 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', 'SimHei', '黑体', sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background-color: #f5f7fb;
}

/* 颜色定义 */
:root {
    --primary-color: #1E40AF;      /* 电力蓝 */
    --secondary-color: #2563EB;    /* 辅助蓝 */
    --accent-color: #EAB308;       /* 能源黄 */
    --support-color: #16A34A;      /* 安全绿 */
    --industrial-gray: #4B5563;    /* 工业灰 */
    --light-bg: #F5F7FB;           /* 浅灰背景 */
    --panel-bg: #FFFFFF;           /* 面板白 */
    --text-dark: #111827;          /* 深灰文字 */
    --text-light: #6B7280;         /* 浅灰文字 */
    --border-color: #E5E7EB;       /* 边框色 */
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --hero-overlay: linear-gradient(120deg, rgba(30,64,175,0.82) 0%, rgba(15,23,42,0.7) 100%);
    --card-glow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 10px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

h5, h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* 段落 */
p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 列表 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* 链接 */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #ff5500;
}

/* ============================================
   头部导航
   ============================================ */
header {
    background-color: var(--panel-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--accent-color);
    font-weight: 800;
    margin-left: 6px;
}

.logo-tag {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 10px;
    background: rgba(234, 179, 8, 0.12);
    color: var(--accent-color);
    border-radius: 999px;
    font-size: 0.9rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--primary-color);
    font-weight: 600;
    background: linear-gradient(120deg, rgba(30, 64, 175, 0.08), rgba(234, 179, 8, 0.08));
}

.pill-link:hover {
    background: rgba(234, 179, 8, 0.18);
    text-decoration: none;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-light);
}

.header-contact a {
    color: var(--secondary-color);
}

.main-nav {
    background: var(--primary-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand-spacer {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    position: relative;
}

.nav-links a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f172a;
    min-width: 220px;
    box-shadow: var(--shadow);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 8px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
}

.dropdown-menu a:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #fff;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
    position: relative;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 0 20px;
}

.hero h1 {
    color: white;
    font-size: 3.1rem;
    margin-bottom: 16px;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero p {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 26px;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    line-height: 1.8;
}

/* ============================================
   主要内容区域
   ============================================ */
main {
    min-height: calc(100vh - 200px);
    padding: 48px 0;
}

section {
    margin-bottom: 50px;
}

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

.section-kicker {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(30, 64, 175, 0.08);
    color: var(--secondary-color);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1rem;
}

.section-title h2 {
    border: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 760px;
    margin: 0 auto;
}

/* 卡片布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--panel-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-glow);
    border-color: rgba(234, 179, 8, 0.6);
}

.card-image,
.card > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.7;
}

.card-link {
    color: var(--secondary-color);
    font-weight: 700;
    display: inline-block;
}

.card-link:hover {
    color: var(--accent-color);
}

/* 特性列表 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(234, 179, 8, 0.06));
    border-left: 4px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 强调卡片 & 统计 */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-card .label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-card small {
    color: var(--text-light);
}

/* 两列布局 */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.two-column img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary-color);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
}

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: var(--light-bg);
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: 26px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    padding: 12px 0 12px 16px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--panel-bg);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.2);
}

.timeline-item h4 {
    margin: 0 0 6px;
    color: var(--primary-color);
}

.timeline-item p {
    margin: 0;
}

/* ============================================
   页脚
   ============================================ */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%);
    color: white;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    margin-bottom: 26px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   表单
   ============================================ */
form {
    max-width: 600px;
    margin: 30px auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cta-banner {
    background: linear-gradient(120deg, rgba(30, 64, 175, 0.08), rgba(234, 179, 8, 0.08));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.info-list li:last-child {
    border-bottom: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

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

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

    .feature-list {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .top-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-contact {
        flex-wrap: wrap;
    }

    .nav-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        height: 200px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        padding: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    form {
        padding: 20px;
    }
}

/* ============================================
   工具类
   ============================================ */
.text-center {
    text-align: center;
}

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

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-40 {
    padding-top: 40px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-40 {
    padding-bottom: 40px;
}

.highlight {
    color: var(--accent-color);
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
}

.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    margin: 0 5px;
}
