/* 全局样式 */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #0071e3;
    --background-color: #fff;
    --gray-light: #f5f5f7;
    --gray: #86868b;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

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

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #005ac1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    color: var(--secondary-color);
    font-weight: 400;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

/* 首页英雄区 */
.hero {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)), url('image/lifestyle-photo/1211743511696_.pic_hd.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 40px;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* 关于部分 */
.about {
    background-color: var(--gray-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

/* 服务部分 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

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

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-steps {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.step-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--gray);
    z-index: -1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22%;
    position: relative;
}

.step-number {
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.step-text {
    text-align: center;
    font-size: 0.9rem;
}

/* 搭配案例 */
.styling-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--gray-light);
}

.styling-wrapper::-webkit-scrollbar {
    height: 8px;
}

.styling-wrapper::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.styling-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.styling-grid {
    display: grid;
    grid-template-columns: repeat(7, 300px);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    width: max-content;
    margin: 0 auto;
}

.styling-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.styling-image {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.styling-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.styling-item:hover .styling-image img {
    transform: scale(1.05);
}

.styling-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.styling-item:hover .styling-overlay {
    opacity: 1;
    transform: translateY(0);
}

.styling-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* 生活照片滑块 - 3D旋转木马效果 */
.lifestyle {
    background-color: var(--gray-light);
    overflow: hidden;
    padding: 100px 0 160px;
    perspective: 1200px;
}

.lifestyle-slider {
    margin-top: 40px;
    margin-bottom: 60px;
}

.coverflow-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 600px;
}

.coverflow {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s ease;
}

.coverflow-item {
    position: absolute;
    width: auto;
    height: 140%;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    backface-visibility: hidden;
    transform-origin: center center;
    transform-style: preserve-3d;
}

.coverflow-item img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    background-color: white;
    transition: all 0.3s ease;
}

/* 前面的图片 - 中心位置 */
.coverflow-item[data-position="0"] {
    z-index: 10;
    transform: translateX(-50%) translateZ(200px) rotateY(0deg);
    opacity: 1;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* 左边的图片 */
.coverflow-item[data-position="-1"] {
    z-index: 5;
    transform: translateX(-85%) translateZ(100px) rotateY(30deg);
    opacity: 0.4;
}

.coverflow-item[data-position="-2"] {
    z-index: 1;
    transform: translateX(-110%) translateZ(0) rotateY(60deg);
    opacity: 0.25;
}

/* 右边的图片 */
.coverflow-item[data-position="1"] {
    z-index: 5;
    transform: translateX(-15%) translateZ(100px) rotateY(-30deg);
    opacity: 0.4;
}

.coverflow-item[data-position="2"] {
    z-index: 1;
    transform: translateX(10%) translateZ(0) rotateY(-60deg);
    opacity: 0.25;
}

/* 后面的图片 (隐藏) */
.coverflow-item[data-position="-3"],
.coverflow-item[data-position="3"] {
    opacity: 0.05;
    z-index: 0;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

.slider-nav button:hover {
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 20;
    flex-wrap: wrap;
    max-width: 200px;
    margin: 0 auto;
    padding: 5px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 5px;
}

.indicator.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* 直播部分 */
.live-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.live-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.live-text {
    flex: 1;
}

.live-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.live-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.live-text li {
    margin-bottom: 10px;
}

/* 联系部分 */
.contact {
    background-color: var(--gray-light);
    text-align: center;
}

.contact-desc {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scan-tip {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 20px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 113, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content, .live-content {
        flex-direction: column;
    }
    
    .step-container {
        flex-wrap: wrap;
    }
    
    .step {
        width: 45%;
        margin-bottom: 30px;
    }
    
    .step-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .styling-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .step {
        width: 100%;
    }
} 