/* style.css (Web3 / Cyberpunk Cafe Style) */
:root {
  --primary: #FFB84D; /* 萃取金 */
  --accent: #9D00FF; /* 高能霓虹紫 */
  --bg-color: #050507; 
  --text-color: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: rgba(20, 20, 25, 0.85);
  --border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: "Orbitron", "Segoe UI", Roboto, "Helvetica Neue", sans-serif; 
    line-height: 1.6; 
    color: var(--text-color); 
    background-color: var(--bg-color); 
    scroll-behavior: smooth;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }

/* Cyberpunk Button */
.btn { 
    display: inline-block; 
    padding: 14px 30px; 
    background: linear-gradient(90deg, var(--accent), #7a00cc); 
    color: #fff; 
    font-weight: 900; 
    text-transform: uppercase;
    text-align: center; 
    transition: all 0.3s;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.4);
    position: relative;
    letter-spacing: 1.5px;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, var(--primary), #e5a342);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}
.btn:hover {
    box-shadow: 0 0 25px var(--primary);
    border-color: var(--primary);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }

/* Header */
header { 
    background: rgba(5, 5, 7, 0.85); 
    backdrop-filter: blur(12px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 5px 25px rgba(157, 0, 255, 0.25);
}
.header-inner { 
    display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding: 10px 0;
}
.logo { font-size: 26px; font-weight: 900; color: var(--primary); text-shadow: 0 0 12px var(--primary); letter-spacing: 2px;}

/* Navigation */
.main-nav ul { display: flex; gap: 25px; list-style: none; }
.main-nav a { font-weight: 700; color: var(--text-color); transition: all 0.2s; text-transform: uppercase; font-size: 14px; letter-spacing: 1px;}
.main-nav a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }

/* Hero Section */
.hero { 
    padding: 120px 0 90px; 
    text-align: center; 
    position: relative;
    background: radial-gradient(circle at center, rgba(157,0,255,0.15) 0%, transparent 60%);
}
.hero::after {
    /* 3D 机械咖啡豆/核心 SVG Background */
    content: '';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 Q80 10 90 50 Q80 90 50 90 Q20 90 10 50 Q20 10 50 10 Z" fill="none" stroke="%239D00FF" stroke-width="2"/><path d="M40 20 Q60 50 40 80" fill="none" stroke="%23FFB84D" stroke-width="4"/><circle cx="50" cy="50" r="15" fill="none" stroke="%239D00FF" stroke-width="2"/><circle cx="50" cy="50" r="8" fill="%23FFB84D"/><path d="M10 50 L90 50" stroke="%239D00FF" stroke-width="0.5" stroke-dasharray="2,2"/><path d="M50 10 L50 90" stroke="%239D00FF" stroke-width="0.5" stroke-dasharray="2,2"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.8;
    filter: drop-shadow(0 0 25px #9D00FF);
    animation: float 4s ease-in-out infinite, pulse 2s infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-55%) rotate(5deg); }
}
@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 20px #9D00FF); }
    50% { filter: drop-shadow(0 0 45px #FFB84D); }
}

.hero h1 { font-size: 54px; margin-bottom: 25px; color: #fff; line-height: 1.3; font-weight: 900; text-shadow: 2px 2px 0 var(--accent), -2px -2px 0 var(--primary); text-transform: uppercase; letter-spacing: 2px;}
.hero-desc { font-size: 20px; color: var(--text-color); margin-bottom: 45px; max-width: 750px; margin-left: auto; margin-right: auto; text-shadow: 0 2px 5px rgba(0,0,0,0.9); }

/* Marquee for Node Kanban */
.marquee-container {
    background: var(--accent);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--accent);
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 14px;
}
@keyframes scroll-left {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-100%); }
}

