/* ====================================================
   CYBER-VINES HACKER THEME - STYLE.CSS 
   ==================================================== */

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

body.cyber-theme, body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace; /* Tech/Hacker font */
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ================= 视觉层特效 ================= */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.6; /* 防止遮挡文字 */
    pointer-events: none;
}

.vertical-marquee-container {
    position: fixed;
    top: 0;
    right: 5px;
    height: 100vh;
    width: 25px;
    overflow: hidden;
    z-index: 0;
    color: #FF0000;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    pointer-events: none;
    text-shadow: 0 0 5px #FF0000;
    letter-spacing: 2px;
}
.vertical-marquee-text {
    animation: marquee-vert 15s linear infinite;
    white-space: nowrap;
}
@keyframes marquee-vert {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.edge-vines {
    position: fixed;
    top: 0;
    width: 15px;
    height: 100vh;
    z-index: -1;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.2),
        rgba(255, 0, 0, 0.2) 10px,
        rgba(255, 0, 127, 0.1) 10px,
        rgba(255, 0, 127, 0.1) 20px
    );
    box-shadow: 0 0 15px #FF0000;
    opacity: 0.3;
}
.left-vine { left: 0; border-right: 1px solid #FF0000; }
.right-vine { right: 0; border-left: 1px solid #FF0000; }


/* ================= 导航栏 ================= */
.navbar {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 2px solid #FF0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.nav-container {
    padding: 15px 0;
    display: flex;
    align-items: center;
    position: relative;
}
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FF0000;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 0 10px #FF0000;
    z-index: 10;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    width: 100%;
    left: 0;
    justify-content: center;
    pointer-events: none;
}
.nav-links li {
    pointer-events: auto;
}
.nav-links li:last-child {
    position: absolute;
    right: 0;
}
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
    color: #ff007f;
    text-shadow: 0 0 8px #ff007f;
}


/* ================= 黑客按钮风格 ================= */
.cyber-btn {
    background: transparent;
    color: #FF0000 !important;
    padding: 12px 28px;
    border: 1px solid #FF0000;
    border-radius: 0; 
    box-shadow: inset 0 0 10px rgba(255,0,0,0.2), 0 0 10px rgba(255,0,0,0.2);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.cyber-btn:hover {
    background: #FF0000;
    color: #000 !important;
    box-shadow: 0 0 20px #FF0000, 0 0 40px #FF0000;
}
.nav-btn.cyber-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}
.cyber-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
    text-transform: uppercase;
    border-radius: 0;
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
}
.cyber-btn-outline:hover {
    border-color: #ff007f;
    color: #ff007f;
    box-shadow: inset 0 0 10px rgba(255,0,127,0.3);
}


/* ================= 布局通用 ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}
.navbar .container {
    padding: 15px 0;
}
.bg-dark {
    background-color: rgba(10, 10, 10, 0.7);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* 故障乱码文字特效 */
.glitch-text {
    position: relative;
    display: inline-block;
}
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #FF0000;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #ff007f;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(20px, 9999px, 86px, 0); transform: skew(0.5deg); }
    20% { clip: rect(67px, 9999px, 14px, 0); transform: skew(-0.5deg); }
    40% { clip: rect(34px, 9999px, 53px, 0); transform: skew(0deg); }
    60% { clip: rect(10px, 9999px, 93px, 0); transform: skew(0.5deg); }
    80% { clip: rect(89px, 9999px, 12px, 0); transform: skew(-0.5deg); }
    100% { clip: rect(45px, 9999px, 67px, 0); transform: skew(0deg); }
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 50px;
    color: #FF0000;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255,0,0,0.5);
}


/* ================= 首屏视觉 (Hero) ================= */
.hero {
    padding: 100px 0;
    border-bottom: 1px dashed #FF0000;
    background: radial-gradient(circle at center, rgba(255,0,0,0.08) 0%, transparent 60%);
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-text-content {
    flex: 1;
}
.hero .headline {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.hero .sub-headline {
    font-size: 1.5rem;
    color: #FF0000;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #FF0000;
}
.hero .hero-desc {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 40px;
}
.hero-visual {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

/* SVG 动画 */
.server-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255,0,0,0.3));
}
.blink { animation: blink-anim 1s infinite; }
.pulse { animation: pulse-anim 2s infinite alternate; }
.data-line { animation: dash-anim 0.5s infinite linear; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes blink-anim { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes pulse-anim { 0% { stroke-width: 2.5; opacity: 0.6; } 100% { stroke-width: 5; opacity: 1; } }
@keyframes dash-anim { to { stroke-dashoffset: -6; } }


/* ================= 网格 & 赛博卡片 ================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 3D 旋转木马透视 */
.carousel-container {
    perspective: 1500px; 
}
.carousel-grid {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; 
}

.cyber-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.cyber-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: #FF0000;
    box-shadow: 0 0 10px #FF0000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.cyber-card:hover::before {
    transform: scaleX(1);
}
.cyber-card:hover {
    border-color: #FF0000;
    box-shadow: 0 0 20px rgba(255,0,0,0.2);
    transform: translateY(-5px);
}
.cyber-card h3 {
    margin: 15px 0;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
}
.glow-text {
    color: #FF0000;
    text-shadow: 0 0 10px #FF0000;
}

/* 残破的故障边缘 (Glitch Card) */
.glitch-card {
    clip-path: polygon(
        0 0, 
        calc(100% - 20px) 0, 
        100% 20px, 
        100% 100%, 
        20px 100%, 
        0 calc(100% - 20px)
    );
}

/* ================= 价格表 ================= */
.pricing-card {
    text-align: center;
}
.pricing-card.popular {
    border: 1px solid #FF0000;
    background: rgba(20, 0, 0, 0.8);
    box-shadow: inset 0 0 20px rgba(255,0,0,0.1), 0 0 20px rgba(255,0,0,0.2);
}
.pricing-card.popular:hover {
    box-shadow: inset 0 0 30px rgba(255,0,0,0.3), 0 0 40px rgba(255,0,0,0.4);
}
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FF0000;
    color: #000;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255,0,0,0.6);
}
.price {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0;
}
.price span {
    font-size: 1rem;
    color: #888;
}
.plan-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}
.plan-features li {
    padding: 10px 0;
    border-bottom: 1px dashed #333;
    color: #ccc;
}
.plan-features li::before {
    content: "> ";
    color: #FF0000;
    font-weight: bold;
}


