@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Noto+Sans+SC:wght@400;700;900&display=swap');

:root {
    --bg-color: #050505;
    --text-main: #d4d4d4;
    --neon-cyan: #00f3ff;
    --neon-pink: #ff003c;
    --acid-yellow: #d4ff00;
    --concrete-grey: #121212;
    --concrete-border: #333;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo, .price {
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; }

/* Canvas Background */
#rainCanvas {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2; pointer-events: none;
}

/* Grate Light FX */
.grate-fx {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0px,
        rgba(0, 0, 0, 0.9) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: -1; pointer-events: none; opacity: 0.3;
}

/* Flickering FX */
@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; }
}
.flicker { animation: flicker 4s infinite; }

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

/* Cyberpunk Buttons */
.btn {
    display: inline-block; padding: 12px 24px; font-weight: 700;
    text-align: center; cursor: pointer;
    border: 2px solid var(--neon-cyan); color: var(--neon-cyan);
    background: transparent; text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace; position: relative;
    transition: all 0.2s; box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--neon-cyan); z-index: -1; transform: scaleX(0);
    transform-origin: right; transition: transform 0.3s ease;
}
.btn:hover { color: #000; box-shadow: 0 0 20px rgba(0, 243, 255, 0.6); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary {
    border-color: var(--neon-pink); color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.2);
}
.btn-primary::before { background: var(--neon-pink); }
.btn-primary:hover { color: #000; box-shadow: 0 0 20px rgba(255, 0, 60, 0.6); }

/* Header */
.header {
    background: rgba(5,5,5,0.9); border-bottom: 2px solid var(--concrete-border);
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 2rem; color: var(--acid-yellow); text-shadow: 0 0 10px rgba(212, 255, 0, 0.5); }
.nav { display: flex; gap: 30px; }
.nav a { color: var(--text-main); font-weight: 700; font-family: 'Share Tech Mono', monospace; transition: 0.3s; }
.nav a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

/* Marquee */
.marquee-container {
    background: var(--neon-pink); color: #000;
    font-family: 'Share Tech Mono', monospace; font-weight: 900;
    padding: 8px 0; overflow: hidden; white-space: nowrap; border-bottom: 2px solid #fff;
}
.marquee { display: inline-block; animation: scroll 20s linear infinite; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Hero Section */
.hero { padding: 100px 0; overflow: hidden; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; }
.hero-title {
    font-size: 3.5rem; color: #fff; line-height: 1.2; margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--neon-pink), -2px -2px 0 var(--neon-cyan);
}
.hero-subtitle {
    font-size: 1.1rem; color: #aaa; margin-bottom: 40px;
    border-left: 4px solid var(--acid-yellow); padding-left: 15px;
}
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }

/* SVG Door Glow */
.door-glow {
    position: absolute; width: 200px; height: 300px;
    background: var(--neon-cyan); filter: blur(80px); opacity: 0.5;
    z-index: 0; animation: pulse 2s infinite alternate;
}
@keyframes pulse { 0% { opacity: 0.3; } 100% { opacity: 0.7; } }
.hero-visual svg { z-index: 1; width: 100%; max-width: 350px; }

/* Grids & Common Elements */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.section-title {
    font-size: 2.5rem; text-align: center; margin-bottom: 50px;
    color: var(--acid-yellow); text-shadow: 0 0 10px rgba(212,255,0,0.3);
}

/* Feature Cards (Concrete Hackers) */
.card {
    background: var(--concrete-grey); border: 2px solid var(--concrete-border);
    padding: 30px; position: relative; box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    transition: all 0.3s;
}
.card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,243,255,0.03) 10px, rgba(0,243,255,0.03) 20px);
    pointer-events: none;
}
.card:hover {
    border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,243,255,0.2), inset 0 0 20px rgba(0,0,0,0.8);
    transform: translateY(-5px);
}
.card-icon { font-size: 3rem; margin-bottom: 20px; text-shadow: 0 0 10px var(--neon-pink); }
.card h3 { color: var(--neon-cyan); font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: #aaa; }

/* 3D Pricing Carousel (Scrap Metal Terminals) */
.pricing-carousel-wrapper {
    perspective: 1200px; margin: 50px auto; width: 100%; height: 500px;
    position: relative; display: flex; justify-content: center; align-items: center;
}
.pricing-carousel {
    width: 320px; height: 440px; position: absolute; transform-style: preserve-3d;
    animation: rotateCarousel 20s infinite linear;
}
.pricing-carousel:hover { animation-play-state: paused; }
@keyframes rotateCarousel { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

.pricing-card {
    position: absolute; width: 320px; height: 440px;
    background: #0a0a0a; border: 3px solid var(--concrete-border);
    padding: 30px; text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 0 30px rgba(0,0,0,0.9);
}
/* Welds effect */
.pricing-card::before {
    content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px dashed #444; z-index: -1; pointer-events: none;
}
.led-strip {
    position: absolute; top: 15px; right: 15px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink); animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* Positioning the 3 cards in 3D space */
.pricing-card:nth-child(1) { transform: rotateY(0deg) translateZ(280px); border-color: #555; }
.pricing-card:nth-child(2) { transform: rotateY(120deg) translateZ(280px); border-color: var(--neon-cyan); }
.pricing-card:nth-child(3) { transform: rotateY(240deg) translateZ(280px); border-color: var(--acid-yellow); }

.pricing-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.pricing-card .price { font-size: 2.5rem; color: var(--neon-cyan); margin: 20px 0; text-shadow: 0 0 10px rgba(0,243,255,0.3); }
.pricing-card ul { list-style: none; color: #aaa; margin-bottom: 30px; text-align: left; }
.pricing-card ul li { margin-bottom: 10px; border-bottom: 1px dashed #333; padding-bottom: 8px; font-family: 'Share Tech Mono', monospace; font-size: 1.1rem; }
.pricing-card .btn { width: 100%; }

/* FAQ & Reviews */
.review-card {
    background: #111; border: 1px solid #333; padding: 25px;
    border-left: 4px solid var(--neon-pink);
}
.stars { color: var(--acid-yellow); margin-bottom: 15px; }
.review-text { color: #ccc; font-style: italic; margin-bottom: 15px; }

.faq-item { background: #111; border: 1px solid #333; padding: 20px; margin-bottom: 15px; border-left: 4px solid var(--neon-cyan); }
.faq-item h4 { color: var(--neon-cyan); margin-bottom: 10px; }

/* Footer */
.footer {
    background: #000; border-top: 2px solid var(--neon-pink);
    padding: 50px 0 30px; text-align: center;
}
.footer-links { margin-bottom: 20px; }
.footer-links a { color: var(--acid-yellow); margin: 0 15px; font-family: 'Share Tech Mono'; text-transform: uppercase; transition: 0.3s; }
.footer-links a:hover { color: #fff; text-shadow: 0 0 10px #fff; }

/* Subpage styling fixes */
.page-header { padding: 60px 0; text-align: center; border-bottom: 1px solid var(--concrete-border); }
.page-title { font-size: 2.5rem; color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }
.page-content { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.page-content h2 { color: var(--acid-yellow); margin: 30px 0 15px; }
.page-content p { color: #aaa; margin-bottom: 15px; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-subtitle { border-left: none; border-bottom: 4px solid var(--acid-yellow); padding-bottom: 15px; padding-left: 0; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    
    /* Disable 3D carousel on tablet/mobile and flatten into grid */
    .pricing-carousel-wrapper { height: auto; perspective: none; margin: 0; display: block; }
    .pricing-carousel { position: relative; width: 100%; height: auto; transform-style: flat; animation: none; display: grid; grid-template-columns: 1fr; gap: 30px; }
    .pricing-card { position: relative; width: 100%; height: auto; transform: none !important; margin: 0 auto; }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav { display: none; }
    .hero-title { font-size: 2.5rem; }
    .btn { display: block; width: 100%; margin-bottom: 10px; }
    .header .btn { width: auto; display: inline-block; padding: 8px 16px; margin-bottom: 0; }
}

/* 无障碍与修复 */
:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--neon-pink);
    color: #fff;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}
*[id] {
    scroll-margin-top: 100px;
}
@media (max-width: 768px) {
    .btn, .nav a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
/* FAQ Native Details */
details.faq-item {
    background: #111;
    border-left: 4px solid var(--neon-cyan);
    margin-bottom: 15px;
    padding: 15px;
    display: block;
}
details.faq-item summary {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary::before {
    content: '▶ ';
    color: var(--neon-cyan);
    font-size: 0.9em;
    display: inline-block;
    transition: transform 0.2s;
}
details.faq-item[open] summary::before {
    transform: rotate(90deg);
}
details.faq-item p {
    color: #999;
    margin: 15px 0 0 0;
    font-size: 1rem;
}
