/* ===================== 深色主题基础 ===================== */
body {
    background-color: #0b0a07;
    color: #e0e3e5;
    overflow-x: hidden;
    font-family: 'Hanken Grotesk', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.container {
    background-color: transparent;
}

/* ===================== 字体 ===================== */
.font-serif {
    font-family: 'Libre Caslon Text', Georgia, 'Songti SC', serif;
}

/* ===================== WebGL Shader ===================== */
.shader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0b0a07;
}
.shader-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===================== 玻璃卡片 ===================== */
.glass-card {
    background: rgba(39, 35, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

/* ===================== 流光按钮 ===================== */
.shimmer-btn {
    background: linear-gradient(90deg, #d4af37, #f1e19d, #d4af37);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    color: #1a1600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.shimmer-btn:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* ===================== Hero ===================== */
.home-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 80px;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    height: 100%;
}
.home-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-hero-overlay {
    position: absolute;
    inset: 0;
    height: 100%;
    background: linear-gradient(to right, #0b0a07 0%, rgba(11,10,7,0.95) 40%, rgba(11,10,7,0.7) 70%, transparent 100%);
}
.home-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}
.home-hero-content > .fade-in-up {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
    align-items: flex-start;
    height: 470px;
    padding-top: 17px;
    padding-bottom: 17px;
}
@media (min-width: 768px) {
    .home-hero {
        padding: 120px 0 80px;
    }
    .home-hero-content {
        padding: 0 64px;
    }
    .home-hero-content > .fade-in-up {
        max-width: 720px;
    }
}
@media (min-width: 1200px) {
    .home-hero {
        padding: 140px 0 100px;
    }
    .home-hero-content {
        padding: 0 15px;
    }
    .home-hero-content > .fade-in-up {
        max-width: 800px;
    }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(58, 48, 0, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 9999px;
    margin-bottom: 32px;
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af37;
    animation: pulse 2s infinite;
}
.hero-badge .label {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: #d4af37;
    text-transform: uppercase;
    font-weight: 600;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-family: 'Libre Caslon Text', 'Songti SC', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 0 0 28px 0;
    padding: 0;
    color: #e0e3e5;
    max-width: 100%;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 56px;
        line-height: 1.2;
        letter-spacing: 0.01em;
        margin-bottom: 32px;
    }
}
@media (min-width: 1200px) {
    .hero-title {
        font-size: 68px;
        line-height: 1.15;
        letter-spacing: 0;
        margin-bottom: 36px;
    }
}
.hero-title .gold-gradient {
    background: linear-gradient(to right, #d4af37, #f1e19d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
.hero-desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(224, 227, 229, 0.85);
    margin: 0 0 36px 0;
    padding: 0;
    max-width: 100%;
}
@media (min-width: 768px) {
    .hero-desc {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 40px;
        max-width: 640px;
    }
}
@media (min-width: 1200px) {
    .hero-desc {
        font-size: 19px;
        line-height: 1.8;
        margin-bottom: 48px;
        max-width: 680px;
    }
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .hero-actions {
        gap: 20px;
    }
}
.hero-actions .btn {
    padding: 16px 32px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .hero-actions .btn {
        padding: 18px 40px;
        font-size: 15px;
    }
}
.hero-actions .btn-primary {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.hero-actions .btn-outline {
    color: #d4af37;
    font-weight: 600;
}
.hero-actions .btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Hero Stats 浮层 */
.hero-stats {
    position: absolute;
    bottom: 32px;
    right: 20px;
    left: 20px;
    z-index: 10;
    display: none;
}
@media (min-width: 768px) {
    .hero-stats {
        bottom: 48px;
        right: 48px;
        left: auto;
    }
}
@media (min-width: 1200px) {
    .hero-stats {
        display: block;
        bottom: 40px;
        right: calc((100vw - 1140px) / 2 + 15px);
    }
}
.hero-stats-card {
    padding: 24px;
    border-radius: 16px;
    display: flex;
    gap: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
    .hero-stats-card {
        padding: 32px;
        gap: 32px;
    }
}
@media (min-width: 1200px) {
    .hero-stats-card {
        padding: 37px 29px;
        width: 600px;
        margin-top: -57px;
    }
}
.hero-stats-card .stat {
    text-align: center;
    padding: 0 8px;
}
@media (min-width: 768px) {
    .hero-stats-card .stat {
        padding: 0 16px;
    }
}
.hero-stats-card .stat-num {
    color: #d4af37;
    font-family: 'Libre Caslon Text', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
@media (min-width: 768px) {
    .hero-stats-card .stat-num {
        font-size: 40px;
    }
}
.hero-stats-card .stat-label {
    color: #c6c6cd;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}
.hero-stats-card .divider {
    width: 1px;
    background: rgba(212, 175, 55, 0.1);
}

/* ===================== Section 通用 ===================== */
.section {
    padding: 128px 0;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 768px) {
    .section { padding-left: 64px; padding-right: 64px; }
}
.section-header {
    margin-bottom: 48px;
}
.section-eyebrow {
    display: block;
    color: #d4af37;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 500;
}
.section-title {
    font-family: 'Libre Caslon Text', 'Songti SC', Georgia, serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #e0e3e5;
}
.section-bar {
    width: 80px;
    height: 6px;
    background: #d4af37;
    margin-top: 24px;
}
.section-bar.center {
    margin-left: auto;
    margin-right: auto;
}

/* ===================== 核心优势 Bento ===================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}
.bento-card {
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.1);
    min-height: 320px;
    transition: all 0.3s ease;
}
.bento-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}
.bento-card.large {
    grid-column: span 1;
}
@media (min-width: 768px) {
    .bento-grid { 
        grid-auto-rows: 340px;
        align-items: stretch; 
    }
    .bento-card.large { grid-column: span 8; }
    .bento-card.small { grid-column: span 4; }
}
.bento-card.justify-between {
    justify-content: space-between;
}
.bento-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: #d4af37;
    font-size: 36px;
    line-height: 1;
}
.bento-icon.zoomable {
    transition: transform 0.3s ease;
}
.bento-card:hover .bento-icon.zoomable {
    transform: scale(1.1);
}
.bento-title {
    font-family: 'Libre Caslon Text', 'Songti SC', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #e0e3e5;
}
.bento-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #c6c6cd;
    max-width: 512px;
}
.bento-desc.large {
    font-size: 20px;
}
.bento-card.center {
    text-align: center;
    align-items: center;
    justify-content: space-between;
}
.bento-card.center .bento-desc {
    margin-bottom: 16px;
    flex-grow: 1;
}
.bento-link {
    margin-top: 16px;
    color: #d4af37;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: gap 0.3s ease;
    position: relative;
    z-index: 1;
}
.bento-card:hover .bento-link {
    gap: 16px;
}
.bento-link-small {
    margin-top: 16px;
    color: #d4af37;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.bento-card:hover .bento-link-small {
    gap: 12px;
    color: #e8c558;
}
.bento-bg-deco {
    position: absolute;
    right: -64px;
    bottom: -64px;
    opacity: 0.03;
    font-size: 320px;
    line-height: 1;
    color: #d4af37;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.bento-card:hover .bento-bg-deco {
    opacity: 0.07;
}
.bento-dot-pattern {
    position: absolute;
    right: 0;
    top: 0;
    width: 33.333%;
    height: 100%;
    opacity: 0.05;
    background-image: radial-gradient(#d4af37 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* ===================== 成功案例 ===================== */
.cases-section {
    padding: 128px 0;
    background: rgba(31, 27, 19, 0.3);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.cases-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 768px) {
    .cases-inner { padding: 0 64px; }
}
.cases-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 32px;
}
@media (min-width: 768px) {
    .cases-header {
        flex-direction: row;
        align-items: flex-end;
    }
}
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 768px) {
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.case-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
}
.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(212, 175, 55, 0.1);
}
.case-cover {
    position: relative;
    height: 288px;
    overflow: hidden;
}
.case-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}
.case-card:hover .case-cover-bg {
    transform: scale(1.1);
}
.case-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0b0a07, transparent);
    opacity: 0.8;
}
.case-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: #d4af37;
    color: #1a1600;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}
.case-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.case-title {
    font-family: 'Libre Caslon Text', 'Songti SC', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #e0e3e5;
    transition: color 0.3s ease;
}
.case-card:hover .case-title {
    color: #d4af37;
}
.case-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #c6c6cd;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-more {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.case-card:hover .case-more {
    opacity: 1;
}
.cases-link {
    color: #c6c6cd;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cases-link:hover {
    color: #d4af37;
    border-bottom-color: rgba(212, 175, 55, 0.5);
}
.cases-link .arrow {
    transition: transform 0.3s ease;
}
.cases-link:hover .arrow {
    transform: translateX(4px);
}

