/* --- 基础配置 --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --main-blue: #002B5B;      /* 核心合规蓝 */
    --accent-gold: #D4AF37;    /* 专家金 */
    --light-gray: #F4F7F9;
    --text-dark: #1A1A1A;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 50px rgba(0, 43, 91, 0.08);
}

* { margin:0; padding:0; box-sizing: border-box; }
body { 
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

h1, h2, h3, .logo { font-family: 'Montserrat', sans-serif; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- 动画基础 --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 导航栏 --- */
.navbar {
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1010;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 75px; /* Slimmer but solid */
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}
.navbar.scrolled {
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
}

.nav-box { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    height: 100%;
}

.logo { 
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo-img {
    height: 90px;
    width: auto;
    display: none; /* Hide the old image once we swap */
}

/* --- 新版代码化品牌标志 --- */
.brand-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.brand-icon-svg {
    height: 48px; /* Slightly smaller for balance */
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0,43,91,0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-size: 28px; /* Slightly smaller for balance */
    font-weight: 800; /* Slightly more refined than 900 */
    /* Premium Gradient for depth */
    background: linear-gradient(135deg, #005CB9 0%, #002B5B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    letter-spacing: 3px; /* More breathing room for a 'designed' look */
    line-height: 1.1;
    /* Modern Chinese font priority */
    font-family: 'Montserrat', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    text-shadow: 0 4px 12px rgba(0, 43, 91, 0.08);
    transition: var(--transition-smooth);
}

.brand-tagline {
    font-size: 8px; /* Slightly smaller for balance */
    color: var(--accent-gold);
    letter-spacing: 5px; /* Wide tracking for premium feel */
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
    opacity: 0.9;
}

.navbar.scrolled .brand-icon-svg {
    height: 38px;
}
.navbar.scrolled .brand-name {
    font-size: 22px;
}

/* 导航链接 */
.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 35px;
    align-items: center;
    margin: 0;
}
.nav-links a { 
    text-decoration: none; 
    color: #444; 
    font-weight: 500; 
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: 0.3s; 
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active { color: var(--main-blue); }

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1020;
    padding: 10px;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--main-blue);
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-premium {
    height: 100vh;
    background: linear-gradient(rgba(0, 43, 91, 0.4), rgba(0, 43, 91, 0.4)), url('../images/your-custom-backdrop.jpg') center/cover no-repeat; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    color: white; 
    position: relative;
    padding-top: 80px;
}

.hero-premium .overlay {
    background: rgba(0, 43, 91, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 1000px; 
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    margin-bottom: 40px;
}

.line-primary {
    font-size: clamp(42px, 6vw, 82px);
    font-weight: 800;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 10px;
}

.line-secondary {
    font-size: clamp(20px, 3vw, 38px);
    font-weight: 300;
    letter-spacing: clamp(5px, 1.5vw, 15px);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.pure-gold {
    color: var(--accent-gold);
    font-weight: 700;
    margin-left: 15px;
    position: relative;
}

.pure-gold::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
}

.hero-content p { 
    font-size: clamp(16px, 1.5vw, 20px); 
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0.9; 
    font-weight: 300; 
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-gold {
    background: var(--accent-gold); 
    color: white; 
    padding: 16px 40px;
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition-smooth);
    border: none;
}
.btn-gold:hover { 
    background: #e5be4e; 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline-white {
    border: 2px solid white; 
    color: white; 
    padding: 14px 40px;
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition-smooth);
}
.btn-outline-white:hover { 
    background: white; 
    color: var(--main-blue); 
    transform: translateY(-5px);
}

/* ================= Logo Grid ================= */
.logo-wall {
    padding: 120px 0;
    background: #ffffff;
}

.wall-title {
    text-align: center;
    font-size: 24px; 
    color: var(--main-blue); 
    font-weight: 700; 
    letter-spacing: 4px; 
    margin-bottom: 80px; 
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.wall-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* Force 4 columns per user request */
    gap: 30px; 
    align-items: center;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: var(--transition-smooth);
    filter: grayscale(100%) opacity(0.5);
}

.logo-item:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.15); /* Slightly more zoom for promotional impact */
}

.logo-item img {
    max-height: 80px; /* Make partner logos larger */
    max-width: 100%;
    object-fit: contain;
}

/* ================= Methodology ================= */
.methodology-section {
    padding: 120px 0;
    background-color: var(--light-gray);
}

.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: clamp(28px, 4vw, 36px); color: var(--main-blue); margin-bottom: 20px; font-weight: 800; }
.section-subtitle { font-size: 17px; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.7; }

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.method-card {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.step-num {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    font-weight: 900;
    color: rgba(0, 43, 91, 0.04);
    line-height: 1;
}

.method-card h3 {
    font-size: 22px;
    color: var(--main-blue);
    margin-bottom: 20px;
}

.method-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.method-cta { text-align: center; margin-top: 60px; }

/* ================= Strategic Moat ================= */
.strategic-moat-section {
    padding: 120px 0;
    background-color: var(--main-blue); 
    color: #ffffff;
}

.strategic-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* --- Fixed Folded Frame Illusion --- */
.moat-image-col { 
    position: relative; 
    padding: 30px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame-container {
    position: relative;
    display: inline-block;
}

.image-frame {
    position: relative;
    z-index: 10;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.3);
    width: 100%;
}

.image-frame img { 
    width: 100%; 
    display: block; 
    object-fit: cover; 
    aspect-ratio: 4/3; 
}

.frame-accent {
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 15px);
    height: calc(100% + 15px);
    border: 6px solid var(--accent-gold);
    z-index: 5; /* Sits BETWEEN image and background to look like it wraps */
    pointer-events: none;
    border-radius: 4px;
    transition: var(--transition-smooth); /* Smooth movement */
}

