/*
  1688代购系统 - 3D立体折叠风格
  Website 57 - 3D Folded Style
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fold Background */
.fold-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

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

/* 3D Logo */
.logo-3d {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 6s ease-in-out infinite;
}

.logo-3d.small {
    width: 30px;
    height: 30px;
    animation: none;
}

.logo-3d .face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.logo-3d .front {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateZ(20px);
}

.logo-3d .back {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: rotateY(180deg) translateZ(20px);
}

@keyframes rotate3d {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(10deg); }
}

/* Header */
.fold-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-fold {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fold-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
}

.fold-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.fold-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fold-nav a:hover,
.fold-nav a.active {
    color: var(--primary);
}

.fold-toggle {
    display: none;
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    padding: 8px 15px;
    cursor: pointer;
}

/* Hero Section */
.fold-hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.hero-fold {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform-style: preserve-3d;
}

.fold-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.fold-card:hover {
    transform: translateZ(20px);
}

.fold-card.left {
    transform: rotateY(-15deg) translateX(-50px);
}

.fold-card.right {
    transform: rotateY(15deg) translateX(50px);
}

.fold-card.center {
    transform: translateZ(50px);
    z-index: 10;
}

.fold-card .card-content {
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.fold-card.center .card-content {
    padding: 60px 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.2));
}

.card-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
}

.fold-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fold-card.center h2 {
    font-size: 36px;
}

.fold-card p {
    color: var(--text-muted);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.fold-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fold-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.fold-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.fold-btn.secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fold-btn.secondary:hover {
    border-color: var(--primary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border-radius: 50px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
}

/* Features Section */
.fold-features {
    padding: 100px 0;
}

.features-perspective {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transform-style: preserve-3d;
}

.feature-fold {
    position: relative;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.feature-fold:hover {
    transform: rotateX(180deg);
}

.fold-front,
.fold-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.fold-front {
    transform: translateZ(1px);
}

.fold-back {
    transform: rotateX(180deg) translateZ(1px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.2));
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-fold h3 {
    font-size: 20px;
    font-weight: 700;
}

.fold-back p {
    text-align: center;
    color: var(--text-muted);
}

/* Stats Section */
.fold-stats {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.stat-3d:hover {
    transform: translateZ(20px);
}

.stat-face {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    transform: translateZ(0);
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Users Section */
.fold-users {
    padding: 100px 0;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.user-card {
    height: 250px;
    perspective: 1000px;
}

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

.user-card:hover .card-3d {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.card-front {
    transform: translateZ(1px);
}

.card-back {
    transform: rotateY(180deg) translateZ(1px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.2));
}

.user-icon {
    font-size: 48px;
    margin-bottom: 18px;
}

.user-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.card-back p {
    text-align: center;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Process Section */
.fold-process {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.process-chain {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

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

.link-3d {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.process-link:hover .link-3d {
    transform: translateZ(20px) rotateY(180deg);
    background: var(--primary);
}

.link-front {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    transform: translateZ(10px);
}

.process-link:hover .link-front {
    color: white;
}

.process-link h3 {
    font-size: 16px;
    font-weight: 600;
}

.process-arrow {
    font-size: 24px;
    color: var(--primary);
}

/* Contact Section */
.fold-contact {
    padding: 80px 0;
}

.contact-box {
    padding: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
}

.contact-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-box > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-list {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Footer */
.fold-footer {
    padding: 40px 0 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Footer Contact Info - Always Visible */
.footer-contact {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}

.footer-contact-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-contact-item .contact-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.footer-contact-item .contact-text {
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--text-muted);
}

/* Page Hero Section - Used in sub-pages */
.page-hero {
    min-height: 60vh;
    padding: 140px 0 60px;
    display: flex;
    align-items: center;
    text-align: center;
}

.page-hero .container {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero .hero-content {
    text-align: center;
}

.page-hero .hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 20px;
}

.page-hero .hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-hero .hero-title .title-line {
    display: block;
}

.page-hero .hero-title .title-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero .hero-desc {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Benefits Section - Used in sub-pages */
.benefits-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.03);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.benefit-card {
    padding: 35px 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.benefit-value {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.benefit-desc {
    font-size: 14px;
    color: var(--text-medium);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-fold {
        flex-direction: column;
    }

    .fold-card.left,
    .fold-card.right {
        display: none;
    }

    .features-perspective,
    .stats-grid,
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-chain {
        flex-wrap: wrap;
    }

    .process-arrow {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fold-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
    }

    .fold-nav.active {
        display: block;
    }

    .fold-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .fold-toggle {
        display: block;
    }

    .hero-title {
        font-size: 32px;
    }

    .page-hero {
        padding: 120px 0 40px;
        min-height: 50vh;
    }

    .page-hero .hero-title {
        font-size: 32px;
    }

    .features-perspective,
    .stats-grid,
    .users-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-list {
        flex-direction: column;
        gap: 25px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-contact {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .benefit-value {
        font-size: 32px;
    }
}
