/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 76px;

    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;

    --text-dark: #0f172a;
    --text-light: #475569;

    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: rgba(15, 23, 42, 0.10);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);

    --ring: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.65;
    color: var(--text-dark);
    background: radial-gradient(1200px 500px at 50% -50%, rgba(37, 99, 235, 0.16), transparent 60%),
        radial-gradient(900px 380px at 80% 0%, rgba(59, 130, 246, 0.10), transparent 55%),
        var(--bg-white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* 通用：焦点可见 */
:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 10px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    min-height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.10);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.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 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(1000px 700px at 20% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #1d2a55 40%, #3a2a6f 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.12" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 50% 30%, rgba(59, 130, 246, 0.35), transparent 65%),
        rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: calc(var(--nav-height) + 2rem) 1.25rem 2rem;
    max-width: 980px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 900;
    letter-spacing: 0.3px;
    margin-bottom: 0.9rem;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    margin: 0 auto 2rem;
    opacity: 0.92;
    max-width: 44ch;
}

.hero-buttons {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5b8cff);
    color: white;
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 55px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.9s ease both;
}

.animate-fade-in-delay {
    animation: fadeIn 0.9s ease 0.18s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.9s ease 0.36s both;
}

/* 区块样式 */
section {
    padding: 4.75rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
}

/* 服务预览 */
.services-preview {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.6));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.25);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-weight: 900;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.25s ease;
}

.service-link:hover {
    gap: 0.9rem;
}

/* 优势区域 */
.why-us {
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.advantage-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.advantage-number {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.18;
    margin-bottom: 0.75rem;
}

.advantage-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-weight: 900;
}

.advantage-item p {
    color: var(--text-light);
}

/* 案例预览 */
.cases-preview {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(248, 250, 252, 0.9));
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.5rem;
}

.case-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.case-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.08);
}

.case-info {
    padding: 1.4rem 1.5rem 1.6rem;
}

.case-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
    color: var(--text-dark);
    font-weight: 900;
}

.case-info p {
    color: var(--text-light);
}

/* CTA区域 */
.cta-section {
    background: radial-gradient(1000px 500px at 10% 10%, rgba(255, 255, 255, 0.15), transparent 60%),
        linear-gradient(135deg, #0b3abf, #1e40af);
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.8rem;
    font-weight: 900;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    opacity: 0.92;
}

/* Toast */
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2000;
    max-width: min(420px, calc(100vw - 36px));
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: toastIn 0.28s ease both;
}

.toast .toast-icon {
    margin-top: 2px;
    color: #22c55e;
}

.toast .toast-title {
    font-weight: 900;
    margin-bottom: 2px;
}

.toast .toast-desc {
    opacity: 0.9;
    font-size: 0.95rem;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页脚 */
.footer {
    background: #0b1220;
    color: white;
    padding: 3.5rem 0 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: rgba(96, 165, 250, 0.95);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
    background: rgba(37, 99, 235, 0.55);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
}

.footer-bottom .icp-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    margin-left: 0.6rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
}

.footer-bottom .icp-link:hover {
    color: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.55);
}


/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        height: calc(100vh - var(--nav-height));
        overflow: auto;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.96);
        width: 100%;
        text-align: center;
        transition: left 0.28s ease;
        box-shadow: var(--shadow-md);
        padding: 1.25rem 0;
        gap: 0.25rem;
    }

    .nav-menu a {
        width: calc(100% - 28px);
        margin: 0 auto;
        padding: 0.9rem 1rem;
        border-radius: 14px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .services-grid,
    .advantages-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
