/* style.css - 开云Kering全球时尚与奢侈品集团 */

:root {
    --bg: #f8f9fa;
    --text: #1a1a2e;
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #0f3460;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --gradient: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    --transition: all 0.3s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

[data-theme="dark"] {
    --bg: #0a0a1a;
    --text: #e0e0e0;
    --primary: #e94560;
    --secondary: #1a1a2e;
    --accent: #e94560;
    --glass: rgba(20, 20, 40, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #0a0a1a, #1a1a2e, #16213e);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

/* 通用区块 */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 50px;
}

/* 卡片 */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* 网格 */
.grid {
    display: grid;
    gap: 30px;
}

/* 弹性布局 */
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.text-center {
    text-align: center;
}

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

.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy.loaded {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .flex {
        flex-direction: column;
        align-items: center;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

header a[href="/"] {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

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

nav a:hover {
    color: var(--secondary);
}

#themeToggle,
#searchToggle,
#menuToggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

#themeToggle:hover,
#searchToggle:hover,
#menuToggle:hover {
    transform: scale(1.1);
}

#menuToggle {
    display: none;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 15px;
    }
    #menuToggle {
        display: block;
    }
}

/* Search Bar */
#searchBar {
    display: none;
    padding: 10px 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: var(--secondary);
}

/* Hero Section */
#hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 800 800%22%3E%3Ccircle cx=%22400%22 cy=%22400%22 r=%22300%22 fill=%22rgba(255,255,255,0.03)%22/%3E%3C/svg%3E') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

#hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

#bannerSlider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

#bannerTrack {
    display: flex;
    transition: transform 0.8s ease;
}

#bannerTrack > div {
    min-width: 100%;
    padding: 60px 20px;
}

#bannerTrack h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

#bannerTrack p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.dot.active,
.dot:hover {
    opacity: 1;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    #bannerTrack h1 {
        font-size: 2.2rem;
    }
    #bannerTrack p {
        font-size: 1rem;
    }
}

/* Breadcrumb */
#breadcrumb {
    padding: 15px 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

#breadcrumb nav {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

#breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: opacity 0.3s;
}

#breadcrumb a:hover {
    opacity: 0.7;
}

/* About Section */
#about .grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Stats Section */
#stats {
    background: var(--gradient);
    color: #fff;
}

#stats .section-title {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

#stats .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.counter {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    display: inline-block;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-item h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3 span {
    transition: transform 0.3s;
}

.faq-item.active h3 span {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    margin-top: 15px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.5);
    z-index: 999;
    transition: var(--transition);
}

#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.7);
}

/* Footer */
footer {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
}

footer h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

footer ul {
    list-style: none;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}

footer hr {
    margin: 30px 0;
    border-color: rgba(255, 255, 255, 0.1);
}

/* 滚动动画增强 */
.section:nth-child(odd) {
    animation-delay: 0.1s;
}

.section:nth-child(even) {
    animation-delay: 0.2s;
}

/* 暗色模式额外适配 */
[data-theme="dark"] .card {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .btn {
    color: #fff;
}

/* 合作伙伴徽章 */
#partners .flex svg {
    border-radius: 8px;
    background: var(--bg);
    padding: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#partners .flex svg:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* 案例卡片 */
#cases .card svg {
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 团队头像 */
#team .card svg {
    margin: 0 auto 15px;
}

/* 产品卡片 */
#products .card svg {
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 新闻卡片 */
#news .card svg {
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 联系图标 */
#contact svg {
    margin: 0 auto 15px;
}

/* 响应式增强 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .card {
        padding: 20px;
    }
    #bannerTrack h1 {
        font-size: 1.8rem;
    }
    #bannerTrack p {
        font-size: 0.9rem;
    }
    .counter {
        font-size: 2.2rem;
    }
}

/* 辅助过渡 */
a, button, input, textarea {
    transition: var(--transition);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}