/* ==========================================================================
   首页 index.html 专属样式
   ========================================================================== */

/* ---------- Hero 区 ---------- */
.hero {
    position: relative;
    height: 92vh;
    min-height: 720px;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, .08) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, .05) 0%, transparent 40%),
        linear-gradient(135deg, #5a0000 0%, #8B0000 35%, #C8102E 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(255, 255, 255, .03) 80px, rgba(255, 255, 255, .03) 81px),
        repeating-linear-gradient(-45deg, transparent, transparent 120px, rgba(255, 255, 255, .02) 120px, rgba(255, 255, 255, .02) 121px);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top right, rgba(255, 255, 255, .06) 0%, transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(0, 0, 0, .25) 0%, transparent 60%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, .25) 100%);
    pointer-events: none;
}

.hero::after {
    content: '泰';
    position: absolute;
    bottom: -120px;
    right: 40px;
    font-family: var(--serif);
    font-size: 520px;
    font-weight: 900;
    color: rgba(255, 255, 255, .08);
    line-height: 1;
    pointer-events: none;
}

.hero .container {
    width: 75%;
    max-width: 75%;
    padding: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    animation: fadeInUp 1s ease both;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-badge .seal {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

.hero-badge .seal::before {
    border-color: #fff;
}

.hero-badge .badge-text {
    font-size: 13px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--serif);
    margin-bottom: 24px;
}

.hero-title .title-main {
    display: block;
    font-size: 76px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
    white-space: nowrap;
}

.hero-title .title-sub {
    display: block;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
    margin-bottom: 8px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

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

.hero-actions .btn-primary:hover {
    background: var(--ink-black);
    color: #fff;
    border-color: var(--ink-black);
}

.hero-actions .btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

.hero-actions .btn-outline-light:hover {
    background: #fff;
    color: var(--red-primary);
    border-color: #fff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero-stats .stat {
    text-align: left;
}

.hero-stats .stat-num {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.hero-stats .stat-num sup {
    font-size: 20px;
    margin-left: 2px;
    opacity: .85;
}

.hero-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    letter-spacing: 1px;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    letter-spacing: 4px;
    z-index: 1;
}

.scroll-hint .line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .6);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 业务板块预览 ---------- */
.services-preview {
    background: var(--bg-paper);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line-gray);
    border-radius: 4px;
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--red-primary);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--red-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover .service-more {
    color: var(--red-primary);
    letter-spacing: 2px;
}

.service-card .service-num {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--red-primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: .5;
}

.service-card .service-icon {
    font-size: 48px;
    color: var(--red-primary);
    margin-bottom: 16px;
    line-height: 1;
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card .service-more {
    font-size: 14px;
    color: var(--ink-light);
    font-weight: 500;
    transition: var(--transition);
}

/* ---------- 律所优势 ---------- */
.advantages {
    background: var(--bg-cream);
    position: relative;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    width: 200px;
    height: 200px;
    background: var(--red-primary);
    opacity: .03;
    border-radius: 50%;
}

.advantages-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.advantages-left .en {
    font-size: 14px;
    color: var(--red-primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.advantages-left h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.advantages-left .lead {
    font-size: 16px;
    color: var(--ink-gray);
    line-height: 1.8;
    margin-bottom: 24px;
    margin-top: 24px;
}

.advantages-left .accent-line {
    width: 60px;
    height: 3px;
    background: var(--red-primary);
    margin-bottom: 24px;
}

.adv-item {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line-gray);
}

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

.adv-item .adv-num {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--red-primary);
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
}

.adv-item .adv-body h4 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.adv-item .adv-body p {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 1.7;
}

/* ---------- 服务要点 ---------- */
.service-points {
    background: var(--bg-paper);
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.point-block {
    background: linear-gradient(180deg, #fff 0%, var(--red-pale) 100%);
    border: 1px solid var(--line-gray);
    border-radius: 4px;
    padding: 48px 32px;
    text-align: center;
    transition: var(--transition);
}

.point-block:hover {
    border-color: var(--red-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.point-block .point-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 32px;
    letter-spacing: 4px;
}

.point-block ul {
    text-align: left;
}

.point-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 1.7;
}

.point-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red-primary);
    font-weight: 700;
}

/* ---------- 律所简介预览 ---------- */
.about-preview {
    background: var(--bg-cream);
}

.about-preview-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.about-preview-image {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-deep) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-preview-image .seal {
    width: 200px;
    height: 200px;
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,.08);
    padding-top: 30px;
}

.about-preview-image .seal span {
    font-size: 64px;
}

.about-preview-image .seal small {
    font-size: 16px;
    letter-spacing: 4px;
    margin-top: 8px;
}

.about-preview-image .seal::before {
    border-color: #fff;
}

.image-decor {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}

