/* css/style.css */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-400: #a3a3a3;
    --gray-900: #171717;
    --accent: #0066ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-zh {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-en {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--black);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

/* Hero 区域 */
.hero {
    padding: 200px 40px 140px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 72px;
    font-weight: 600;
    letter-spacing: -3px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 21px;
    color: var(--gray-400);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 服务网格 */
.services-preview {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -1px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
}

.service-item {
    background: var(--white);
    padding: 56px 40px;
    transition: all 0.3s ease;
    position: relative;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover {
    background: var(--gray-50);
}

.service-item:hover::after {
    transform: scaleX(1);
}

.service-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-item p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* 项目卡片 */
.project-card {
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--gray-400);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.project-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-card p {
    font-size: 16px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* 页面头部 */
.page-header {
    padding: 160px 40px 100px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.page-header h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* 内容区 */
.content-section {
    max-width: 760px;
    margin: 100px auto;
    padding: 0 40px;
}

.content-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin: 80px 0 24px;
    letter-spacing: -1px;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    font-size: 18px;
    color: var(--gray-900);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* 特性列表 */
.feature-list {
    list-style: none;
    margin: 40px 0;
}

.feature-list li {
    font-size: 18px;
    color: var(--gray-900);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    padding-left: 32px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: 600;
}

/* 表单 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 18px 20px;
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form button {
    padding: 18px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 联系页面双栏布局 */
.contact-layout {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-column h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-column p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

/* 微信二维码 */
.wechat-section {
    max-width: 560px;
    margin: 80px auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--gray-50);
    border-radius: 16px;
}

/* 联系页面的微信区域样式 */
.contact-column .wechat-area {
    text-align: center;
    padding: 48px;
    background: var(--gray-50);
    border-radius: 16px;
    margin: 0;
}

.contact-column .wechat-area h3 {
    margin-bottom: 12px;
}

.contact-column .wechat-area p {
    margin-bottom: 40px;
}

.wechat-area {
    text-align: center;
    padding: 60px 40px;
    background: var(--gray-50);
    border-radius: 16px;
}

.wechat-area h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.wechat-area p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.wechat-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wechat-qr img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Footer */
footer {
    padding: 100px 40px 60px;
    text-align: center;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-400);
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        padding: 16px 24px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-zh {
        font-size: 18px;
    }

    .logo-en {
        font-size: 11px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                    opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                    visibility 0s linear 0.6s;
        will-change: transform, opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), 
                    opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .nav-menu li {
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 16px 24px;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu a:active {
        background: var(--gray-50);
    }

    .hero {
        padding: 140px 24px 80px;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 18px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-item {
        padding: 40px 24px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .page-header {
        padding: 120px 24px 60px;
    }

    .page-header h1 {
        font-size: 40px;
    }

    .content-section {
        margin: 60px auto;
        padding: 0 24px;
    }

    .content-section h2 {
        font-size: 28px;
        margin: 60px 0 20px;
    }

    .project-card {
        padding: 32px 24px;
    }

    /* 联系页面响应式 */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .contact-column h3 {
        font-size: 24px;
    }

    .wechat-area {
        padding: 40px 24px;
    }

    footer {
        padding: 60px 24px 40px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-item h3 {
        font-size: 20px;
    }

    .wechat-qr {
        width: 160px;
        height: 160px;
    }
}