﻿/* ============================================================
   住科宏远 - 高端极简风格 v2
   ============================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c9a959;
    --accent-hover: #d4b86a;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --bg-dark: #0f0f1a;
    --text: #1a1a1a;
    --text-light: #777;
    --text-white: #ffffff;
    --border: rgba(0,0,0,0.06);
    --shadow: 0 10px 40px rgba(0,0,0,0.04);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.navbar .logo img { height: 28px; width: auto; border-radius: 2px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}
.nav-links a {
    padding: 8px 18px;
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--text); transition: var(--transition); }

/* ============================================================
   Hero - 全屏大图背景
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 64px;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}
.hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,15,26,0.7) 0%, rgba(26,26,46,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero .hero-logo {
    width: 70px;
    height: auto;
    margin-bottom: 35px;
    border-radius: 4px;
    opacity: 0.9;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero h1 span { color: var(--accent); font-weight: 400; }

.hero .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.55);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.hero-badges .badge { text-align: center; }
.hero-badges .badge .num {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}
.hero-badges .badge .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.btn-primary { background: var(--accent); color: var(--text-white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-white); border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   通用标题
   ============================================================ */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title p.tag {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ============================================================
   区块通用
   ============================================================ */
section { padding: 100px 0; }
section.bg-alt { background: var(--bg-alt); }
section.bg-dark { background: var(--bg-dark); color: var(--text-white); }

/* ============================================================
   核心业务
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.service-card {
    background: var(--bg);
    padding: 50px 35px;
    text-align: center;
    transition: var(--transition);
}
.service-card:hover { background: var(--bg-alt); }
.service-card .icon { font-size: 2rem; margin-bottom: 20px; }
.service-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--text);
}
.service-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; word-break: break-word; overflow-wrap: break-word; }

/* ============================================================
   数据
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}
.stat-item {
    background: var(--bg);
    text-align: center;
    padding: 50px 30px;
}
.stat-item .num {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item .label { font-size: 0.8rem; color: var(--text-light); letter-spacing: 1px; }

/* ============================================================
   案例
   ============================================================ */
.cases-section-title { text-align: center; margin: 50px 0 30px; }
.cases-section-title h3 {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}
.case-card { background: var(--bg); transition: var(--transition); }
.case-card:hover { background: var(--bg-alt); }
.case-card .case-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.case-card .case-body { padding: 28px; }
.case-card .case-category { font-size: 0.7rem; color: var(--accent); letter-spacing: 2px; margin-bottom: 6px; }
.case-card .case-location { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.case-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.case-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   关于页 - 双图展示
   ============================================================ */
.about-intro { padding-bottom: 0; }
.about-intro .content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 2;
    color: var(--text);
}
.about-intro .content p { margin-bottom: 24px; }

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 60px;
}
.about-gallery .gallery-item {
    position: relative;
    overflow: hidden;
}
.about-gallery .gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}
.about-gallery .gallery-item:hover img { transform: scale(1.03); }
.about-gallery .gallery-item .gallery-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 30px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 价值观三列 */

/* 时间线 */
.timeline-line { position: relative; max-width: 700px; margin: 0 auto; }
.timeline-line::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--border);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-item .year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 1;
}
.timeline-item .content { width: 45%; padding: 20px; margin-top: 40px; }
.timeline-item .content p { color: var(--text-light); line-height: 1.8; font-size: 0.9rem; }

/* 组织架构 */
.org-level { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
.org-item { padding: 10px 24px; border: 1px solid var(--border); font-size: 0.85rem; color: var(--text); background: var(--bg); }

/* ============================================================
   页头
   ============================================================ */
.page-hero {
    padding: 140px 0 80px;
    background: var(--bg-dark);
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}
.page-hero .page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}
.page-hero .page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,15,26,0.6);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.45); font-size: 1rem; letter-spacing: 1px; }

/* ============================================================
   产品
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.product-card {
    background: var(--bg);
    padding: 45px 30px;
    text-align: center;
    transition: var(--transition);
}
.product-card:hover { background: var(--bg-alt); }
.product-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.product-card h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 10px; word-break: break-word; overflow-wrap: break-word; }
 .product-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; word-break: break-word; overflow-wrap: break-word; }

.factory-showcase {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.factory-showcase img { width: 100%; height: 400px; object-fit: cover; display: block; }
.factory-showcase .factory-info { padding: 50px 40px; background: var(--bg); }
.factory-showcase .factory-info p { line-height: 1.8; font-size: 0.95rem; color: var(--text-light); margin-bottom: 18px; }

/* ============================================================
   新闻
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.news-card { background: var(--bg); padding: 35px; transition: var(--transition); }
.news-card:hover { background: var(--bg-alt); }
.news-card .news-date { font-size: 0.75rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 12px; }
.news-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }

/* ============================================================
   联系
   ============================================================ */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 0; }
