/* ============================================================
   胡明华律师个人品牌官网 - Main Stylesheet
   Author: Law Firm Brand
   Color Scheme: #0F172A (Primary), #D4AF37 (Gold), #F8FAFC (Bg)
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --primary-dark: #0B1120;
    --gold: #D4AF37;
    --gold-light: #E8C84A;
    --gold-dark: #B8962E;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --text-body: #334155;
    --text-light: #64748B;
    --text-white: #F8FAFC;
    --border-color: #E2E8F0;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --font-cn: 'HarmonyOS Sans', 'Source Han Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cn);
    color: var(--text-body);
    background: #FFFFFF;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--gold);
    color: var(--primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== UTILITY ===== */
.text-gold {
    color: var(--gold) !important;
}
.bg-gold {
    background: var(--gold) !important;
}
.bg-dark {
    background: var(--primary) !important;
}
.bg-light {
    background: var(--bg-light) !important;
}

.section-padding {
    padding: 50px 0 70px;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 40px 0 60px;
    }
}
@media (max-width: 576px) {
    .section-padding {
        padding: 30px 0 50px;
    }
}

/* Fixed header offset for anchor scrolling */
section[id] {
    scroll-margin-top: 70px;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.loader {
    text-align: center;
    color: var(--gold);
}
.scale-container {
    font-size: 3rem;
    animation: scalePulse 1.2s ease-in-out infinite;
}
.scale-icon {
    display: inline-block;
}
@keyframes scalePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    font-weight: 600;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-gold:hover,
.btn-gold:focus {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}
.btn-gold:active {
    transform: translateY(0);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== SECTION HEADER ===== */
.section-header {
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    position: relative;
    margin-bottom: 12px;
}
.section-tag::before,
.section-tag::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 10px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.section-header .section-title.text-white {
    color: #fff;
}
.section-header .section-desc.text-light {
    color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
    }
    .section-desc {
        font-size: 1rem;
    }
    .section-tag::before,
    .section-tag::after {
        width: 20px;
    }
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#header {
    background: transparent;
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1000;
}
#header.header-scrolled {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

.navbar-brand {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 2px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.08);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-consult-btn {
    padding: 8px 24px !important;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    #header {
        background: rgba(15, 23, 42, 0.97);
    }
    .navbar-collapse {
        background: var(--primary);
        padding: 16px;
        border-radius: var(--radius);
        margin-top: 12px;
    }
    .navbar .nav-link {
        padding: 10px 16px !important;
    }
    .nav-consult-btn {
        margin: 8px 16px 0 !important;
        text-align: center;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1a1a2e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(15, 23, 42, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.hero-tags .tag {
    padding: 6px 18px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 400;
    transition: var(--transition);
}
.hero-tags .tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 36px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-plus {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero Image */
.hero-image-col {
    position: relative;
    z-index: 2;
}
.hero-image-wrapper {
    position: relative;
}
.hero-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 3/4;
    max-width: 380px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.hero-image-placeholder i {
    font-size: 5rem;
    margin-bottom: 12px;
    color: var(--gold);
    opacity: 0.5;
}
.hero-image-placeholder span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.4);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--gold);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 1px;
    animation: bounceDown 2s ease-in-out infinite;
    z-index: 2;
}
.hero-scroll-indicator span {
    display: block;
    margin-bottom: 6px;
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.8; }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-stats {
        gap: 24px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .hero-image-col {
        display: none;
    }
}
@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats {
        gap: 16px;
        justify-content: space-between;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-scroll-indicator {
        display: none;
    }
}

/* ============================================================
   WHY CHOOSE / ADVANTAGES
   ============================================================ */
#why-choose {
    background: #fff;
}
.advantage-card {
    background: var(--bg-light);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    background: #fff;
}
.advantage-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    transition: var(--transition);
}
.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    transform: scale(1.1);
}
.advantage-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.advantage-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   ABOUT LAWYER
   ============================================================ */
#about.bg-light {
    background: var(--bg-light) !important;
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
}
.about-image-placeholder {
    display: none;
    width: 100%;
    aspect-ratio: 3/4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: rgba(255, 255, 255, 0.3);
}
.about-image-placeholder i {
    font-size: 5rem;
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 12px;
}
.about-image-placeholder span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
}