/* ================= FAQ & 评价 ================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.cyber-faq {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.8);
    border-left: 3px solid #FF0000;
    transition: background 0.3s;
}
.cyber-faq:hover {
    background: rgba(255, 0, 0, 0.1);
}
.cyber-faq h4 {
    font-size: 1.1rem;
    color: #FF0000;
    margin-bottom: 10px;
}
.cyber-faq p {
    color: #aaa;
}

.review-text {
    font-style: italic;
    color: #ff007f;
    margin-bottom: 15px;
}
.reviewer {
    font-weight: bold;
    color: #fff;
    text-align: right;
}

/* ================= 页脚 ================= */
.cyber-footer {
    background: #050505;
    border-top: 1px solid #FF0000;
    padding: 30px 0;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links a {
    color: #777;
    text-decoration: none;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #FF0000;
    text-shadow: 0 0 5px #FF0000;
}


/* ================= 内部配套页面 (支持暗黑主题) ================= */
.page-header {
    background: #111;
    padding: 60px 0;
    border-bottom: 1px dashed #FF0000;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    color: #FF0000;
    text-shadow: 0 0 10px rgba(255,0,0,0.5);
}
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: transparent;
    color: #ccc;
}
.page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #fff;
    border-left: 4px solid #ff007f;
    padding-left: 10px;
}
.page-content p, .page-content ul {
    margin-bottom: 20px;
    line-height: 1.8;
}
.page-content li {
    margin-bottom: 12px;
    margin-left: 20px;
    list-style-type: square;
    color: #ff007f;
}
.page-content a {
    color: #FF0000;
    text-decoration: none;
}
.page-content a:hover {
    text-shadow: 0 0 8px #FF0000;
}


/* ================= 移动端适配 ================= */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; position: static; }
    .nav-links { position: static; width: auto; flex-wrap: wrap; justify-content: center; gap: 10px; pointer-events: auto; }
    .nav-links li:last-child { position: static; margin-top: 10px; }
    
    .hero-container { flex-direction: column; text-align: center; }
    .hero .headline { font-size: 2.2rem; }
    .hero-visual { display: none; /* 为保证单栏体验，移动端隐藏SVG */ }
    
    .footer-content { flex-direction: column; gap: 15px; }
    .footer-links a { display: inline-block; margin: 5px 10px; }
    
    .vertical-marquee-container { display: none; }
    .edge-vines { display: none; }
    
    .carousel-grid { transform: none !important; /* 禁用移动端悬浮透视 */ }
    .cta-btn { width: 100%; padding: 16px 20px; }
}

/* ================= 杈呭姪鏃犻殰纰嶄笌 SEO 澧炲己 ================= */
/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FF0000;
    color: #fff;
    padding: 8px;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus {
    top: 0;
}

/* 閿洏鐒︾偣鏍峰紡 */
a:focus-visible, button:focus-visible, .cyber-btn:focus-visible, details:focus-visible {
    outline: 2px dashed #FF0000 !important;
    outline-offset: 4px;
}

/* 閿氱偣婊氬姩鐣欑櫧 (闃叉 fixed/sticky 瀵艰埅鏍忛伄鎸? */
h2, h3, [id] {
    scroll-margin-top: 90px;
}

/* FAQ Details/Summary 鍘熺敓鏍峰紡閲嶆瀯 */
.cyber-faq {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: border-color 0.3s;
}
.cyber-faq:hover {
    border-color: #FF0000;
}
.cyber-faq summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #FF0000;
    font-size: 1.1rem;
    list-style: none; /* 闅愯棌鍘熺敓绠ご */
    position: relative;
    outline: none;
}
.cyber-faq summary::-webkit-details-marker {
    display: none;
}
.cyber-faq summary::before {
    content: '+';
    position: absolute;
    right: 20px;
    color: #FF0000;
}
.cyber-faq[open] summary::before {
    content: '-';
}
.cyber-faq p {
    padding: 0 20px 20px 20px;
    color: #aaa;
    margin: 0;
    line-height: 1.6;
}

/* 绉诲姩绔偣鍑诲尯鍩?(Touch Target >= 44px) */
@media (max-width: 768px) {
    .nav-links a, .mini-card, .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