.contact-info h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 25px; }
.contact-info .info-item { display: flex; gap: 15px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .info-item .icon { font-size: 1.2rem; min-width: 30px; color: var(--accent); }
.contact-info .info-item p { color: var(--text-light); font-size: 0.9rem; }

.contact-form { border: 1px solid var(--border); padding: 40px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.8rem; letter-spacing: 1px; color: var(--text-light); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid var(--border);
    font-size: 0.95rem; font-family: inherit; transition: var(--transition); background: transparent; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--accent); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.flash-message { padding: 12px 20px; margin-bottom: 20px; font-size: 0.85rem; }
.flash-message.success { background: #f0f0f0; color: #333; border-left: 3px solid var(--accent); }
.flash-message.error { background: #f8f0f0; color: #c33; border-left: 3px solid #c33; }

.news-detail { max-width: 700px; margin: 40px auto; padding: 0 30px; }
.news-detail .date { color: var(--accent); font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 20px; }
.news-detail h1 { font-size: 1.8rem; font-weight: 300; margin-bottom: 30px; line-height: 1.3; }
.news-detail .content { line-height: 2; font-size: 1rem; color: var(--text); }
.news-detail .content p { margin-bottom: 20px; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.4);
    padding: 80px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 2fr; gap: 40px; margin-bottom: 50px; }
.footer h3 {
    color: var(--text-white); margin-bottom: 20px; font-size: 0.9rem;
    font-weight: 500; letter-spacing: 1px;
}
.footer p { font-size: 0.85rem; line-height: 1.8; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 0.85rem; line-height: 1.6; }
.footer ul a { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.footer ul a:hover { color: var(--accent); }
.footer .copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.8rem; }

.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 100px; }
.error-page h1 { font-size: 4rem; font-weight: 300; color: var(--text); }
.error-page p { color: var(--text-light); margin: 20px 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .contact-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-gallery { grid-template-columns: 1fr; }
    .factory-showcase { grid-template-columns: 1fr; }
    .factory-showcase img { height: 300px; }

/* ============================================================
   价值观卡片（带图）
   ============================================================ */

/* ============================================================
   发展历程（全宽背景）
   ============================================================ */

/* ============================================================
   组织架构（树形）
   ============================================================ */

/* ============================================================
   关于页 - 公司介绍精简
   ============================================================ */
.about-intro { padding-bottom: 60px; }
.about-intro .content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 2;
    color: var(--text);
}
.about-intro .content p { margin-bottom: 24px; }

/* ============================================================
   响应式 - 新样式
   ============================================================ */
@media (max-width: 992px) {

/* ============================================================
   关于页 - Logo
   ============================================================ */
.about-logo {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto 35px;
    border-radius: 4px;
}

/* ============================================================
   价值观卡片（无编号）
   ============================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}
.values-grid {
    gap: 20px;
    background: transparent;
    border: none;
}
.value-card {
    border: 1px solid var(--border);
    overflow: hidden;
}
.value-card:hover {
    border-color: var(--accent);
    background: var(--bg);
}
.value-card .value-img {
    height: 200px;
    overflow: hidden;
    background: var(--bg-alt);
}
.value-card .value-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.value-card .value-body {
    padding: 20px 20px 22px;
}
.value-card .value-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.value-card .value-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: justify;
}

/* ============================================================
   发展历程 - 图形化时间线
   ============================================================ */
.timeline-graphic {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}
.timeline-graphic::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    border-radius: 1px;
}
.tg-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    gap: 25px;
}
.tg-item:last-child { margin-bottom: 0; }
.tg-icon {
    position: absolute;
    left: -60px;
    top: 2px;
    width: 48px;
    height: 48px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.tg-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}
.tg-content {
    flex: 1;
    padding: 20px 25px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.tg-content:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(201,169,89,0.08);
}
.tg-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding: 2px 10px;
    border: 1px solid var(--accent);
}
.tg-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ============================================================
   组织架构 - 树形图表
   ============================================================ */
.org-chart {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
/* ============================================================
   关于页 - 公司介绍
   ============================================================ */
.about-intro { padding-bottom: 60px; }
.about-intro .content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 2;
    color: var(--text);
}
.about-intro .content p { margin-bottom: 24px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
    .values-grid { grid-template-columns: 1fr; }
    .org-level-mid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}
@media (max-width: 768px) {
    .org-level-mid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .timeline-graphic { padding-left: 50px; }
    .tg-icon { left: -50px; width: 40px; height: 40px; }
    .tg-icon svg { width: 18px; height: 18px; }
}


/* ============================================================
   发展历程 - 水平时间线
   ============================================================ */
