:root {
    --primary-dark: #0a1020;
    --accent-teal: #008899;
    --text-white: #ffffff;
    --text-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

/* 电脑端：横向全屏滚动 */
.container {
    display: flex;
    overflow-x: hidden;
    height: 100vh;
    scrollbar-width: none;
}

.container::-webkit-scrollbar {
    display: none;
}

body .page {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 2rem 70px;
}

/* 手机端：竖向、高度自动、不限制一屏 */
@media (max-width:768px) {
    .container {
        display: block;
        height: auto !important;
        overflow: visible !important;
    }

    body .page {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 80px 1rem 40px !important;
        display: block !important;
    }
}

/* 导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(10, 16, 32, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(10, 16, 32, 0.98);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
}

.logo-text span {
    color: var(--accent-teal);
}

/* 电脑：菜单显示 */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    padding: 0.4rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-teal);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--accent-teal);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    width: 40px;
    height: 27px;
    background: url("../img/cn.png") center/cover;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
}

/* 手机：菜单隐藏 + 汉堡显示 */
@media (max-width:768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 16, 32, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .hamburger {
        display: flex;
    }
}

/* 内容样式 */
.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    z-index: 1;
}

.hero-image img {
    max-width: 90%;
}

.hero-text {
    background: rgba(10, 16, 32, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.btn {
    padding: 0.9rem 2.5rem;
    background: var(--accent-teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}

.page-content {
    max-width: 1100px;
    width: 100%;
    z-index: 1;
}

.page-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.card i {
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.case-img {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 手机自适应 */
@media (max-width:768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* 底部 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 16, 32, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 998;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.3rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width:768px) {
    footer {
        position: relative;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        margin-top: 2rem;
    }
}