/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Noto Serif SC', '华文楷体', 'KaiTi', 'Microsoft YaHei', serif;
    background: #0b0815;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    position: relative;
}

/* ========== 纯CSS霓虹招牌网格背景 ========== */
.neon-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px 6px;
    padding: 24px 16px;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.neon-sign {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #fff0e0;
    text-shadow: 0 0 6px currentColor, 0 0 14px, 0 0 25px;
    font-family: 'Times New Roman', '宋体', serif;
    padding: 12px 2px;
    border: 2.5px solid;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    text-align: center;
    line-height: 1.8;
    white-space: nowrap;
    transition: all 0.3s;
}

.neon-sign:nth-child(6n+1) { color: #ff6b9d; border-color: #ff6b9d; }
.neon-sign:nth-child(6n+2) { color: #00ffff; border-color: #00ffff; }
.neon-sign:nth-child(6n+3) { color: #ffd700; border-color: #ffd700; }
.neon-sign:nth-child(6n+4) { color: #bf7eff; border-color: #bf7eff; }
.neon-sign:nth-child(6n+5) { color: #ffaa33; border-color: #ffaa33; }
.neon-sign:nth-child(6n) { color: #66ffcc; border-color: #66ffcc; }

@media (max-width: 600px) {
    .neon-bg {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px 4px;
        padding: 16px 10px;
    }
    .neon-sign {
        font-size: 16px;
        letter-spacing: 4px;
        padding: 8px 1px;
    }
}

/* ========== 主卡片 ========== */
.main-card {
    position: relative;
    z-index: 10;
    max-width: 680px;
    width: 100%;
    background: rgba(8, 6, 18, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2.5px solid #ff6b9d;
    border-radius: 48px;
    padding: 32px 24px;
    box-shadow: 0 0 50px rgba(255, 107, 157, 0.4), 0 0 120px rgba(0, 255, 255, 0.2), inset 0 0 30px rgba(255, 215, 0, 0.1);
}

/* ========== 标题区 ========== */
.title-section {
    text-align: center;
    margin-bottom: 28px;
}

.main-title {
    font-size: clamp(32px, 10vw, 48px);
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px #ff6b9d, 0 0 40px #00ffff, 0 0 80px #ff6b9d;
    letter-spacing: 12px;
    margin-bottom: 8px;
}

.sub-glow {
    font-size: 16px;
    color: #00ffff;
    text-shadow: 0 0 12px #00ffff;
    letter-spacing: 6px;
}

/* ========== 查询输入区 ========== */
.query-section {
    margin-bottom: 20px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.code-input {
    width: 100%;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.5);
    border: 2.5px solid #00ffff;
    border-radius: 60px;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 3px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.code-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 30px #ff6b9d;
}

.code-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.query-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b9d 0%, #d44c7a 100%);
    border: none;
    border-radius: 60px;
    font-size: 22px;
    font-weight: bold;
    color: #0a0a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
    letter-spacing: 6px;
    cursor: pointer;
    box-shadow: 0 0 30px #ff6b9d;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.query-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 45px #ffd700;
}

.hint-text {
    text-align: center;
    margin-top: 12px;
    color: #00ffff;
    font-size: 14px;
    text-shadow: 0 0 6px #00ffff;
}

.free-try-link {
    text-align: center;
    margin-top: 14px;
}

.free-try-link a {
    color: #00ffff;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1.5px dashed #00ffff;
    padding-bottom: 3px;
}

/* ========== 证书卡片 ========== */
.result-card {
    margin-top: 20px;
    padding: 36px 28px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 157, 0.06) 0%, transparent 50%),
        linear-gradient(145deg, #0e0820 0%, #160e2a 40%, #1a1235 100%);
    border-left: 8px solid #2a1a4a;
    border-right: 8px solid #2a1a4a;
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    border-radius: 0 0 20px 20px;
    box-shadow: 
        inset 0 0 60px rgba(0, 0, 0, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 215, 0, 0.3),
        0 0 80px rgba(255, 107, 157, 0.2);
    display: none;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: 0;
}

.result-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
}

.result-card.show {
    display: block;
    animation: scrollGlow 3s infinite alternate;
}

@keyframes scrollGlow {
    from { box-shadow: inset 0 0 40px #000, 0 15px 30px #000, 0 0 30px #ff6b9d; }
    to { box-shadow: inset 0 0 60px #1a1040, 0 20px 40px #000, 0 0 50px #ffd700; }
}

.cert-inner {
    position: relative;
    z-index: 2;
}

.cert-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.cert-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2a1a4a, #1a0e30);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 6px 24px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px #ffd70066, inset 0 0 10px #ffd70033;
}

.cert-badge span {
    font-size: 22px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px #ff6b9d;
    letter-spacing: 8px;
}

.cert-title {
    font-size: 42px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 25px #ff6b9d, 0 0 50px #ff9fbf;
    letter-spacing: 16px;
    margin: 16px 0 8px;
}

.cert-sub {
    color: #cfbfff;
    font-size: 16px;
    letter-spacing: 6px;
    border-top: 1px solid #ffd70066;
    border-bottom: 1px solid #ffd70066;
    display: inline-block;
    padding: 6px 24px;
}

.cert-body {
    text-align: center;
    margin: 24px 0;
}

.cert-greeting {
    font-size: 18px;
    color: #00ffff;
    margin-bottom: 16px;
    text-shadow: 0 0 8px #00ffff;
    letter-spacing: 4px;
}

.cert-name {
    font-size: 56px;
    font-weight: 900;
    color: #fff8e7;
    text-shadow: 0 0 30px #ff6b9d, 0 0 60px #ffd700, 0 0 100px #ff6b9d;
    text-align: center;
    word-break: break-word;
    margin: 20px 0;
    line-height: 1.3;
    letter-spacing: 4px;
}

.cert-blessing {
    font-size: 22px;
    line-height: 2;
    color: #f0e6ff;
    text-align: center;
    margin: 24px 0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.cert-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
    color: #ffd700;
    font-size: 20px;
}

.cert-divider-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.cert-info-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid #ffd70066;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 24px 0;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: inset 0 0 20px #00000066, 0 0 20px #ffd70033;
}

.cert-code {
    font-size: 20px;
    color: #ffd700;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.cert-lucky {
    font-size: 18px;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
}

.cert-seal {
    display: flex;
    justify-content: center;
    margin: 28px 0 16px;
}

.cert-seal-inner {
    border: 4px double #ff6b9d;
    border-radius: 12px;
    padding: 14px 32px;
    background: rgba(255, 107, 157, 0.08);
    box-shadow: 0 0 30px #ff6b9d66, inset 0 0 15px #ff6b9d33;
    transform: rotate(-2deg);
}

.cert-seal-text {
    font-size: 28px;
    font-weight: 900;
    color: #ff6b9d;
    text-shadow: 0 0 20px #ff6b9d;
    letter-spacing: 10px;
    font-family: '华文楷体', 'KaiTi', serif;
}

.cert-footer {
    text-align: center;
    margin-top: 24px;
    color: #aaa;
    font-size: 14px;
    border-top: 1px dashed #ffd70033;
    padding-top: 20px;
}

.cert-footer-note {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* ========== 双人签专用 ========== */
.double-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.double-name-item {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px #ff6b9d;
}

.double-code {
    font-size: 15px;
    color: #00ffff;
    margin-top: 6px;
}

.relation-selector {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.relation-btn {
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #00ffff;
    border-radius: 40px;
    color: #00ffff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.relation-btn.active {
    background: #00ffff;
    color: #0a0a1a;
    box-shadow: 0 0 25px #00ffff;
}

/* ========== 锦鲤三印记 ========== */
.seal-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.seal-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.seal-item:active {
    transform: scale(0.92);
}

.seal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px #ffd700, inset 0 0 15px rgba(255, 215, 0, 0.2);
    margin-bottom: 8px;
}

.seal-check {
    font-size: 36px;
    color: #ffd700;
    line-height: 1;
    text-shadow: 0 0 15px #ffd700;
}

.seal-label {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 4px;
}

.seal-status {
    font-size: 13px;
    color: #00ff88;
    text-shadow: 0 0 8px #00ff88;
}

/* ========== 免费版水印 ========== */
.watermark {
    position: relative;
}

.watermark::after {
    content: '免费体验版·解锁完整彩蛋请去小红书搜"必过啦"';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-size: 22px;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 16px;
    z-index: 5;
}

/* ========== 错误信息 ========== */
.error-message {
    color: #ff6b9d;
    text-align: center;
    padding: 20px;
    font-size: 17px;
}

/* ========== 分享按钮栏（证书外部） ========== */
.share-bar-top {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.share-bar-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1.5px solid #00ffff;
    border-radius: 40px;
    color: #00ffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.share-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px #00ffff;
}

/* ========== 转化引导模块（证书外部） ========== */
.conversion-guide {
    margin-top: 24px;
    padding: 20px 16px;
    background: linear-gradient(145deg, rgba(255, 107, 157, 0.12), rgba(0, 255, 255, 0.06));
    border: 2px solid #ff6b9d;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.25);
}

.guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.guide-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.guide-text {
    font-size: 17px;
    line-height: 1.8;
    color: #f0e6ff;
    font-weight: 500;
}

.guide-highlight {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px #ff6b9d;
    font-size: 18px;
}

/* ========== 底部引导 ========== */
.footer-guide {
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1.5px solid rgba(255, 215, 0, 0.3);
}

.guide-btn {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 107, 157, 0.2);
    border: 2px solid #ff6b9d;
    border-radius: 50px;
    color: #ffd700;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s;
}

.guide-btn:hover {
    background: rgba(255, 107, 157, 0.4);
    box-shadow: 0 0 25px #ff6b9d;
}

.disclaimer {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    text-align: center;
    line-height: 1.6;
}

/* ========== 预留广告位 ========== */
.book-ad-section {
    display: none;
    margin-top: 28px;
    padding: 18px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* 优化信息框为flex布局 */
.cert-info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.cert-info-box > div:first-child {
    flex: 1;
    padding-right: 12px;
}

.cert-info-box img {
    display: block;
    margin: 0 auto;
    border: 1px solid #ffd70033;
    border-radius: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
}

/* 手机端小屏适配 */
@media (max-width: 480px) {
    .cert-info-box {
        flex-direction: column;
        text-align: center;
    }
    .cert-info-box > div:first-child {
        padding-right: 0;
        margin-bottom: 12px;
    }
}
/* ========== 淘宝入口 ========== */
.taobao-guide {
    margin-top: 20px;
    text-align: center;
}

.guide-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto 16px;
    background: linear-gradient(90deg, transparent, #ffd70066, transparent);
}

.taobao-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    color: #cfbfff;
}

.taobao-link a {
    color: #ffd700;
    text-decoration: none;
    border-bottom: 1.5px dashed #ffd700;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.taobao-link a:hover {
    color: #00ffff;
    border-bottom-color: #00ffff;
}