.about-preview-right .en {
    font-size: 14px;
    color: var(--red-primary);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-preview-right h2 {
    font-size: 44px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.about-preview-right .accent-line {
    width: 60px;
    height: 3px;
    background: var(--red-primary);
    margin-bottom: 24px;
}

.about-preview-right p {
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-timeline-mini {
    margin: 32px 0;
    padding: 24px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid var(--red-primary);
}

.about-timeline-mini .t-item {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--ink-gray);
    border-bottom: 1px dashed var(--line-gray);
}

.about-timeline-mini .t-item:last-child {
    border-bottom: none;
}

.about-timeline-mini .t-item span {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--red-primary);
    min-width: 48px;
}

.about-timeline-mini .t-item.highlight span {
    color: var(--red-primary);
    font-size: 16px;
}

.about-timeline-mini .t-item.highlight {
    color: var(--ink-black);
    font-weight: 500;
}

/* ---------- 客户展示 ---------- */
.clients {
    background: var(--bg-paper);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.client-item {
    padding: 28px 16px;
    text-align: center;
    background: var(--bg-cream);
    border: 1px solid var(--line-gray);
    border-radius: 4px;
    font-size: 14px;
    color: var(--ink-gray);
    font-weight: 500;
    transition: var(--transition);
}

.client-item:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    background: #fff;
    transform: translateY(-2px);
}

/* ---------- CTA 区 ---------- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--red-deep) 0%, var(--red-primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '至';
    position: absolute;
    top: -80px;
    left: -40px;
    font-family: var(--serif);
    font-size: 400px;
    font-weight: 900;
    color: rgba(255,255,255,.06);
    line-height: 1;
}

.cta-section::after {
    content: '泰';
    position: absolute;
    bottom: -100px;
    right: -40px;
    font-family: var(--serif);
    font-size: 400px;
    font-weight: 900;
    color: rgba(255,255,255,.06);
    line-height: 1;
}

.cta-wrap {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.cta-wrap .seal {
    margin-bottom: 32px;
}

.cta-wrap h2 {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.cta-wrap p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: .9;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-actions .btn-primary:hover {
    background: var(--ink-black);
    color: #fff;
    border-color: var(--ink-black);
}

.cta-actions .btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.cta-actions .btn-outline-light:hover {
    background: #fff;
    color: var(--red-primary);
}

/* ---------- 回到顶部 ---------- */
.back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--red-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 22px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-top:hover {
    background: var(--red-deep);
    transform: translateY(-4px);
}

/* ==========================================================================
   首页「联系我们」独立区块 contact-home
   ========================================================================== */
.contact-home {
    background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-cream) 100%);
}

.contact-home-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* 左侧大卡片 */
.ch-left {
    background: #fff;
    border-radius: 6px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--red-primary);
}

.ch-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line-gray);
}

.ch-head h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.ch-head p {
    font-size: 12px;
    color: var(--ink-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ch-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.ch-item {
    display: flex;
    gap: 20px;
    padding: 16px;
    border-radius: 4px;
    transition: var(--transition);
}

.ch-item:hover {
    background: var(--red-pale);
    transform: translateX(4px);
}

.ch-icon {
    width: 56px;
    height: 56px;
    background: var(--red-pale);
    color: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.ch-item:hover .ch-icon {
    background: var(--red-primary);
    color: #fff;
}

.ch-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ch-label {
    font-size: 13px;
    color: var(--ink-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ch-value {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 4px;
    word-break: break-all;
}

.ch-value a {
    color: var(--red-primary);
}

.ch-value a:hover {
    color: var(--red-deep);
}

.ch-desc {
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.5;
}

.ch-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ch-actions .btn {
    flex: 1;
    min-width: 180px;
}

/* 右侧地图 */
.ch-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ch-map {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.ch-map-header {
    padding: 16px 20px;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--line-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ch-map-header h4 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-black);
    letter-spacing: 1px;
}

.ch-tag {
    font-size: 12px;
    color: var(--red-primary);
    background: var(--red-pale);
    padding: 4px 10px;
    border-radius: 2px;
}

.ch-map-body {
    aspect-ratio: 5 / 3;
    background: #fafafa;
    overflow: hidden;
}

.ch-map-footer {
    padding: 16px 20px;
    background: var(--bg-cream);
    border-top: 1px solid var(--line-gray);
    font-size: 13px;
    color: var(--ink-black);
}

/* 交通指引 */
.ch-traffic {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--red-primary);
}

.ch-traffic h4 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.ch-traffic ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--ink-gray);
    line-height: 1.6;
    border-bottom: 1px dashed var(--line-gray);
}

.ch-traffic ul li:last-child {
    border-bottom: none;
}

.traffic-icon-inline {
    flex-shrink: 0;
    font-size: 18px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 0;
        padding: 80px 0;
    }

    .hero-title .title-main {
        font-size: 56px;
    }

    .hero-title .title-sub {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-wrap,
    .about-preview-wrap {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-wrap h2 {
        font-size: 32px;
    }

    .contact-home-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ch-left {
        padding: 32px 24px;
    }

    .ch-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .hero-title .title-main {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .hero-title .title-sub {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hero-stats .stat-num {
        font-size: 32px;
    }

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

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-left h2,
    .about-preview-right h2 {
        font-size: 32px;
    }

    .scroll-hint {
        display: none;
    }

    .ch-head {
        flex-direction: column;
        text-align: center;
    }

    .ch-value {
        font-size: 18px;
    }

    .ch-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}