/* style.css */
:root {
    --header-height: 90px;
    --primary-color: #0A1C3E; /* 庄重的深海军蓝 */
    --gold-accent: #B5915F; /* 暗金色，体现高端商业 */
    --gold-hover: #9E7D4E;
    --text-main: #2C3E50;
    --text-light: #6A7A8E;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--header-height);
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* 容器 */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 按钮通用 */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 4px; /* 方正的边角更显正式 */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mt-4 { margin-top: 2rem; }

/* 头部导航 */
header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: var(--header-height);
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    min-width: 0;
}

.slogan {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-accent);
    letter-spacing: 2px;
    border-left: 1px solid #ddd;
    padding-left: 16px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
    min-width: 0;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--gold-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.nav-contact-btn {
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-links a.nav-contact-btn::after { display: none; }
.nav-links a.nav-contact-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 标题通用样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2, .section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: var(--gold-accent);
    margin: 0 auto 20px;
}

.title-divider-left {
    width: 60px;
    height: 3px;
    background: var(--gold-accent);
    margin: 0 0 20px 0;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

section {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    overflow-x: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Hero区域 */
.hero {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: var(--primary-color);
    transform: rotate(-15deg);
    z-index: 0;
    opacity: 0.03;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-content .highlight {
    color: var(--gold-accent);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 30px;
}

/* 让每个统计项等宽，且内部文字强制不换行 */
.hero-stats .stat-item {
    flex: 1; /* 按比例均分剩余宽度 */
    text-align: center;
    min-width: 0; /* 允许收缩，避免溢出 */
}

.hero-stats .stat-item p {
    white-space: nowrap; /* 强制“专业经验”不换行 */
    word-break: keep-all; /* 可选：防止中文断词 */
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-img {
    position: relative;
    box-shadow: 0 20px 40px rgba(10, 28, 62, 0.15);
}

.hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--gold-accent);
    color: white;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(181, 145, 95, 0.3);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* 合作伙伴 */
.partners {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.partners-title {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.partners-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.5;
}

.partners-grid i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: opacity 0.3s;
}

.partners-grid i:hover {
    opacity: 1;
}

/* 服务项目 */
.services-section {
    background-color: var(--bg-light);
    --services-gap: 24px;
    --services-offset: 12px;
}

.services-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 24px 0 12px;
    position: relative;
    /* 边缘淡入淡出的模糊透明遮罩效果 */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0, 0, 0, 0.2) 4%,
        rgba(0, 0, 0, 0.58) 8%,
        #000 12%,
        #000 88%,
        rgba(0, 0, 0, 0.58) 92%,
        rgba(0, 0, 0, 0.2) 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0, 0, 0, 0.2) 4%,
        rgba(0, 0, 0, 0.58) 8%,
        #000 12%,
        #000 88%,
        rgba(0, 0, 0, 0.58) 92%,
        rgba(0, 0, 0, 0.2) 96%,
        transparent 100%
    );
}




.services-marquee-track {
    display: flex;
    align-items: stretch;
    gap: var(--services-gap);
    width: max-content;
    will-change: transform;
    animation: servicesTicker 36s linear infinite;
}

.services-marquee-track.is-paused {
    animation-play-state: paused;
}

.services-marquee-wrapper:hover .services-marquee-track {
    animation-play-state: paused;
}

@keyframes servicesTicker {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-50% - var(--services-offset)), 0, 0);
    }
}

.service-card {
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 320px;
    min-width: 320px;
    height: 100%;
    contain: layout paint;
    position: relative;
    transform-origin: center center;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
    border-color: var(--gold-accent);
    z-index: 5;
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 34px 24px 28px;
    flex-grow: 1;
    position: relative;
    min-width: 0;
}

