/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070b16;
    --bg-soft: #0b1222;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-solid: #0e1629;
    --ink: #edf1ff;
    --muted: #93a1c4;
    --line: rgba(148, 163, 199, 0.16);
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --gradient: linear-gradient(120deg, #7c5cff 0%, #4f7cff 48%, #22d3ee 100%);
    --glow: 0 10px 34px rgba(124, 92, 255, 0.35);
    --shadow: 0 24px 64px rgba(2, 6, 18, 0.55);
    --radius: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(720px 480px at 88% -6%, rgba(124, 92, 255, 0.16), transparent 62%),
        radial-gradient(640px 460px at -8% 32%, rgba(34, 211, 238, 0.1), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

header,
section,
footer {
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(124, 92, 255, 0.45);
    color: #fff;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--ink);
    transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

ul {
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    background-size: 160% 100%;
    color: #fff;
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: var(--glow);
    transition: background-position 260ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn::after {
    content: '→';
    font-weight: 700;
    transition: transform 180ms var(--ease);
}

.btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(124, 92, 255, 0.5);
}

.btn:hover::after {
    transform: translateX(4px);
}

.section-title {
    text-align: left;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    background: linear-gradient(120deg, #ffffff 30%, #aeb9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.underline {
    height: 4px;
    width: 56px;
    background: var(--gradient);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(124, 92, 255, 0.55);
}

/* 头部导航 */
header {
    background: rgba(7, 11, 22, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 76px;
}

.logo h1 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 2px;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--ink);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient);
    transition: width 0.3s var(--ease);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--ink);
}

/* 轮播图 */
.banner {
    height: min(720px, 100svh);
    min-height: 560px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 800ms var(--ease);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 120px max(24px, calc((100vw - 1180px) / 2)) 96px;
}

.slide.current {
    opacity: 1;
}

.slide .content {
    position: relative;
    width: min(660px, 100%);
    background: rgba(10, 15, 30, 0.58);
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    text-align: left;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(24px);
    opacity: 0;
    overflow: hidden;
}

.slide.current .content {
    animation: slideUp 760ms var(--ease) 200ms forwards;
}

.slide .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide .content h2 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.06;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.05em;
}

.slide .content p {
    max-width: 560px;
    color: rgba(237, 241, 255, 0.78);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.controls {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    pointer-events: none;
}

.controls button {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    font-size: 17px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
    pointer-events: auto;
}

.controls button:hover {
    background: var(--accent);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* 公司简介 */
.about-preview {
    padding: clamp(88px, 11vw, 136px) 0;
    background: var(--bg);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
}

.about-text {
    max-width: 620px;
}

.about-text p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.95;
    margin-bottom: 32px;
}

.about-image {
    min-width: 0;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -18px 18px 18px -18px;
    border-radius: 26px;
    background: var(--gradient);
    opacity: 0.55;
    filter: blur(28px);
    z-index: 0;
    transition: opacity 280ms var(--ease);
}

.about-image:hover::before {
    opacity: 0.8;
}

.about-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    transition: transform 300ms var(--ease);
}

.about-image img:hover {
    transform: translateY(-5px);
}

/* 关于我们页 */
.about-section {
    min-height: calc(100vh - 76px);
    padding: 152px 0 110px;
    background: var(--bg);
}

.about-full {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 60px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.about-full p {
    color: var(--muted);
    font-size: 17px;
    line-height: 2.05;
    margin-bottom: 26px;
}

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

/* 底部信息 */
footer {
    background: #05080f;
    border-top: 1px solid var(--line);
    color: #fff;
    padding: 80px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.72fr));
    gap: 56px;
    margin-bottom: 60px;
}

.footer-logo h2 {
    font-size: 22px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.95;
    color: var(--muted);
}

.footer-contact h3,
.footer-social h3 {
    font-size: 17px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
    color: var(--ink);
}

.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: var(--gradient);
}

.footer-contact p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 15px;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-2);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
}

.social-links a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(147, 161, 196, 0.6);
}

.icp {
    margin-left: 10px;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-text {
        max-width: none;
    }

    .about-image {
        max-width: 720px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: calc(100% - 32px);
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: rgba(7, 11, 22, 0.97);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 280ms var(--ease);
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        padding: 16px 0;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 12px;
    }

    .banner {
        height: min(620px, calc(100svh - 76px));
        min-height: 520px;
    }

    .slide {
        padding: 100px 24px 96px;
        align-items: flex-start;
    }

    .slide .content {
        padding: 26px 24px;
        border-radius: 18px;
    }

    .controls {
        bottom: 28px;
        padding: 0 24px;
    }

    .controls button {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .about-section {
        padding: 124px 0 76px;
    }

    .about-full {
        padding: 30px 24px;
    }

    .about-full p {
        font-size: 15px;
        line-height: 1.95;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-bottom: 44px;
    }
}

@media screen and (max-width: 576px) {
    .section-title h2 {
        font-size: 1.9rem;
    }

    .slide .content h2 {
        font-size: 2.1rem;
    }

    .slide .content p {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