.milestone-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    padding-top: 10px;
}
.milestone-horizontal::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--border), var(--border), var(--accent));
    z-index: 0;
}

.mh-item {
    text-align: center;
    position: relative;
    z-index: 1;
}
.mh-dot {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}
.mh-item:hover .mh-dot {
    background: var(--accent);
    transform: scale(1.1);
}
.mh-dot-inner {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transition: var(--transition);
}
.mh-item:hover .mh-dot-inner {
    background: #fff;
}
.mh-year {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.mh-content {
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: left;
    transition: var(--transition);
}
.mh-content:hover {
    border-color: var(--accent);
}
.mh-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
}
.mh-content {
    text-align: center;
    padding: 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mh-content p {
    font-size: 0.82rem;
    margin: 0;
}
.mh-dot {
    width: 48px;
    height: 48px;
}
.mh-dot-inner {
    width: 8px;
    height: 8px;
}
.milestone-horizontal {
    gap: 20px;
}

/* ============================================================
   响应式 - 水平时间线
   ============================================================ */
@media (max-width: 992px) {
    .milestone-horizontal {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .milestone-horizontal::before {
        display: none;
    }
 }
@media (max-width: 768px) {
    .milestone-horizontal {
        grid-template-columns: 1fr;
    }
}
.stat-note {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 6px;
    letter-spacing: 0.5px;
}
 
 /* Logo 去白底 - 适用于深色背景 */
 .logo-dark {
     mix-blend-mode: multiply;
 }
 
.hero .hero-logo,
.footer .logo-wrapper img,
.hero img[alt="住科宏远"] {
    mix-blend-mode: multiply !important;
}

.about-logo {
    mix-blend-mode: normal !important;
}
section { padding: 80px 0; }
.about-intro { padding-bottom: 60px; }
.section-title { margin-bottom: 45px; }
.section-title h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }

/* 对齐公司介绍宽度 */
.values-grid,
.milestone-horizontal {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 垂直交替时间线 */
.timeline-v {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline-v::before {
    content: " ";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border), var(--accent));
}
.tlv-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}
.tlv-item:nth-child(odd) { flex-direction: row; }
.tlv-item:nth-child(even) { flex-direction: row-reverse; }
.tlv-marker {
    flex: 0 0 80px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.tlv-dot {
    width: 60px;
    height: 60px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 0 0 4px var(--bg);
}
.tlv-item:hover .tlv-dot {
    background: var(--accent);
    transform: scale(1.1);
}
.tlv-card {
    flex: 1;
    padding: 20px 25px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
    max-width: 320px;
}
.tlv-item:nth-child(odd) .tlv-card {
    margin-right: 30px;
    text-align: right;
}
.tlv-item:nth-child(even) .tlv-card {
    margin-left: 30px;
    text-align: left;
}
.tlv-card:hover { border-color: var(--accent); }
.tlv-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 2px 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.tlv-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.8;
}
@media (max-width: 768px) {
    .timeline-v::before { left: 30px; }
    .tlv-item, .tlv-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }
    .tlv-marker {
        flex: 0 0 40px;
        position: absolute;
        left: 0; top: 0;
    }
    .tlv-dot { width: 40px; height: 40px; font-size: 1rem; }
    .tlv-item:nth-child(odd) .tlv-card,
    .tlv-item:nth-child(even) .tlv-card {
        margin: 0;
        text-align: left;
        max-width: 100%;
    }
}
/* 企业资质证书 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
    width: 100%;
    height: 320px;
    object-fit: contain;
    display: block;
    padding: 0;
    background: #fff;
    transition: var(--transition);
}
    transform: scale(1.05);
}
.cert-company {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}
        gap: 8px;
    }
    height: 220px;
    }
}


/* === 资质图片自适应布局 大屏4张 中屏3张 小屏2张 === */
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    border: none !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-radius: 8px;
}
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
    width: 100% !important;
    height: 280px !important;
    object-fit: contain !important;
    display: block !important;
    background: #f8f9fa;
}

@media (max-width: 1200px) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
        height: 260px !important;
    }
}

@media (max-width: 768px) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
        height: 220px !important;
    }
}



/* === 资质图片布局 严格大屏4张，中屏3张 === */
.cert-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}
.cert-item {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    border: none !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-radius: 8px;
    width: 100% !important;
}
.cert-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
.cert-item img {
    width: 100% !important;
    height: 280px !important;
    object-fit: contain !important;
    display: block !important;
    background: #f8f9fa;
}

@media (max-width: 1200px) {
    .cert-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    .cert-item img {
        height: 260px !important;
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .cert-item img {
        height: 220px !important;
    }
}

.footer-col-contact ul li { word-break: keep-all; }