.service-icon {
    position: absolute;
    top: -25px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--gold-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-right: 64px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 关于我们 */
.about-section {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.img-main {
    width: 85%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-sub {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 55%;
    border: 10px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-content .lead-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-features {
    list-style: none;
    margin-bottom: 30px;
}

.about-features li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-features i {
    color: var(--gold-accent);
    font-size: 1.2rem;
}

/* 专业团队 */
.team-section {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: white;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--gold-accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.team-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-light);
    padding: 5px;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-title {
    color: var(--gold-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.team-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 联系区域 */
.contact-section {
    background: linear-gradient(rgba(10, 28, 62, 0.95), rgba(10, 28, 62, 0.95)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.contact-info p {
    color: #BDC3C7;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(181, 145, 95, 0.2);
    color: var(--gold-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border-radius: 4px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: white;
}

.info-item span {
    color: #BDC3C7;
    overflow-wrap: anywhere;
}

.contact-form {
    background: white;
    padding: 40px;
    color: var(--text-main);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-control, .contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 2px;
    transition: all 0.3s;
}

.form-control:focus, .contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: white;
}

.form-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
}

.form-status {
    min-height: 1.5rem;
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3c4b5f;
}

.form-status.is-error {
    color: #b33a3a;
}

.form-status.is-success {
    color: #1d6b46;
}

/* 页脚 */
footer {
    background: #050E20;
    color: #8E9BAE;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    letter-spacing: 2px;
}

.brand-col p {
    line-height: 1.8;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold-accent);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold-accent);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-marquee-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero-content {
        order: 2;
        text-align: center;
    }
    
    .hero-img {
        order: 1;
        margin-bottom: 20px;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-images {
        margin-bottom: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 176px;
    }

    section {
        min-height: calc(100svh - var(--header-height));
        padding: 60px 0;
        overflow-y: visible;
    }

    .hero {
        min-height: calc(100svh - var(--header-height));
    }

    .navbar {
        height: var(--header-height);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 12px 0;
        gap: 10px;
    }
    
    .logo {
        justify-content: center;
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .slogan {
        display: block;
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 8px;
        font-size: 0.86rem;
        letter-spacing: 1px;
        text-align: center;
        white-space: normal;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        padding: 28px 20px;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col,
    .brand-col,
    .copyright {
        text-align: center;
    }

    .footer-logo,
    .social-links {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 12px;
        overflow: visible;
        white-space: normal;
        padding-bottom: 0;
    }

    .nav-links a {
        flex-shrink: 0;
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .nav-links a.nav-contact-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        min-width: 96px;
        white-space: nowrap;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    .hero-stats .stat-item {
        min-width: 45%;
        margin-bottom: 15px;
    }
    
    .services-marquee-wrapper {
        overflow: visible;
        padding: 10px 0 0;
        margin: 0;
        position: relative;
        --services-gap: 18px;
        --services-offset: 0px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .services-marquee-track {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: var(--services-gap);
        animation: none;
        will-change: auto;
    }

    .service-card {
        width: 100%;
        min-width: 0;
    }

    .service-img {
        height: 180px;
    }

    .service-content {
        padding: 28px 16px 22px;
    }

    .service-icon {
        top: -22px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
        padding-right: 52px;
    }

    .service-card p {
        font-size: 0.92rem;
    }

    .contact-wrapper {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .contact-form {
        padding: 28px 20px;
    }
}

/* =========================================
   互动体验增强 (Interactive Enhancements)
   ========================================= */

/* 1. 导航高亮状态 (ScrollSpy 触发) */
.nav-links a.active {
    color: var(--gold-accent);
}
.nav-links a.active::after {
    width: 100%;
}

/* 2. 元素点击与悬浮反馈 (缩放/颜色变化) */
.btn-primary:active, .btn-outline:active, .nav-contact-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

.service-icon, .icon-wrap, .social-links a, .partners-grid i {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

/* 点击放大反馈 */
.service-icon:active, .icon-wrap:active, .social-links a:active, .partners-grid i:active {
    transform: scale(1.2) !important;
    transition: transform 0.1s ease;
}

/* 悬浮时的色彩变幻与微动 */
.icon-wrap:hover {
    background: var(--gold-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(181, 145, 95, 0.3);
}
.service-icon:hover {
    background: var(--gold-accent);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* 团队卡片图片悬浮呼吸感放大 */
.team-img img {
    transition: transform 0.6s ease;
}
.team-card:hover .team-img img {
    transform: scale(1.12);
}

@media (hover: none) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .service-card:hover .service-img img,
    .team-card:hover .team-img img,
    .icon-wrap:hover,
    .service-icon:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