.about-experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}
.exp-number {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.exp-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.about-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.about-org {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}
.info-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
.info-item a {
    color: var(--text-body);
}
.info-item a:hover {
    color: var(--gold);
}

.about-description p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 12px;
}

.about-philosophy blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}
.about-philosophy blockquote i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.about-honors h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.honor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.honor-tag {
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-body);
}
.honor-tag i {
    color: var(--gold);
    font-size: 0.75rem;
    margin-right: 4px;
}

@media (max-width: 576px) {
    .about-name {
        font-size: 1.6rem;
    }
    .about-experience-badge {
        width: 80px;
        height: 80px;
    }
    .exp-number {
        font-size: 1.2rem;
    }
}

/* ============================================================
   BUSINESS AREAS / SERVICES
   ============================================================ */
.service-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}
.service-category-header i {
    font-size: 2rem;
    color: var(--gold);
}
.service-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: var(--transition);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 16px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
}
.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   SUCCESS CASES
   ============================================================ */
.case-tabs {
    border-bottom: none;
    gap: 12px;
}
.case-tabs .nav-link {
    border: 2px solid var(--border-color);
    border-radius: 8px !important;
    padding: 10px 28px;
    font-weight: 600;
    color: var(--text-body);
    background: #fff;
    transition: var(--transition);
}
.case-tabs .nav-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.case-tabs .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.case-tabs .nav-link i {
    margin-right: 6px;
}

.case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.case-image {
    position: relative;
    overflow: hidden;
}
.case-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: rgba(255, 255, 255, 0.15);
    font-size: 3rem;
}
.case-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.case-body {
    padding: 20px;
}
.case-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.case-type {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.case-brief {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 12px;
}
.case-result {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.result-label {
    font-size: 0.82rem;
    color: var(--text-light);
}
.result-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================================
   SERVICE PROCESS
   ============================================================ */
#process {
    background: #fff;
}
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.process-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.step-number {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: -10px;
}
.step-content {
    position: relative;
}
.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    transition: var(--transition);
}
.process-step:hover .step-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
}
.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.step-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .process-steps::before {
        display: none;
    }
}
@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   LEGAL KNOWLEDGE
   ============================================================ */
.knowledge-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.knowledge-img {
    position: relative;
    overflow: hidden;
}
.knowledge-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: rgba(212, 175, 55, 0.3);
    font-size: 3rem;
}
.knowledge-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.knowledge-body {
    padding: 20px;
}
.knowledge-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.knowledge-meta i {
    margin-right: 4px;
}
.knowledge-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge-body > p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    transition: var(--transition);
}
.btn-read-more:hover {
    color: var(--gold-dark);
    gap: 6px;
}
.btn-read-more i {
    transition: var(--transition);
    font-size: 0.75rem;
}
.btn-read-more:hover i {
    transform: translateX(4px);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    padding: 16px 20px;
    font-size: 0.95rem;
}
.accordion-button:not(.collapsed) {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.04);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: var(--gold);
}
.accordion-button::after {
    background-size: 14px;
}
.accordion-body {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
    background: rgba(248, 250, 252, 0.5);
}

/* ============================================================
   CLIENT REVIEWS
   ============================================================ */
#reviews {
    position: relative;
    overflow: hidden;
}
#reviews::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
#reviews::after {
    content: '\201C';
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 15rem;
    font-family: Georgia, serif;
    color: rgba(212, 175, 55, 0.04);
    line-height: 1;
    pointer-events: none;
}

#reviewCarousel {
    max-width: 700px;
    margin: 0 auto;
}
.review-card {
    padding: 40px 20px;
}
.review-stars {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 24px;
    letter-spacing: 4px;
}
.review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.review-author h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}
.review-author span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

#reviewCarousel .carousel-indicators {
    bottom: -20px;
}
#reviewCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
}
#reviewCarousel .carousel-indicators button.active {
    background: var(--gold);
}
#reviewCarousel .carousel-control-prev,
#reviewCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    opacity: 0.6;
    transition: var(--transition);
}
#reviewCarousel .carousel-control-prev:hover,
#reviewCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(212, 175, 55, 0.2);
}

