/* ===== 基础重置 ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-surface: #f7f9fa;
    --color-surface-alt: #f0f4f5;
    --color-surface-hover: #eef5f3;
    --color-accent: #2dbb8e;
    --color-accent-light: #5ED4AD;
    --color-accent-bg: rgba(45, 187, 142, 0.08);
    --color-red: #e63946;
    --color-red-light: #ff6b75;
    --color-red-bg: rgba(230, 57, 70, 0.07);
    --color-text: #1a1a1a;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --header-h: 64px;
    --radius: 12px;
    --transition: 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --hero-img: url('bg.jpeg');
	/*https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Abstract+minimalist+hero+background+blending+traditional+Chinese+ink+painting+mountains+and+clouds+with+modern+digital+network+lines+and+flowing+circuit+patterns%2c+mint+green+and+coral+red+color+accents%2c+soft+light+gradient+on+clean+white+background%2c+elegant+artistic+wide+composition%2c+no+text&image_size=landscape_16_9*/
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.header-logo {
    width: 45px;
    height: 45px;
    border-radius: 15px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-text);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 20px;
    font-size: 15px;
    color: var(--color-text-muted);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-red), var(--color-accent));
    border-radius: 1px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: var(--transition);
    margin: 0 auto;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero 首页 ===== */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.92) 70%, var(--color-bg) 100%),
        var(--hero-img) center top / cover no-repeat;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 187, 142, 0.06) 0%, transparent 60%);
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 60%);
    top: 20%;
    left: 65%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: var(--color-red);
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(12px, 2vw, 16px);
    color: var(--color-text-muted);
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 15px;
    color: #fff;
    background: var(--color-accent);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(45, 187, 142, 0.25);
}

.hero-btn:hover {
    background: #25a07a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 187, 142, 0.35);
}

.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
}

.scroll-hint span {
    display: block;
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: 6px auto 0;
    animation: scrollDot 1.5s infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 通用 Section 标题 ===== */
.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 2px;
    color: var(--color-text);
    position: relative;
}

.section-title::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-red), var(--color-accent));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* ===== 应用开发 ===== */
.services {
    padding: 80px 0;
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red), var(--color-accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    background: #fff;
    border-color: var(--color-accent-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--color-red);
    background: var(--color-red-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}

.service-en {
    font-size: 13px;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.service-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== 关于我们 ===== */
.about {
    padding: 80px 0;
    background: var(--color-surface);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 15px;
    color: #4b5563;
    line-height: 2;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    border-left: 3px solid var(--color-accent);
}

.feature-item:nth-child(2) {
    border-left-color: var(--color-red);
}

.feature-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(6px);
}

.feature-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.4;
    line-height: 1;
}

.feature-item:nth-child(2) .feature-num {
    color: var(--color-red);
}

.feature-info h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}

.feature-info p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--color-bg);
    padding: 25px 0 14px;
    border-top: 2px solid var(--color-border);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand span:last-child {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    flex-shrink: 0;
}

.footer-qr img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.footer-qr span {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 0;
    font-size: 14px;
}

.footer-links-title {
    color: var(--color-text-muted);
}

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.icp-link {
    font-size: 13px;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.icp-link:hover {
    color: var(--color-accent);
}

/* ===== 滚动动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        transition: right 0.35s ease;
        border-left: 1px solid var(--color-border);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
    }

    .nav.open {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
        padding: 12px 32px;
    }

    .nav-link.active::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .section-desc {
        margin-bottom: 36px;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        text-align: center;
    }

    .services,
    .about {
        padding: 56px 0;
    }

    .hero {
        min-height: 70vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero-title {
        letter-spacing: 2px;
    }

    .hero-btn {
        padding: 12px 32px;
    }

    .service-card {
        padding: 32px 20px;
    }
}