/* Sections */
.section-title { text-align: center; font-size: 38px; margin-bottom: 50px; color: #fff; text-shadow: 0 0 12px var(--primary); text-transform: uppercase; letter-spacing: 2px; font-weight: 900;}

/* Grid Layouts (Preserving structure) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; perspective: 1000px;}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 60px; perspective: 1000px;}

/* Metallic Cards */
.card { 
    background: linear-gradient(145deg, #181822, #0d0d12); 
    padding: 35px; 
    border-radius: 0; 
    box-shadow: inset 0 0 10px rgba(157, 0, 255, 0.1), 0 10px 20px rgba(0,0,0,0.6); 
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    position: relative;
    z-index: 1;
}
.card:hover { 
    transform: translateY(-10px) rotateX(5deg) scale(1.02); 
    border-left-color: var(--accent); 
    box-shadow: inset 0 0 25px rgba(255, 184, 77, 0.2), 0 15px 30px rgba(157, 0, 255, 0.3); 
    z-index: 10;
}
.card h3 { font-size: 22px; margin-bottom: 15px; color: var(--primary); display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800;}
.card p { color: var(--text-muted); }

/* Pricing Carousel Illusion */
.pricing-card { text-align: center; display: flex; flex-direction: column; border-left: none; border-top: 3px solid var(--primary); }
.pricing-card h3 { font-size: 26px; justify-content: center; color: #fff; text-shadow: 0 0 8px var(--accent);}
.pricing-card .price { font-size: 48px; font-weight: 900; color: var(--primary); margin: 25px 0; text-shadow: 0 0 15px rgba(255,184,77,0.6); }
.pricing-card .price span { font-size: 16px; font-weight: normal; color: var(--text-muted); text-shadow: none;}
.pricing-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1;}
.pricing-card ul li { padding: 12px 0; border-bottom: 1px dashed var(--border); color: var(--text-color); }
.pricing-card ul li:last-child { border: none; }
.pricing-card .btn { width: 100%; }
.popular { border-top: 3px solid var(--accent); transform: scale(1.05); box-shadow: 0 0 35px rgba(157, 0, 255, 0.35); z-index: 2; }
.popular:hover { transform: scale(1.05) translateY(-5px) rotateY(5deg); box-shadow: 0 0 50px rgba(255, 184, 77, 0.5); }

/* Review Scroller */
.review-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.review-scroller::-webkit-scrollbar { display: none; }
.review-scroller .card {
    min-width: 320px;
    flex: 1 0 320px;
    scroll-snap-align: center;
    animation: auto-pendulum 15s ease-in-out infinite alternate;
}
.review-scroller:hover .card { animation-play-state: paused; }
@keyframes auto-pendulum {
    0% { transform: translateX(10%); }
    100% { transform: translateX(-15%); }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 800px; margin: 0 auto; }
.faq-item { background: rgba(20,20,25,0.7); padding: 25px; border-left: 4px solid var(--accent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%); transition: all 0.3s; }
.faq-item:hover { background: rgba(30,30,40,0.9); border-color: var(--primary); transform: translateX(5px); box-shadow: 0 0 15px rgba(157,0,255,0.2); }
.faq-item h4 { font-size: 18px; margin-bottom: 10px; color: #fff; font-weight: 700;}
.faq-item p { color: var(--text-muted); }

/* Sub Pages Override (Keeping them consistent) */
.page-content { padding: 60px 40px; min-height: 70vh; background: var(--card-bg); border-radius: 0; margin: 40px 0; border: 1px solid var(--accent); clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); box-shadow: 0 0 30px rgba(157,0,255,0.15);}
.page-content h1 { margin-bottom: 30px; text-align: center; color: #fff; font-size: 36px; border-bottom: 1px dashed var(--accent); padding-bottom: 20px; text-shadow: 0 0 10px var(--primary);}
.page-content h2 { margin: 40px 0 20px; color: var(--primary); font-size: 24px;}
.page-content p, .page-content ul { color: var(--text-muted); font-size: 16px;}
.page-content strong { color: var(--text-color); text-shadow: 0 0 5px var(--accent);}

/* Footer & PBN SEO Links */
footer { background: #020202; color: var(--text-muted); padding: 50px 0 30px; margin-top: 60px; text-align: center; border-top: 2px solid #1a1a1a; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 25px; }
.footer-links a { font-size: 16px; transition: all 0.3s; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;}
.footer-links a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary); }
.seo-links { margin-top: 40px; padding-top: 20px; border-top: 1px dashed #222; font-size: 12px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}
.seo-links a { color: #333; transition: color 0.3s;}
.seo-links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; padding: 15px 0; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero::after { display: none; } /* Hide heavy SVG on mobile */
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 32px; padding: 0 10px; }
    .hero-desc { font-size: 16px; padding: 0 10px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .popular { transform: none; box-shadow: 0 0 15px rgba(157, 0, 255, 0.3); }
    .popular:hover { transform: translateY(-5px); }
    .footer-links { flex-direction: column; gap: 15px; }
    .review-scroller .card { min-width: 80%; flex: 1 0 80%; }
}

/* ====== SEO & Accessibility Fixes (Phase 2) ====== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px;
    z-index: 99999;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}

/* Scroll Margin for fixed header */
[id] {
    scroll-margin-top: 80px;
}

/* Native FAQ Details Styling */
details.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}
details.faq-item summary {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    outline: none;
    list-style: none;
}
details.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
details.faq-item[open] summary {
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
}
details.faq-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}