@media (max-width: 576px) {
    .review-text {
        font-size: 1rem;
    }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.contact-org {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}
.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
}
.contact-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
}
.contact-value {
    font-size: 0.95rem;
    color: var(--text-body);
}
.contact-value a {
    color: var(--text-body);
}
.contact-value a:hover {
    color: var(--gold);
}

/* QR Codes */
.contact-qr-codes h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}
.qr-list {
    display: flex;
    gap: 24px;
}
.qr-item {
    text-align: center;
}
.qr-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
    transition: var(--transition);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.qr-image:hover {
    transform: scale(1.03);
}
.card-qr {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: 120px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    transition: var(--transition);
}
.card-qr i {
    font-size: 2.5rem;
    color: var(--gold);
}
.card-qr:hover {
    transform: scale(1.03);
}
.qr-label {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Map */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
}
.map-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow);
}

/* Consultation Form */
.consultation-form-wrapper {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 24px;
}
.consultation-form .form-floating > label {
    color: var(--text-light);
    font-size: 0.9rem;
}
.consultation-form .form-control,
.consultation-form .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 14px;
    font-size: 0.92rem;
    transition: var(--transition);
}
.consultation-form .form-control:focus,
.consultation-form .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.consultation-form .form-control.is-invalid,
.consultation-form .form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}
.consultation-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success .success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 16px;
}
.form-success h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.form-success p {
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .consultation-form-wrapper {
        padding: 24px 16px;
    }
    .qr-list {
        gap: 16px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}
.footer-brand h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand > p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 6px;
}
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}
.footer-contact a:hover {
    color: var(--gold);
}

.footer h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-qr-image {
    width: 130px;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}
.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom p {
    margin-bottom: 6px;
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover {
    color: var(--gold);
}

@media (max-width: 767px) {
    .footer {
        padding: 40px 0 100px;
    }
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
/* PC Side */
.floating-pc {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.float-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    position: relative;
    transition: var(--transition);
}
.float-item:hover {
    background: var(--gold);
    color: var(--primary);
    transform: scale(1.1);
}
.float-tooltip {
    position: absolute;
    right: 56px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.float-item:hover .float-tooltip {
    opacity: 1;
    right: 60px;
}

.back-to-top {
    display: none;
}
.back-to-top.visible {
    display: flex;
}

/* Mobile Bottom */
.floating-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    display: none;
    z-index: 999;
    padding: 6px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.floating-mobile .mobile-float-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    padding: 6px 0;
    transition: var(--transition);
    text-decoration: none;
}
.floating-mobile .mobile-float-item i {
    font-size: 1.2rem;
}
.floating-mobile .mobile-float-item:hover,
.floating-mobile .mobile-float-item:active {
    color: var(--gold);
}

@media (max-width: 767px) {
    .floating-pc {
        display: none;
    }
    .floating-mobile {
        display: flex;
    }
}

/* ============================================================
   WECHAT MODAL
   ============================================================ */
.modal-qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.modal-content {
    border-radius: var(--radius);
    border: none;
}
.modal-header .btn-close:focus {
    box-shadow: none;
}

/* ===== PHONE MODAL ===== */
.phone-display {
    padding: 20px 0;
    text-align: center;
}
.phone-display i {
    font-size: 3rem;
    color: var(--gold);
    display: block;
    margin-bottom: 16px;
}
.phone-display .phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
}
.phone-display .phone-number:hover {
    color: var(--gold);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1199px) {
    .hero-title { font-size: 3.2rem; }
    .hero-stats { gap: 30px; }
}

@media (max-width: 991px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .footer .col-lg-2, .footer .col-lg-3 { margin-top: 24px; }
}

@media (max-width: 767px) {
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .case-tabs { flex-wrap: wrap; }
    .case-tabs .nav-link { flex: 1; text-align: center; }
    .qr-list { justify-content: center; }
}

@media (max-width: 576px) {
    .hero-tags { justify-content: center; }
    .hero-tags .tag { font-size: 0.78rem; padding: 4px 14px; }
    .hero-buttons .btn { font-size: 0.9rem; }
    .stat-number { font-size: 1.4rem; }
    .map-placeholder { padding: 24px 16px; }
    .map-buttons .btn { font-size: 0.8rem; padding: 6px 12px; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    #header, .floating-pc, .floating-mobile, #preloader {
        display: none !important;
    }
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
}
