/* ============================================
   连云港苍梧工程管理咨询有限公司官网
   新版样式 - 工程咨询型专业风格
   配色：主蓝 #1E3A8A / 专业灰 #374151 / 工程橙 #D97706
   ============================================ */

:root {
    --primary: #1E3A8A;
    --primary-strong: #162A63;
    --secondary: #374151;
    --accent: #D97706;
    --muted: #6B7280;
    --bg: #F5F7FA;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--secondary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    margin-left: 20px;
    color: var(--secondary);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
}

.section.light {
    background: var(--bg);
}

.section.narrow {
    padding: 56px 0;
}

.eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 32px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.section-desc {
    color: var(--muted);
    max-width: 740px;
}

.lede {
    color: var(--muted);
    font-size: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-strong);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    background: #EEF2FF;
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: #F3F4F6;
}

/* ============================================
   头部导航
   ============================================ */
header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.logo-cn {
    color: var(--secondary);
    font-weight: 800;
    white-space: nowrap;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    flex-wrap: nowrap;
    overflow-x: auto;
}

nav ul::-webkit-scrollbar {
    display: none;
}

nav a {
    color: var(--secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary);
    background: #EEF2FF;
}

/* ============================================
   英雄区
   ============================================ */
.hero {
    background: var(--primary);
    color: #fff;
    padding: 86px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 30%),
                radial-gradient(circle at 80% 10%, rgba(255,255,255,0.05), transparent 26%),
                linear-gradient(135deg, rgba(255,255,255,0.04), transparent 40%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: stretch;
}

.hero-main h1 {
    font-size: 42px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.hero-main .lede {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 14px;
}

.meta-value {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.meta-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.hero-panel {
    background: #fff;
    color: var(--secondary);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid #E0E7FF;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--primary);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: #F9FAFB;
    color: var(--secondary);
}

.pill.accent {
    background: #FFF7ED;
    border-color: #FED7AA;
    color: var(--accent);
}

.panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-list li {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #F9FAFB;
}

.panel-list strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

/* ============================================
   服务矩阵 / 通用卡片
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 6px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow);
    text-align: left;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: linear-gradient(120deg, rgba(30,58,138,0.1), rgba(30,58,138,0)),
                linear-gradient(90deg, rgba(217,119,6,0.18), transparent);
    pointer-events: none;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EEF2FF;
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 800;
    margin-bottom: 14px;
}

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

.service-card p {
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-points li {
    position: relative;
    padding-left: 16px;
    color: var(--muted);
    font-size: 14px;
}

.service-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 8px;
}

.service-flow {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.flow-step {
    position: relative;
    padding: 10px 14px;
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--secondary);
    font-weight: 700;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

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

/* ============================================
   资质墙
   ============================================ */
.qualifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.qualification-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.qualification-item .label {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.qualification-item h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.qualification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EEF2FF;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 8px;
}

.qualification-item p {
    color: var(--secondary);
    margin: 0;
}

/* ============================================
   案例与筛选
   ============================================ */
.case-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.case-filter button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.case-filter button.active {
    background: #EEF2FF;
    color: var(--primary);
    border-color: #E0E7FF;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.case-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.case-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.case-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-content h4 {
    font-size: 18px;
    color: var(--primary);
    margin: 0 0 2px;
}

.case-tag {
    display: inline-block;
    background: #EEF2FF;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.case-title {
    font-size: 18px;
    color: var(--primary);
    font-weight: 800;
}

.case-summary {
    color: var(--secondary);
    font-size: 14px;
}

.case-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.case-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
}

.case-card[data-hidden="true"] {
    display: none;
}

/* ============================================
   新闻
   ============================================ */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.news-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.news-date {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

.news-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.news-desc {
    color: var(--secondary);
    font-size: 14px;
}

.news-item a:hover .news-title {
    color: var(--primary-strong);
}

/* ============================================
   关于 / 团队
   ============================================ */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: center;
}

.about-text h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.about-text p {
    color: var(--secondary);
    margin-bottom: 12px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.stat-card {
    background: #F9FAFB;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    color: var(--secondary);
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 18px;
}

.about-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.team-member {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.team-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.team-position {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.team-desc {
    color: var(--secondary);
    font-size: 14px;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.team-tags span {
    background: #EEF2FF;
    color: var(--primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   页面列表（保留）
   ============================================ */
.page-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.page-item {
    background: var(--card);
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-item a {
    color: var(--primary);
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.page-item p {
    color: var(--secondary);
    font-size: 14px;
}

/* ============================================
   联系方式
   ============================================ */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.contact-info,
.contact-form {
    background: var(--card);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-info h2,
.contact-form h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.contact-item {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}

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

.contact-label {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 14px;
}

.contact-value {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary);
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #F9FAFB;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    background: #fff;
}

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

/* ============================================
   详情页
   ============================================ */
.detail-page {
    background: var(--card);
    padding: 32px;
    border-radius: var(--radius);
    margin: 36px 0 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.detail-page h1 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 14px;
}

.detail-page h2 {
    color: var(--secondary);
    font-size: 22px;
    margin-top: 22px;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 4px solid var(--accent);
}

.detail-page h3 {
    color: var(--primary);
    font-size: 18px;
    margin-top: 14px;
    margin-bottom: 8px;
}

.detail-page p {
    color: var(--secondary);
    margin-bottom: 12px;
}

.detail-image {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 16px 0;
    box-shadow: var(--shadow);
}

.breadcrumb {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--muted);
}

.page-hero {
    background: var(--primary-strong);
    color: #fff;
    padding: 52px 0;
}

.page-hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.page-hero .lede {
    color: rgba(255, 255, 255, 0.82);
    max-width: 880px;
}

.page-hero .pill {
    margin-top: 12px;
}

/* ============================================
   页脚
   ============================================ */
footer {
    background: var(--primary-strong);
    color: #fff;
    padding: 32px 0 16px;
    margin-top: 32px;
}

.footer-content {
    max-width: 1180px;
    margin: 0 auto 12px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
    align-items: center;
}

.footer-brand {
    display: grid;
    gap: 8px;
}

.footer-title {
    font-size: 18px;
    font-weight: 800;
}

.footer-summary {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tag {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
}

.footer-meta {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.footer-contact {
    display: grid;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

/* ============================================
   工具类
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

    nav {
        width: 100%;
        margin-left: 0;
    }

    nav ul {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    nav ul {
        width: 100%;
        justify-content: flex-start;
    }

    nav a {
        padding: 8px 10px;
    }

    .hero {
        padding: 64px 0 54px;
    }

    .hero-main h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .detail-page {
        padding: 22px;
    }

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

    .footer-meta {
        justify-items: flex-start;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-container {
        gap: 12px;
    }

    .logo-text {
        font-size: 16px;
    }

    .hero-main h1 {
        font-size: 28px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .service-flow {
        gap: 8px;
    }

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

    .case-filter {
        gap: 8px;
    }
}
