/*
  1688代购系统 - 液态渐变风格
  Website 58 - Liquid Gradient Style
*/

:root {
    --primary: #06b6d4;
    --primary-light: #22d3ee;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.08);
    --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;
}

/* Liquid Background */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

.blob-4 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 20%;
    left: 20%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

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

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

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

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

.logo-drop {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: drop-bounce 3s ease-in-out infinite;
}

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

@keyframes drop-bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-10px); }
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.liquid-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.liquid-nav a:hover,
.liquid-nav a.active {
    color: var(--text-light);
}

.liquid-nav a:hover::after,
.liquid-nav a.active::after {
    width: 100%;
}

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

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

.hero-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.flow-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 25px;
}

.liquid-title {
    margin-bottom: 25px;
}

.title-flow {
    display: block;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 28px;
    font-weight: 400;
    color: var(--accent);
    margin-top: 10px;
}

.liquid-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

.liquid-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.liquid-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.liquid-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

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

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

/* Drop Visual */
.flow-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.drop {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    opacity: 0.6;
    animation: drop-float 4s ease-in-out infinite;
}

.drop-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.drop-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    animation-delay: -1.5s;
}

.drop-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 10%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    animation-delay: -3s;
}

.drop-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(139, 92, 246, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    z-index: 10;
    animation: pulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 15px;
}

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

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

.features-flow {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-stream {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.feature-stream.reverse {
    flex-direction: row-reverse;
}

.feature-wave {
    display: flex;
    justify-content: center;
}

.feature-card {
    position: relative;
    padding: 35px 30px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card.large {
    padding: 45px 60px;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.stats-flow {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 35px 45px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-drop {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
}

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

.stat-item .stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
}

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

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

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

.user-card {
    padding: 35px 25px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.user-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

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

.user-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.user-card p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 180px;
}

.step-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-ring::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    animation: spin 3s linear infinite;
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

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

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
}

.step-connector::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: -10px;
    color: var(--primary-light);
    font-size: 16px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.contact-wrapper {
    padding: 60px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* Footer */
.liquid-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-light);
}

/* Footer Contact Info - Always Visible */
.footer-contact {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    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(6, 182, 212, 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-light);
    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-muted);
    max-width: 700px;
    margin: 0 auto;
}

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

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

.benefit-card {
    padding: 35px 25px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    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(6, 182, 212, 0.2);
}

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

.benefit-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    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-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-flow {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .flow-visual {
        order: -1;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-stream,
    .feature-stream.reverse {
        flex-direction: column;
        align-items: center;
    }

    .feature-card.large {
        width: 100%;
    }

    .stats-flow {
        flex-wrap: wrap;
    }

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

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

    .step-connector {
        display: none;
    }

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

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

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

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

    .liquid-toggle {
        display: block;
    }

    .title-flow {
        font-size: 38px;
    }

    .title-sub {
        font-size: 22px;
    }

    .drop-container {
        width: 280px;
        height: 280px;
    }

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

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

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

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

    .users-flow,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-items {
        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;
    }
}
