/* ============ wuweisixing.net v3 - 军事风 Bento Grid ============ */

:root {
    --primary: #0d7154;
    --primary-light: #1a9b6e;
    --gold: #d4af5f;
    --gold-bright: #ffd97a;
    --bg: #061410;
    --bg-2: #0a1f17;
    --card: rgba(255,255,255,0.04);
    --card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-bright: rgba(255,255,255,0.15);
    --text: #e8f5ee;
    --text-muted: #7a9a8a;
    --text-dim: #4a6a5a;
    --radius: 16px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============ 军事网格背景 ============ */
.tactical-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13,113,84,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,113,84,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.scan-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13,113,84,0.4), transparent);
    animation: scan 8s linear infinite;
}
@keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
}
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.bg-glow-1 {
    width: 500px; height: 500px;
    top: -100px; left: -100px;
    background: var(--accent, var(--primary));
    animation: glow1 20s ease-in-out infinite;
}
.bg-glow-2 {
    width: 400px; height: 400px;
    bottom: -100px; right: -100px;
    background: var(--gold);
    opacity: 0.1;
    animation: glow2 25s ease-in-out infinite;
}
@keyframes glow1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}
@keyframes glow2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

/* ============ 主页全屏 Hero ============ */
.home-body { height: 100vh; display: flex; align-items: center; justify-content: center; }

.hero-screen {
    text-align: center;
    padding: 24px;
    max-width: 600px;
    width: 100%;
    animation: heroFadeIn 0.8s ease;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 徽标 */
.emblem-wrap {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 28px;
}
.emblem-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(13,113,84,0.3);
    animation: emblemPulse 3s ease-out infinite;
}
@keyframes emblemPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}
.emblem-core {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 48px rgba(13,113,84,0.5), 0 8px 24px rgba(0,0,0,0.4);
}

/* 标题 */
.hero-main-title {
    margin-bottom: 16px;
}
.title-line-1 {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-bottom: 4px;
}
.title-line-2 {
    display: block;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff, var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 副标题 */
.hero-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.sub-badge {
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(13,113,84,0.15);
    border: 1px solid rgba(13,113,84,0.3);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 2px;
}
.sub-text {
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* 功能标签 */
.feature-chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.chip {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.chip:hover {
    background: var(--card-hover);
    border-color: var(--primary-light);
    color: var(--text);
}

/* 主按钮 */
.enter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(13,113,84,0.35);
    position: relative;
    overflow: hidden;
}
.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(13,113,84,0.5);
}
.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.enter-btn:hover .btn-shine { left: 100%; }

/* 底部数据 */
.hero-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}
.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-bright);
}
.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
}
.footer-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* ============ 分站页 Bento Grid ============ */
.subsite-page { padding: 16px 20px 60px; max-width: 900px; margin: 0 auto; }

.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.back-nav:hover {
    background: var(--card-hover);
    color: #fff;
    border-color: var(--border-bright);
}

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

.bento-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    background: var(--card-hover);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

/* Hero 卡片 (跨2列) */
.bento-hero {
    grid-column: span 2;
    padding: 28px;
    position: relative;
}
.hero-glow {
    position: absolute;
    top: -60%; right: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent, var(--primary)), transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}
.bento-hero-content {
    display: flex;
    gap: 18px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.logo-wrapper { flex-shrink: 0; }
.subsite-logo {
    width: 72px; height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.subsite-logo-fallback {
    width: 72px; height: 72px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.hero-info { flex: 1; min-width: 0; }
.subsite-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.subsite-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* 跳转按钮卡片 */
.bento-action {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, var(--accent, var(--primary)), color-mix(in srgb, var(--accent, var(--primary)) 80%, black));
    border-color: transparent;
    cursor: pointer;
}
.bento-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--accent, var(--primary)) 35%, transparent);
    filter: brightness(1.1);
}
.action-icon {
    margin-bottom: 10px;
}
.action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.action-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}
.action-url {
    font-size: 10px;
    opacity: 0.7;
}
.action-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.bento-action:hover .action-shine { left: 100%; }

