/*
Theme Name: Xpedent International Theme
Theme URI: https://example.com/xpedent
Author: Your Name
Description: A modern, video-heavy theme based on the Xpedent design.
Version: 1.0
*/

/* ========================================
   全局样式
   ======================================== */
:root {
    --primary-black: #1a1a1a;
    --primary-pink: #ffd1dc;
    --primary-pink-dark: #ffb7c5;
    --text-gray: #666;
    --bg-off-white: #f9f9f9;
    --pink-gradient-start: #ffe6ea;
    --pink-gradient-end: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

body {
    background-color: #fff;
    color: var(--primary-black);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========================================
   Header 导航栏样式
   ======================================== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    top: 10px;
    height: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.header-logo {
    font-weight: 900;
    font-size: 24px;
    color: #000;
    flex-shrink: 0;
}
.header-logo span { color: red; }

.header-nav {
    display: flex;
    gap: 20px;
    height: 100%;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    position: relative;
    padding: 0 5px;
    transition: color 0.3s;
}

.nav-item:hover { color: #000; }

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: 0.3s;
}

/* 超级菜单 */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: max-content;
    min-width: 800px;
    max-width: 90vw;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    padding: 30px;
    display: flex;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 16px;
    pointer-events: none;
    z-index: 999;
    border: 1px solid #f0f0f0;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.menu-left {
    width: 180px;
    flex-shrink: 0;
    border-right: 1px solid #f5f5f5;
    padding-right: 20px;
}

.menu-left li {
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-left li:hover { color: #000; font-weight: 600; }
.menu-left li span { font-size: 10px; color: #ccc; }

.menu-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card { cursor: pointer; }
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #f9f9f9;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: transform 0.3s;
}
.product-card:hover img { transform: scale(1.03); }
.product-card h4 { font-size: 14px; margin-bottom: 4px; font-weight: 600; }
.product-card p { font-size: 12px; color: #888; }

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: 0.3s;
    font-size: 12px;
}
.btn-icon:hover { background: #f9f9f9; border-color: #ddd; }

.btn-pink {
    background-color: var(--primary-pink);
    border: none;
    width: auto;
    padding: 0 16px;
    height: 32px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000;
}
.btn-pink:hover { background-color: var(--primary-pink-dark); }

/* ========================================
   Banner 视频背景样式
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    z-index: 1;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 5% 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
  Xpedent_International 独一无二板块
   ======================================== */
.section-gbt-unique {
    padding: 100px 0;
    background: var(--bg-off-white);
    width: 100%;
}

.gbt-unique-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.gbt-unique-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.gbt-unique-title {
    flex: 1;
    min-width: 300px;
}

.gbt-unique-title h1 {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.1;
}

.gbt-unique-features {
    flex: 0 0 350px;
}

.feature-item {
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

.Xpedent_International {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.Xpedent_International p {
    font-size: 20px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 80px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary-pink);
    color: var(--primary-black);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-explore:hover {
    background: var(--primary-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 183, 197, 0.4);
}

.btn-explore .arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* ========================================
   三列卡片展示 - 兼容图片和视频
   ======================================== */
.section-cards {
    padding: 0 0 100px;
    background: var(--bg-off-white);
    width: 100%;
}

.cards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-media {
    height: 350px;
    overflow: hidden;
    background: #000;
    position: relative;
}

/* 同时兼容 img 和 video 标签 */
.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

/* 鼠标悬停时的放大效果 */
.card-item:hover .card-media img,
.card-item:hover .card-media video {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* ========================================
   球形动画区域
   ======================================== */
.section-sphere-animation {
    position: relative;
    height: 350vh;
    background: linear-gradient(180deg, var(--pink-gradient-start) 0%, var(--pink-gradient-end) 100%);
}

.sphere-original-title {
    padding: 150px 5% 100px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.sphere-original-title.hidden {
    opacity: 0;
    pointer-events: none;
}

.sphere-original-title h2 {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-black);
    line-height: 1.5;
}

.sphere-original-title h2 strong {
    font-weight: 700;
}

.sphere-fixed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.sphere-fixed-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sphere-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 60;
    pointer-events: auto;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    width: 90%;
    max-width: 600px;
}

.sphere-center-text h2 {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-black);
    line-height: 1.5;
    white-space: nowrap;
}

.sphere-center-text h2 strong {
    font-weight: 700;
}

.sphere-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 55;
}

.sphere-item {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    opacity: 0;
    left: 50%;
    top: 50%;
    pointer-events: auto;
    transition: opacity 0.5s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, opacity;
}

.sphere-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sphere-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 183, 197, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.sphere-item.visible::before {
    opacity: 1;
}

/* 已隐藏右侧进度条样式 */
.sphere-progress {
    display: none; 
}

/* ========================================
   产品展示区块
   ======================================== */
.section-products-showcase {
    background: #111;
    padding: 100px 5%;
    color: #fff;
}

.products-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
}

.products-showcase-title {
    text-align: center;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 60px;
    line-height: 1.3;
}

.products-showcase-title strong {
    font-weight: 700;
}

.products-main-video {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #000;
}

.products-main-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-main-video .video-label {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-main-video .video-label:hover {
    background: var(--primary-pink);
    transform: translateY(-2px);
}

.products-main-video .video-label .arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-sub-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.product-sub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.product-sub-card img,
.product-sub-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-sub-card .card-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.product-sub-card:hover .card-label {
    background: var(--primary-pink);
}

.product-sub-card .card-label .arrow {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* ========================================
   扇形视频画廊 - 修复版（凹形笑脸）
   ======================================== */
.section-smile-gallery {
    position: relative;
    padding: 150px 0;
    background: #f5f5f5;
    overflow: hidden;
}

.smile-gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

.smile-gallery-title {
    text-align: center;
    font-size: 56px;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 80px;
    line-height: 1.4;
}

.smile-gallery-title strong {
    font-weight: 700;
}

.smile-gallery-track {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    perspective: 1000px;
}

.smile-gallery-wrapper {
    position: absolute;
    display: flex;
    gap: 30px;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.1s ease-out;
}

.smile-video-card {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.smile-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smile-video-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

.smile-video-card.active {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.smile-video-card.inactive {
    opacity: 0.4;
    transform: scale(0.88);
}

/* 凹形扇形效果（笑脸型）- 两侧向后并向内旋转 */
.smile-video-card.fan-0 { 
    transform: perspective(1000px) rotateY(25deg) translateX(-120px) translateZ(-150px); 
    opacity: 0.5;
}
.smile-video-card.fan-1 { 
    transform: perspective(1000px) rotateY(12deg) translateX(-60px) translateZ(-80px); 
    opacity: 0.7;
}
.smile-video-card.fan-2 { 
    transform: perspective(1000px) rotateY(0deg) translateX(0) translateZ(0); 
    opacity: 1;
}
.smile-video-card.fan-3 { 
    transform: perspective(1000px) rotateY(-12deg) translateX(60px) translateZ(-80px); 
    opacity: 0.7;
}
.smile-video-card.fan-4 { 
    transform: perspective(1000px) rotateY(-25deg) translateX(120px) translateZ(-150px); 
    opacity: 0.5;
}

.smile-gallery-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.gallery-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav-dot.active {
    background: var(--primary-pink-dark);
    transform: scale(1.3);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 5% 40px;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 16px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-col ul li:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #666;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .cards-grid { grid-template-columns: 1fr; }
    .gbt-unique-header { flex-direction: column; }
    .gbt-unique-features { width: 100%; }
    .gbt-unique-title h1 { font-size: 48px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sphere-item { width: 100px; height: 100px; }
    .sphere-center-text h2 { font-size: 32px; }
    .products-main-video { height: 450px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-sub-card { height: 350px; }
    .smile-gallery-title { font-size: 42px; }
    .smile-video-card { width: 260px; height: 400px; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 36px; }
    .sphere-center-text h2 { 
        font-size: 22px;
        white-space: normal;
    }
    .sphere-item { width: 70px; height: 70px; }
    header { width: 95%; padding: 0 15px; }
    .section-sphere-animation { height: 400vh; }
    .products-showcase-title { font-size: 32px; }
    .products-main-video { height: 300px; }
    .product-sub-card { height: 280px; }
    .smile-gallery-title { font-size: 32px; }
    .smile-gallery-track { height: 450px; }
    .smile-video-card { width: 220px; height: 340px; }
}

@media (max-width: 480px) {
    .sphere-item { width: 60px; height: 60px; }
    .sphere-center-text h2 { font-size: 18px; }
    .hero-content h1 { font-size: 28px; }
    .gbt-unique-title h1 { font-size: 36px; }
    .products-showcase-title { font-size: 28px; }
    .smile-gallery-title { font-size: 28px; }
    .smile-video-card { width: 180px; height: 280px; }
}