.image-frame:hover + .frame-accent {
    transform: translate(15px, 15px);
}

.moat-label {
    display: block;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
}

.moat-text-col h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.moat-list { list-style: none; margin-bottom: 50px; }
.moat-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.moat-list i {
    color: var(--accent-gold);
    font-size: 24px;
    margin-right: 20px;
}
.moat-list-text strong {
    display: block;
    font-size: 19px;
    margin-bottom: 8px;
}
.moat-list-text span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

/* ================= Footer & Contact ================= */
.footer-contact-info { padding: 100px 0; background: #fff; border-top: 1px solid #eee; }
.contact-footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-info-list { display: flex; flex-direction: column; gap: 30px; }
.contact-info-item { display: flex; gap: 20px; align-items: flex-start; }
.contact-info-item i { font-size: 24px; color: var(--accent-gold); margin-top: 5px; }

.footer-logo-box { margin-bottom: 50px; margin-top: 0; padding-top: 0; }
.qr-title { font-size: 22px; color: var(--main-blue); margin-bottom: 40px; font-weight: 700; margin-top: 0; padding-top: 0; }
.qr-flex { display: flex; gap: 25px; flex-wrap: wrap; }
.qr-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    background: var(--light-gray);
    padding: 24px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}
.qr-item:hover { border-color: var(--accent-gold); box-shadow: var(--shadow-soft); }
.qr-item img { width: 100%; border-radius: 8px; margin-bottom: 15px; }
.qr-name { display: block; font-weight: 700; color: #333; margin-bottom: 5px; }
.qr-desc { display: block; font-size: 12px; color: #888; }

footer { 
    padding: 60px 0; 
    background-color: var(--light-gray); 
    text-align: center; 
    font-size: 14px; 
    color: #888; 
    border-top: 1px solid #eee; 
}

/* ================= Page Specifics ================= */
.service-detail-section { padding: 100px 0; background: var(--light-gray); }
.service-row { 
    display: flex; 
    background: white; 
    margin-bottom: 40px; 
    border-radius: 16px; 
    padding: 50px; 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition-smooth); 
    align-items: center; 
}
.service-row:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.service-icon-large { font-size: 48px; color: var(--accent-gold); margin-right: 50px; min-width: 80px; text-align: center; }
.service-text h2 { color: var(--main-blue); font-size: 26px; margin-bottom: 15px; }

.category-expertise { padding: 100px 0; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.interactive-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: var(--shadow-soft); 
    transition: var(--transition-smooth); 
    border: 1px solid rgba(0,0,0,0.03); 
}
.interactive-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-premium); }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .strategic-wrapper { gap: 40px; }
    .contact-footer-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    
    .brand-icon-svg { height: 40px; }
    .brand-name { font-size: 22px; }
    .brand-tagline { display: none; }

    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1015;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a { font-size: 20px; font-weight: 700; }

    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-btns { flex-direction: column; }
    .logo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .logo-item img { max-height: 50px; }
    .frame-accent { top: -8px; left: -8px; width: calc(100% + 8px); height: calc(100% + 8px); border-width: 4px; }
    .strategic-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .moat-text-col { text-align: center; }
    .moat-list li { text-align: left; }
    
    .contact-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-info-item { flex-direction: column; align-items: center; text-align: center; }
    .qr-flex { justify-content: center; }
    .qr-item { width: calc(50% - 15px); }

    .service-row { flex-direction: column; text-align: center; padding: 40px 30px; }
    .service-icon-large { margin-right: 0; margin-bottom: 25px; }
}

@media (max-width: 480px) {
    .qr-item { width: 100%; }
    .logo-grid { grid-template-columns: 1fr; }
}

/* Hover QR Popups */
.hover-qr-container { position: relative; display: inline-block; }
.qr-popup {
    position: absolute; 
    bottom: 40px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 140px; 
    padding: 15px; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition-smooth); 
    z-index: 1200;
}
.hover-qr-container:hover .qr-popup { opacity: 1; visibility: visible; bottom: 50px; }
.qr-popup img { width: 100%; border-radius: 6px; }
.qr-popup p { font-size: 11px; margin-top: 10px; color: #666; font-weight: 600; text-align: center; }