/* 通用卡片图标 */
.bento-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.bento-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}
.bento-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 功能标签卡片 */
.feature-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.feature-tag {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

/* 价格卡片 */
.bento-price { text-align: center; }
.price-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent, var(--primary-light));
    display: block;
    margin-top: 4px;
}

/* 联系卡片 */
.contact-text {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    word-break: break-all;
}

/* 微信卡片 */
.bento-wechat { text-align: center; }
.wechat-qr {
    width: 120px; height: 120px;
    border-radius: 10px;
    margin: 8px auto;
    display: block;
}
.wechat-hint {
    font-size: 11px;
    color: var(--text-dim);
}

/* ============ 底部 ============ */
.footer {
    text-align: center;
    padding: 32px 0 0;
    margin-top: 28px;
    border-top: 1px solid var(--border);
}
.footer p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.footer-custom {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    margin-bottom: 8px !important;
}
.footer-link a {
    color: var(--primary-light);
    text-decoration: none;
    margin: 0 4px;
    transition: color 0.3s ease;
}
.footer-link a:hover { color: var(--gold-bright); }

/* ============ 404 ============ */
.not-found {
    text-align: center;
    padding: 80px 20px;
}
.nf-icon { font-size: 64px; margin-bottom: 20px; }
.not-found h1 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.not-found p { color: var(--text-muted); margin-bottom: 24px; }

/* ============ 微信引导页 ============ */
.guide-body {
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
}
.guide-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.guide-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74,144,217,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,144,217,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}
.guide-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.guide-orb-1 {
    width: 300px; height: 300px;
    top: -50px; right: -50px;
    background: rgba(74,144,217,0.15);
}
.guide-orb-2 {
    width: 250px; height: 250px;
    bottom: -50px; left: -50px;
    background: rgba(74,144,217,0.1);
}

.guide-container {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* 引导图标 */
.guide-hero {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 24px;
}
.guide-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(74,144,217,0.2);
    animation: guidePulse 2.5s ease-out infinite;
}
@keyframes guidePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}
.guide-icon-core {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: rgba(74,144,217,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.guide-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 28px;
}

/* 步骤 */
.guide-steps {
    background: #f5f8fc;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.step-item:not(:last-child) {
    border-bottom: 1px solid #e8eef5;
}
.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #4A90D9;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-content {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    flex-wrap: wrap;
}
.step-key {
    font-weight: 600;
    color: #4A90D9;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(74,144,217,0.1);
}

/* 网址+复制 */
.url-section {
    background: #f5f8fc;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 24px;
}
.url-display {
    font-size: 12px;
    color: #666;
    word-break: break-all;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e8f0;
    font-family: monospace;
}
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: #4A90D9;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}
.copy-btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}
.copy-btn.copied {
    background: #4caf50;
}
.copy-btn.copied:hover {
    background: #4caf50;
    transform: none;
}

/* 底部 */
.guide-footer {
    border-top: 1px solid #eee;
    padding-top: 16px;
}
.guide-footer p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}
.footer-sub { color: #ccc !important; }

/* 箭头 */
.guide-arrow {
    display: none;
    position: fixed;
    top: 16px;
    right: 20px;
    text-align: center;
    z-index: 10;
    animation: arrowBounce 2s ease-in-out infinite;
}
.arrow-text {
    display: block;
    font-size: 14px;
    color: #4A90D9;
    font-weight: 600;
    margin-top: 4px;
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============ 移动端 ============ */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-hero { grid-column: span 2; }
    .bento-action { grid-column: span 2; flex-direction: row; }
    .action-icon { margin-bottom: 0; margin-right: 10px; }
}
@media (max-width: 640px) {
    .title-line-1 { font-size: 18px; }
    .title-line-2 { font-size: 28px; }
    .hero-footer { gap: 16px; }
    .stat-num { font-size: 20px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-hero { grid-column: span 1; }
    .bento-hero-content { flex-direction: column; text-align: center; }
    .subsite-title { font-size: 18px; }
    .bento-action { grid-column: span 1; flex-direction: row; }
    .guide-container { padding: 32px 24px; }
}
