/*
 * 文件名: style.css
 * 描述: 上海秣马企业管理咨询有限公司官网重构主样式表
 * 设计基调: 智库型、沉稳、权威、温和
 */

:root {
    --color-primary: #1B3A5F; /* 深海军蓝 */
    --color-surface: #F5F3F0; /* 暖灰背景 */
    --color-accent: #B8860B;  /* 铜金点缀 */
    --color-ink: #0F1B2D;
    --color-text: #24344D;
    --color-muted: #6B7280;
    --color-line: #D8D6D2;
    --color-card: #FFFFFF;
    --shadow-soft: 0 12px 40px rgba(15, 27, 45, 0.08);
    --shadow-strong: 0 18px 60px rgba(15, 27, 45, 0.14);
    --font-display: "Source Serif SC", "Noto Serif SC", "STSong", "Times New Roman", serif;
    --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --gradient-hero: radial-gradient(120% 120% at 10% 10%, rgba(184, 134, 11, 0.12), transparent 45%), radial-gradient(90% 90% at 90% 0%, rgba(27, 58, 95, 0.12), transparent 50%), linear-gradient(135deg, #1B3A5F, #142742);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.2px;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-weight: 600;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

section {
    padding: 80px 0;
    position: relative;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

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

.section-title h2 {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--color-accent);
}

.section-lead {
    max-width: 760px;
    margin: 12px auto 0;
    color: var(--color-muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(27, 58, 95, 0.08);
    color: var(--color-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    font-size: 0.98rem;
}

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

.btn-primary:hover {
    background: #946c08;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(27, 58, 95, 0.25);
    color: var(--color-primary);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-accent);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(184, 134, 11, 0.1);
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- 导航 --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 243, 240, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(27, 58, 95, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.brand-sub {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.2;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    position: relative;
    padding: 8px 4px;
    color: var(--color-text);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-hotline {
    font-weight: 700;
    color: var(--color-primary);
}

/* --- 英雄区 --- */
.hero-section {
    padding: 90px 0 70px;
    background: linear-gradient(120deg, rgba(27, 58, 95, 0.95), rgba(27, 58, 95, 0.82)), url('../images/banner_home.png') center/cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 10% 20%, rgba(184, 134, 11, 0.18), transparent 40%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    z-index: 2;
}

.hero-copy h1 {
    color: #fff;
    margin-bottom: 12px;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.service-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-soft);
}

.data-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.data-card {
    background: #fff;
    color: var(--color-ink);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.data-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.data-label {
    color: var(--color-muted);
}

.hero-note {
    margin-top: 16px;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

/* --- 服务矩阵 --- */
.service-matrix {
    background: var(--color-surface);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    position: relative;
}

.matrix-grid::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(27, 58, 95, 0.18);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.service-node {
    background: var(--color-card);
    border-left: 4px solid var(--color-primary);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-node::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.08), transparent 70%);
    top: -20px;
    right: -20px;
}

.service-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.node-number {
    font-size: 2.4rem;
    color: var(--color-accent);
    opacity: 0.7;
    font-family: var(--font-display);
}

.service-items {
    list-style: none;
    color: var(--color-muted);
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.expand-trigger {
    margin-top: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

/* --- 方法论时间轴 --- */
.methodology {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.method-step {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--color-line);
    position: relative;
}

.method-step::before {
    content: attr(data-order);
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 2rem;
    color: rgba(27, 58, 95, 0.15);
    font-family: var(--font-display);
}

.method-step h4 {
    margin-bottom: 8px;
}

.method-step p {
    color: var(--color-muted);
}

/* --- 案例展示 --- */
.case-showcase {
    background: var(--color-surface);
    padding: 64px 0;
}

.case-frame {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.case-slider {
    position: relative;
    overflow: hidden;
}

.case-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 20px;
    align-items: start;
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.case-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.case-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    max-height: 340px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.case-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.case-content {
    display: grid;
    gap: 10px;
    align-content: start;
}

.case-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(27, 58, 95, 0.08);
    color: var(--color-primary);
    font-weight: 700;
}

.case-metrics {
    display: flex;
    gap: 14px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.metric strong {
    color: var(--color-accent);
    margin-left: 4px;
}

.case-summary {
    color: var(--color-muted);
}

.case-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.case-dots {
    display: flex;
    gap: 8px;
}

.case-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(27, 58, 95, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.case-dot.active {
    background: var(--color-accent);
    transform: scale(1.1);
}

/* --- 团队滚动 --- */
.team-strip {
    overflow-x: auto;
    padding-bottom: 8px;
}

.team-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.expert-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.expert-card summary {
    list-style: none;
    cursor: pointer;
}

.expert-card summary::-webkit-details-marker {
    display: none;
}

.expert-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.expert-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(184, 134, 11, 0.35);
}

.expert-role {
    color: var(--color-muted);
}

.expert-card details p {
    margin-top: 6px;
    color: var(--color-muted);
}

/* --- 思想洞察 --- */
.insight-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
}

.insight-lead {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.insight-lead h3 {
    margin-bottom: 8px;
}

.insight-list {
    display: grid;
    gap: 12px;
}

.insight-item {
    background: var(--color-card);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* --- 页面通用 --- */
.page-header {
    padding: 80px 0 70px;
    background: var(--gradient-hero);
    color: #fff;
    text-align: center;
}

.page-header p {
    max-width: 760px;
    margin: 12px auto 0;
    color: rgba(255, 255, 255, 0.85);
}

.page-content {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar ul {
    list-style: none;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-line);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.sidebar a {
    display: block;
    padding: 14px 16px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-line);
    font-weight: 600;
}

.sidebar li:last-child a { border-bottom: none; }

.sidebar a.active,
.sidebar a:hover {
    background: rgba(27, 58, 95, 0.06);
    color: var(--color-primary);
}

.main-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.text-with-image {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: center;
}

.text-with-image.reverse .image-content {
    order: -1;
}

.text-with-image + .text-with-image {
    margin-top: 30px;
}

.text-with-image .image-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.image-full-width {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin: 18px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 16px;
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-line);
    text-align: left;
}

.service-card h3 {
    margin: 10px 0 6px;
}

.service-card p {
    color: var(--color-muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-card .value {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* --- 时间轴 --- */
.timeline {
    position: relative;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(27, 58, 95, 0.18);
    left: 18px;
}

.timeline-item {
    position: relative;
    padding-left: 46px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    left: 12px;
    top: 4px;
    box-shadow: var(--shadow-soft);
}

.timeline-date {
    font-weight: 700;
    color: var(--color-primary);
}

.timeline-item-content {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--color-line);
}

/* --- 案例详情 --- */
.case-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.meta-box {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--color-line);
}

.case-detail-section {
    margin-top: 26px;
}

.case-detail-section h3 {
    margin-bottom: 10px;
}

/* --- 招聘 --- */
.job-listing {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.job-meta {
    color: var(--color-muted);
}

/* --- 联系我们 --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-line);
    text-align: center;
}

.map-container {
    height: 380px;
    background: radial-gradient(circle at 30% 30%, rgba(27, 58, 95, 0.08), transparent 40%), #e9ecef;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

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

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
}

.news-card h4 {
    margin: 10px 0 6px;
}

.news-meta {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.news-detail-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.news-detail-content h3 {
    margin: 18px 0 10px;
}

.news-detail-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--color-line);
    display: grid;
    gap: 6px;
}

/* --- 页脚 --- */
footer {
    background: #111827;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 40px;
}

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

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #e5e7eb;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    color: #9ca3af;
}

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

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
    .logo {
        font-size: 1.05rem;
    }
    .case-item {
        grid-template-columns: 1fr;
    }
    .case-showcase {
        padding: 50px 0;
    }
    .case-frame {
        padding: 16px;
    }
    .case-visual {
        max-height: 230px;
        aspect-ratio: 4 / 3;
    }
}
