/*
  1688代购系统 - 像素故障风格
  Website 59 - Pixel Glitch Style
*/

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #f59e0b;
    --accent: #ef4444;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #f0f0f0;
    --text-dim: #888;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Pixel Background */
.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
    background-size: 4px 4px;
}

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

/* Glitch Text Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--accent);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--secondary);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(2px); }
    40% { transform: translateX(-2px); }
    60% { transform: translateX(1px); }
    80% { transform: translateX(-1px); }
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--accent);
    transform: translate(-2px, -2px);
    z-index: -1;
}

.glitch-text::after {
    color: var(--secondary);
    transform: translate(2px, 2px);
    z-index: -2;
}

/* Header */
.glitch-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--primary);
}

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

.glitch-logo {
    text-decoration: none;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.glitch-nav ul,
.pixel-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.glitch-nav a,
.pixel-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.glitch-nav a:hover,
.glitch-nav a.active,
.pixel-nav a:hover,
.pixel-nav a.active {
    color: var(--primary);
    text-shadow: 2px 2px var(--accent);
}

.glitch-toggle,
.pixel-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
}

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

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

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.glitch-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Courier New', monospace;
}

.glitch-title .subtitle {
    display: block;
    font-size: 24px;
    color: var(--secondary);
    margin-top: 10px;
}

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

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

.glitch-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.glitch-btn.primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
}

.glitch-btn.primary:hover {
    background: var(--primary-dark);
    box-shadow: 4px 4px var(--secondary);
    transform: translate(-2px, -2px);
}

.glitch-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.glitch-btn.secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Pixel Hero Section (for sub-pages) */
.pixel-hero {
    min-height: 60vh;
    padding: 140px 0 60px;
    display: flex;
    align-items: center;
    text-align: center;
}

.pixel-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pixel-hero .hero-content {
    max-width: 800px;
}

.pixel-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.pixel-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    position: relative;
    font-family: 'Courier New', monospace;
}

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

.pixel-title .title-highlight {
    display: block;
    font-size: 36px;
    color: var(--secondary);
    margin-top: 10px;
}

.pixel-desc {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pixel Grid Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pixel-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pixel-row {
    display: flex;
    gap: 8px;
}

.pixel {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    transition: all 0.2s ease;
}

.pixel.on {
    background: var(--primary);
    animation: pixel-flicker 0.5s ease-in-out infinite;
}

.pixel.off {
    background: transparent;
}

@keyframes pixel-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 2px solid var(--secondary);
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

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

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

.feature-card {
    padding: 30px 25px;
    background: var(--bg-card);
    border: 2px solid var(--text-dim);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
}

.card-icon {
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

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

/* Stats Section */
.glitch-stats {
    padding: 80px 0;
    background: var(--bg-card);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 35px 45px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    display: inline;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.user-card {
    padding: 35px 25px;
    background: var(--bg-card);
    border: 2px solid var(--text-dim);
    text-align: center;
    transition: all 0.3s ease;
}

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

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

.user-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

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

/* Process Section */
.glitch-process {
    padding: 100px 0;
    background: var(--bg-card);
}

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

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

.step-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.step:hover .step-box {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 4px 4px var(--secondary);
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.step-arrow {
    font-size: 24px;
    color: var(--secondary);
}

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

.contact-wrapper {
    padding: 60px;
    background: var(--bg-card);
    border: 2px solid var(--secondary);
    text-align: center;
}

.contact-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.contact-wrapper > p {
    color: var(--text-dim);
    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-dark);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.glitch-footer {
    padding: 40px 0 20px;
    background: var(--bg-dark);
    border-top: 2px solid var(--primary);
}

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

.footer-brand {
    font-size: 18px;
    font-family: 'Courier New', monospace;
}

.footer-brand span:first-child {
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}

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

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

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

/* Footer Contact Info - Always Visible */
.footer-contact {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    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-dim);
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--text-dim);
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Courier New', monospace;
}

/* 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(34, 197, 94, 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;
    font-family: 'Courier New', monospace;
}

.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-dim);
    max-width: 700px;
    margin: 0 auto;
}

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

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

.benefit-card {
    padding: 35px 25px;
    background: rgba(34, 197, 94, 0.03);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 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;
    font-family: 'Courier New', monospace;
}

.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;
    font-family: 'Courier New', monospace;
}

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

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

    .hero-visual {
        order: -1;
    }

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

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

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

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

    .step-arrow {
        display: none;
    }

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

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

    .glitch-nav.active,
    .pixel-nav.active {
        display: block;
    }

    .glitch-nav ul,
    .pixel-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .glitch-toggle,
    .pixel-toggle {
        display: block;
    }

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

    .pixel {
        width: 35px;
        height: 35px;
    }

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

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

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

    .pixel-title .title-line {
        font-size: 32px;
    }

    .pixel-title .title-highlight {
        font-size: 28px;
    }

    .features-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;
    }
}
