/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3; /* 类似 Apple 的蓝色 */
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --secondary-bg: #f5f5f7;
    --card-bg: #ffffff;
    --gray-text: #86868b;
    --transition: all 0.3s ease;
}

body {
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 980px; /* 胶囊形状 */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero 区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 24px;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 通用 Section 样式 */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 60px;
    font-size: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 服务内容 */
.services {
    background-color: var(--secondary-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-text);
    font-size: 15px;
}

.service-promise {
    text-align: center;
    margin-top: 60px;
}

.service-promise h3 {
    font-size: 28px;
    margin-bottom: 40px;
}

.promise-items {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.promise-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.promise-item i {
    font-size: 32px;
    color: #34c759; /* 绿色代表通过/成功 */
    margin-bottom: 15px;
}

.promise-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.promise-item p {
    color: var(--gray-text);
    font-size: 14px;
}

/* 案例展示 */
.portfolio {
    background-color: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--secondary-bg);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 500px; /* 调整高度以适应竖屏图片 */
    width: 100%;
    margin: 0 auto;
    background: #f5f5f7;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 250ms ease-in;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片比例，不裁剪 */
    padding: 20px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button--left {
    left: 10px;
}

.carousel-button--right {
    right: 10px;
}

.carousel-button.is-hidden {
    display: none;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 10;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.2);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
    transform: scale(1.2);
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 15px;
}

/* 联系我们 */
.contact {
    background-color: var(--secondary-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-text {
    flex: 1;
    min-width: 300px;
}

.contact-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 10px;
}

.contact-text .highlight {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 20px;
    display: block;
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: var(--primary-color);
}

.qr-box {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.qr-box img {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1188 / 1566;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px auto;
}

.qr-box p {
    font-size: 14px;
    color: var(--gray-text);
}

/* Footer */
footer {
    background-color: #1d1d1f;
    color: #f5f5f7;
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding-top: 40px;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }

    .contact-list {
        display: inline-block;
        text-align: left;
    }

    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 400px; /* 移动端稍微减小高度 */
    }
}
/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close-modal:hover {
    color: #bbb;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* 给二维码添加点击手势 */
.qr-box img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.qr-box img:hover {
    transform: scale(1.05);
}