/* ===================== AI Feature ===================== */
.ai-feature {
    padding: 96px 20px;
}
.ai-card {
    max-width: 896px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.ai-card .blur-tl,
.ai-card .blur-br {
    position: absolute;
    width: 256px;
    height: 256px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}
.ai-card .blur-tl { right: -80px; top: -80px; }
.ai-card .blur-br { left: -80px; bottom: -80px; }
.ai-card .content {
    position: relative;
    z-index: 1;
}
.ai-card p {
    color: #c6c6cd;
    margin-bottom: 40px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}
.ai-btn {
    padding: 20px 48px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.ai-btn:hover {
    transform: scale(1.05);
}

/* ===================== CTA ===================== */
.cta-section {
    padding: 0 20px 128px;
}
.cta-card {
    max-width: 1024px;
    margin: 0 auto;
    padding: 64px;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.cta-card .content {
    position: relative;
    z-index: 1;
}
.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: #d4af37;
    font-size: 36px;
}
.cta-card p {
    color: #c6c6cd;
    margin-bottom: 48px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}
@media (min-width: 640px) {
    .cta-actions { flex-direction: row; }
}
.cta-btn {
    padding: 20px 48px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.cta-btn-primary {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.cta-btn-outline {
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.cta-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}
.cta-stripe {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, #d4af37 0px, #d4af37 1px, transparent 1px, transparent 20px);
}

/* ===================== Animation ===================== */
.fade-in-up {
    animation: fadeInUp 0.8s ease backwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .bento-card, .case-body, .ai-card, .cta-card { padding: 24px; }
    .ai-card, .cta-card { padding: 32px 20px; }
    .hero-actions .btn { padding: 16px 24px; }
    .bento-card { min-height: auto; }
}

/* ===================== 从模板内联迁移的区块间距（原 style=""） ===================== */
/* 成功案例区块 */
.cases-header .section-title { margin-bottom: 16px; }
.cases-header .hero-desc { font-size: 20px; margin-bottom: 0; }

/* AI 法律助理区块 */
.ai-feature .section-title { margin-bottom: 32px; }

/* CTA 区块 */
.cta-section .section-title { margin-bottom: 24px; }
