


:root {
    --color-primary: #C62828;
    --color-primary-light: #E53935;
    --color-primary-dark: #8E0000;
    --color-accent: #D4A843;
    --color-accent-light: #F5E6B8;
    --color-success: #C62828;
    --color-info: #E53935;
    --color-warning: #B71C1C;
    --color-danger: #8E0000;
    --color-gold: #D4A843;
    --color-gold-light: #F5E6B8;
    --color-gray-light: #FFF5F5;
    --color-gray: #FFCDD2;
    --color-text: #8B0000;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-light: 0 4px 12px rgba(198, 40, 40, 0.08);
    --shadow-medium: 0 6px 20px rgba(198, 40, 40, 0.12);
    --shadow-heavy: 0 10px 30px rgba(198, 40, 40, 0.18);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}


* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; overflow: hidden; background: #8E0000; }
body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: none; font-family: var(--font-family); font-size: 14px; color: var(--color-text); background: linear-gradient(180deg, #C62828 0%, #B71C1C 50%, #D32F2F 100%); background-attachment: fixed; }
button { border: none; outline: none; cursor: pointer; font-family: inherit; }
svg { display: block; }


.page-law {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    gap: 20px;
    
    background:
        linear-gradient(135deg, transparent 49.5%, rgba(212,168,67,0.025) 49.5%, rgba(212,168,67,0.025) 50.5%, transparent 50.5%) 0 0 / 28px 28px,
        linear-gradient(-135deg, transparent 49.5%, rgba(212,168,67,0.025) 49.5%, rgba(212,168,67,0.025) 50.5%, transparent 50.5%) 14px 0 / 28px 28px,
        transparent;
}


.page-law::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: linear-gradient(135deg, #8E0000 0%, #B71C1C 50%, transparent 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    z-index: 0;
    box-shadow: var(--shadow-medium);
}


.page-law::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(0deg, rgba(142,0,0,0.4) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}


.law-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: auto;
    z-index: 1;
}


.law-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold) 20%, var(--color-gold-light) 50%, var(--color-gold) 80%, transparent 100%);
    z-index: 3;
}

.law-header-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 56px 32px 48px;
    background: rgba(142, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 82%;
    margin: 0 auto;
    border: 1px solid rgba(212, 168, 67, 0.5);
}

.law-logo-container {
    display: flex;
    justify-content: center;
    padding: 0;
}

.law-logo-img {
    max-width: 280px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

.law-emblem {
    width: min(94px, calc(94 * 100vw / 430));
    height: min(94px, calc(94 * 100vw / 430));
    margin: 0 auto min(32px, calc(32 * 100vw / 430));
    position: relative;
}


.law-emblem::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(212,168,67,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: haloPulse 4s ease-in-out infinite;
}

.law-emblem svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(212,168,67,0.3));
}

@keyframes haloPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

@keyframes emblemPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    75% { transform: scale(1.05) rotate(-1deg); }
}

.law-emblem.animate {
    animation: emblemPulse 4s ease-in-out infinite;
}


.stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-item.stagger-visible {
    opacity: 1;
    transform: translateY(0);
}


.law-title {
    font-size: clamp(18px, 5vw, 44px);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: min(12px, calc(12 * 100vw / 430));
    letter-spacing: 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: min(12px, calc(12 * 100vw / 430));
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    max-width: 100%;
}

.law-notice {
    font-size: 14px;
    color: rgba(245,230,184,0.8);
    line-height: 1.6;
    text-align: center;
    margin: 8px 0 0;
    padding: 0 8px;
}

.law-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212,168,67,0.4);
}

.law-subtitle {
    font-size: min(16px, calc(16 * 100vw / 430));
    color: var(--color-gold-light);
    letter-spacing: 4px;
    margin-bottom: min(20px, calc(20 * 100vw / 430));
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.law-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    border-radius: 2px;
    margin: 0 auto 16px;
    box-shadow: 0 0 6px rgba(212,168,67,0.3);
}

.law-desc {
    font-size: min(13px, calc(13 * 100vw / 430));
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: min(300px, calc(300 * 100vw / 430));
    margin: 0 auto;
    padding: min(12px, calc(12 * 100vw / 430)) min(16px, calc(16 * 100vw / 430));
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-gold);
    backdrop-filter: blur(4px);
}


.law-buttons {
    flex-shrink: 0;
    padding: 0 25px 4px;
    position: relative;
    z-index: 2;
}

.law-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}




.law-btn-grid > .law-btn:first-child {
    margin-top: 4px;
    border-color: rgba(212, 168, 67, 0.6);
    box-shadow: 0 6px 24px rgba(212,168,67,0.2), 0 4px 16px rgba(0,0,0,0.15);
    position: relative;
}

.law-btn-grid > .law-btn .law-btn-title {
    font-size: 15px;
}

.law-btn-grid > .law-btn .law-btn-inner {
    padding: 15px 16px 14px 16px;
}


.law-btn {
    width: calc(100% - 20px);
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,245,238,0.92) 0%, rgba(255,235,225,0.88) 100%);
    border-radius: var(--radius-lg);
    overflow: visible;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 1px solid rgba(212,168,67,0.35);
    backdrop-filter: blur(4px);
}


.law-btn::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.1), transparent);
    pointer-events: none;
    z-index: 3;
}

.law-btn:last-child::after {
    display: none;
}

.law-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(212,168,67,0.15), 0 4px 16px rgba(0,0,0,0.08);
    border-color: rgba(212,168,67,0.5);
    background: linear-gradient(135deg, rgba(255,245,238,0.98) 0%, rgba(255,240,230,0.95) 100%);
}

.law-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: var(--shadow-medium);
    transition: all 0.1s ease;
}


.law-btn.card-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: cardSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--slide-delay, 0s);
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.law-btn-bar {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(to bottom, var(--btn-color, #C62828) 0%, rgba(198, 40, 40, 0.4) 100%);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

.law-btn:hover .law-btn-bar {
    width: 4px;
    top: 6px;
    bottom: 6px;
}


.law-btn::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at left center, rgba(var(--btn-rgb, 198, 40, 40), 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.law-btn:hover::before {
    opacity: 1;
}


.law-btn-inner {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    gap: 13px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
}


.law-btn-number {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    position: relative;
}

.law-btn-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--btn-color, #C62828), rgba(var(--btn-rgb, 198, 40, 40), 0.8));
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(var(--btn-rgb, 66, 165, 245), 0.3);
    transition: all 0.3s ease;
}

.law-btn-number svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.law-btn:hover .law-btn-number::before {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--btn-rgb, 198, 40, 40), 0.4);
}


.law-btn-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.law-btn-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #8E0000;
    margin-bottom: 3px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.law-btn:hover .law-btn-title {
    color: #C62828;
}

.law-btn-desc {
    display: block;
    font-size: 11px;
    color: #B28080;
    line-height: 1.4;
}


.law-btn-arrow {
    width: 22px;
    height: 22px;
    color: #C62828;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198,40,40,0.08);
    border-radius: 50%;
    border: 1px solid rgba(198,40,40,0.12);
}

.law-btn-arrow svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.law-btn:hover .law-btn-arrow {
    transform: translateX(4px);
    color: var(--btn-color, var(--color-primary));
    background: rgba(var(--btn-rgb, 198, 40, 40), 0.1);
    border-color: rgba(var(--btn-rgb, 198, 40, 40), 0.2);
}

.law-btn:active .law-btn-arrow {
    transform: translateX(2px) scale(0.95);
}


.law-btn[data-type="law_opinion"]  { 
    --btn-color: #C62828; 
    --btn-rgb: 198, 40, 40;
}
.law-btn[data-type="social_opinion"] { 
    --btn-color: #E53935; 
    --btn-rgb: 229, 57, 53;
}
.law-btn[data-action="propaganda"] { 
    --btn-color: #D4A843; 
    --btn-rgb: 212, 168, 67;
}
.law-btn[data-action="live"]        { 
    --btn-color: #8E0000; 
    --btn-rgb: 142, 0, 0;
}


.law-btn[data-type="law_opinion"] .law-btn-number::before {
    background: linear-gradient(135deg, #C62828, #E53935);
}
.law-btn[data-type="social_opinion"] .law-btn-number::before {
    background: linear-gradient(135deg, #E53935, #FF6B6B);
}
.law-btn[data-action="propaganda"] .law-btn-number::before {
    background: linear-gradient(135deg, #D4A843, #F5E6B8);
}
.law-btn[data-action="live"] .law-btn-number::before {
    background: linear-gradient(135deg, #8E0000, #B71C1C);
}


.law-footer {
    margin-top: auto;
    padding: 0px 16px 14px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.law-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,230,184,0.15), transparent);
}

.law-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.law-footer-icon {
    width: 20px;
    height: 20px;
    color: rgba(245,230,184,0.25);
    margin-bottom: 4px;
}

.law-footer p {
    font-size: 12px;
    color: rgba(245,230,184,0.5);
}

.law-footer-sub {
    font-size: 11px;
    color: rgba(245,230,184,0.35);
}


.law-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(4px);
}

.law-toast.toast-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


.law-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}


@media (max-width: 430px) {
    .law-header-inner { padding: 28px 20px 24px; }
    .law-logo-container { padding: 0; }
    .law-logo-img { max-width: 220px; }
    .law-emblem { width: 72px; height: 72px; margin-bottom: 16px; }
    .law-title { font-size: 32px; margin-bottom: 6px; padding-bottom: 6px; }
    .survey-desc { font-size: 13px; margin-top: 6px; padding: 0 4px; }
    .survey-law-btn { font-size: 11px; padding: 8px 12px; }
    .law-subtitle { font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
    .law-desc { font-size: 11px; padding: 8px 12px; }
    .law-buttons { padding: 20px 16px 2px; }
    .law-btn-grid { gap: 30px; }
    .law-btn-inner { padding: 15px 12px; gap: 13px; }
    .law-btn-number { width: 22px; height: 22px; }
    .law-btn-title { font-size: 12px; margin-bottom: 2px; }
    .law-btn-desc { font-size: 11px; }
    .law-btn-arrow { width: 20px; height: 20px; }
    .law-btn-arrow svg { width: 12px; height: 12px; }
    .law-btn-bar { top: 6px; bottom: 6px; width: 3px; }
    .law-btn { width: calc(100% - 12px); }
    .law-btn-grid > .law-btn:first-child { margin-top: 0; }
    .law-footer { padding: 12px 16px 16px; }
}

@media (max-width: 380px) {
    .law-header { padding-top: 8px; }
    .law-header-inner { padding: 28px 16px 24px; }
    .law-logo-container { padding: 0; }
    .law-logo-img { max-width: 180px; }
    .law-emblem { width: 64px; height: 64px; margin-bottom: 12px; }
    .law-title { font-size: 24px; margin-bottom: 4px; padding-bottom: 4px; }
    .law-subtitle { font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
    .law-divider { width: 36px; margin-bottom: 6px; }
    .law-desc { font-size: 10px; padding: 4px 8px; max-width: 180px; }
    .law-buttons { padding: 0 12px 2px; }
    .law-btn-inner { padding: 15px 12px; gap: 10px; }
    .law-btn-number { width: 20px; height: 20px; }
    .law-btn-title { font-size: 11px; margin-bottom: 1px; }
    .law-btn-desc { font-size: 10px; }
    .law-btn-arrow { width: 16px; height: 16px; }
    .law-btn-arrow svg { width: 10px; height: 10px; }
    .law-btn-bar { top: 4px; bottom: 4px; width: 2px; }
    .law-footer { padding: 4px 12px 6px; }
}

@media (max-width: 320px) {
    .law-title { font-size: 18px; }
}

@media (max-width: 280px) {
    .law-title { font-size: 15px; }
}


.law-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-color, #C62828);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.law-btn-icon svg {
    width: 16px;
    height: 16px;
}

.law-btn:hover .law-btn-icon {
    opacity: 1;
    transform: scale(1.15);
}


.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}


.particle-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8), rgba(255, 200, 50, 0.3) 40%, transparent 70%);
    animation: particleFloat linear infinite;
    opacity: 0;
    box-shadow: 0 0 6px 2px rgba(255, 215, 0, 0.4);
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 0.7; }
    100% { transform: translateY(-5vh) scale(1.5); opacity: 0; }
}


.cross-flash {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    animation: crossFlash ease-in-out infinite;
    animation-fill-mode: both;
}

.cross-flash::before,
.cross-flash::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    border-radius: 2px;
}

.cross-flash::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    box-shadow: 0 0 6px 1px rgba(255, 215, 0, 0.5);
}

.cross-flash::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    box-shadow: 0 0 6px 1px rgba(255, 215, 0, 0.5);
}

@keyframes crossFlash {
    0%, 85%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    10% {
        transform: scale(1.5) rotate(15deg);
        opacity: 1;
    }
    25% {
        transform: scale(0.6) rotate(30deg);
        opacity: 0.4;
    }
    40% {
        transform: scale(1.2) rotate(45deg);
        opacity: 0.8;
    }
    55% {
        transform: scale(0) rotate(60deg);
        opacity: 0;
    }
}


.flash-burst {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle,
        rgba(255, 215, 0, 0.6) 0%,
        rgba(255, 215, 0, 0.25) 20%,
        rgba(212, 168, 67, 0.1) 50%,
        transparent 80%
    );
    animation: burstFlash ease-in-out infinite;
    animation-fill-mode: both;
    filter: blur(2px);
}

@keyframes burstFlash {
    0%, 92%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    8% {
        transform: scale(0.5);
        opacity: 1;
    }
    20% {
        transform: scale(2.5);
        opacity: 0.8;
    }
    40% {
        transform: scale(1);
        opacity: 0.2;
    }
    60% {
        transform: scale(3);
        opacity: 0.05;
    }
}


.meteor {
    position: absolute;
    pointer-events: none;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, #FFF8DC, #FFD700);
    box-shadow:
        0 0 4px 2px rgba(255, 215, 0, 0.5),
        0 0 12px 4px rgba(255, 215, 0, 0.2);
    animation: meteorFall linear infinite;
    animation-fill-mode: both;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    width: 60px;
    height: 1.5px;
    background: linear-gradient(to left, rgba(255, 215, 0, 0.7), transparent);
    transform: translateY(-50%);
    border-radius: 1px;
}

@keyframes meteorFall {
    0% {
        transform: translate(0, 0) rotate(-35deg);
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    97% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-300px, 210px) rotate(-35deg);
        opacity: 0;
    }
}


.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.35) 0%, rgba(212, 168, 67, 0) 65%);
    transform: scale(0);
    animation: rippleAnim 0.65s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes rippleAnim {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}


.bg-shimmer {
    position: fixed;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(212, 168, 67, 0.04) 40%,
        rgba(245, 230, 184, 0.08) 45%,
        rgba(212, 168, 67, 0.04) 50%,
        transparent 60%
    );
    animation: shimmerMove 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes shimmerMove {
    0% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(3deg); }
    100% { transform: translate(-10%, -10%) rotate(0deg); }
}


.bg-ornament {
    position: fixed;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 168, 67, 0.12);
    pointer-events: none;
    z-index: -1;
    animation: ornamentFloat ease-in-out infinite;
}

.bg-ornament-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: -30px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bg-ornament-2 {
    width: 80px;
    height: 80px;
    top: 55%;
    right: -20px;
    animation-duration: 9s;
    animation-delay: 2s;
    border-color: rgba(212, 168, 67, 0.08);
}

.bg-ornament-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 10%;
    animation-duration: 7s;
    animation-delay: 4s;
    border-color: rgba(212, 168, 67, 0.06);
}

.bg-ornament-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: -10px;
    animation-duration: 10s;
    animation-delay: 1s;
    border-color: rgba(212, 168, 67, 0.1);
}


.page-back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(212,168,67,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(245,230,184,0.8);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.page-back:hover { background: rgba(255,255,255,0.25); color: #F5E6B8; }
.page-back svg { width: 20px; height: 20px; }

.survey-desc {
    font-size: 16px;
    color: rgba(245,230,184,0.85);
    line-height: 1.7;
    text-align: left;
    margin-top: 8px;
    padding: 0;
    width: 100%;
}

.survey-law-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(212,168,67,0.4);
    border-radius: 8px;
    color: rgba(245,230,184,0.9);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.survey-law-btn:hover {
    background: rgba(212,168,67,0.2);
    border-color: rgba(212,168,67,0.6);
    transform: translateY(-2px);
}

.survey-law-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}








.page-form {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
    gap: 12px;
    z-index: 1;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-group label {
    font-size: 13px;
    color: rgba(245,230,184,0.9);
    font-weight: 500;
}
.form-group label .required { color: #FF6B6B; margin-left: 2px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(212,168,67,0.25);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-gold), #C9A030);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,168,67,0.3); }
.form-submit:active { transform: translateY(0) scale(0.98); }


.page-propaganda {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 24px 40px;
    z-index: 1;
}
.propaganda-btn {
    width: 100%;
    max-width: 320px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255,245,238,0.95) 0%, rgba(255,235,225,0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212,168,67,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
}
.propaganda-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212,168,67,0.2);
    border-color: var(--color-gold);
}
.propaganda-btn-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C62828, #E53935);
    border-radius: 12px;
    color: #fff;
}
.propaganda-btn-icon svg {
    width: 24px;
    height: 24px;
}
.propaganda-btn-text { flex: 1; }
.propaganda-btn-title {
    font-size: 18px;
    font-weight: 700;
    color: #8E0000;
    margin-bottom: 4px;
}
.propaganda-btn-desc {
    font-size: 13px;
    color: #B28080;
}


.page-live {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px 40px;
    z-index: 1;
}
.qr-container {
    width: 220px;
    height: 220px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-container:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.qr-container img { width: 100%; height: 100%; display: block; }
.qr-tip {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(245,230,184,0.7);
    text-align: center;
}


.page-redpacket {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}
.page-redpacket > * {
    pointer-events: auto;
}

.rp-envelope-box {
    width: 290px;
    position: relative;
    cursor: pointer;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.35));
}
.rp-envelope-box:hover { filter: drop-shadow(0 16px 48px rgba(0,0,0,0.4)); }

.rp-envelope-box::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #F5E6B8, #D4A843, #F5E6B8, #D4A843);
    z-index: 0;
}

.rp-envelope-top {
    height: 50px;
    background: linear-gradient(180deg, #D32F2F, #B71C1C);
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 2;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.rp-top-gold {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFD700, #F5E6B8, #FFD700, transparent);
    border-radius: 20px 20px 0 0;
    z-index: 3;
}

.rp-envelope-body {
    background: linear-gradient(180deg, #C62828 0%, #D32F2F 30%, #E53935 60%, #C62828 100%);
    padding: 40px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    position: relative;
    z-index: 2;
    border-left: 2px solid rgba(255,255,255,0.06);
    border-right: 2px solid rgba(255,255,255,0.06);
}

.rp-envelope-body::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 30px,
        rgba(0,0,0,0.04) 30px,
        rgba(0,0,0,0.04) 31px
    );
    pointer-events: none;
}

.rp-envelope-flap {
    height: 60px;
    background: linear-gradient(180deg, #8E0000, #A00000);
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 2;
}

.rp-envelope-flap::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 145px solid transparent;
    border-right: 145px solid transparent;
    border-top: 30px solid #8E0000;
    z-index: 3;
    filter: drop-shadow(0 -2px 4px rgba(0,0,0,0.15));
}

.rp-seal {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, transparent, #FFD700, #F5E6B8, #FFD700, transparent);
    border-radius: 3px;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(212,168,67,0.3);
}

.rp-stamp {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFD700, #B8860B);
    border: 2px solid #F5E6B8;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(212,168,67,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #8E0000;
    font-weight: 900;
}
.rp-envelope-text {
    color: rgba(245,230,184,0.85);
    font-size: 15px;
    margin-bottom: 22px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 1px;
}

.rp-draw-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #FFD700, #D4A843 60%, #B8860B);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow:
        0 4px 24px rgba(212,168,67,0.5),
        inset 0 -3px 8px rgba(0,0,0,0.15),
        inset 0 3px 8px rgba(255,255,255,0.3);
    transition: transform 0.2s;
    position: relative;
    z-index: 3;
    border: 2px solid rgba(245,230,184,0.6);
    animation: rpPulse 2s ease-in-out infinite;
}
.rp-draw-btn::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
}
.rp-draw-btn:active:not(.disabled) { transform: scale(0.92); animation: none; }
.rp-draw-btn.disabled { pointer-events: none; opacity: 0.7; }
.rp-draw-btn span {
    font-size: 36px;
    color: #8E0000;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.rp-draw-btn.spinning { animation: rpSpin 0.6s linear infinite; }
@keyframes rpSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rpPulse { 0%,100% { box-shadow: 0 4px 24px rgba(212,168,67,0.5); } 50% { box-shadow: 0 4px 36px rgba(212,168,67,0.7), 0 0 0 6px rgba(212,168,67,0.1); } }

.rp-shake { animation: rpShake 0.4s ease-in-out infinite; }
@keyframes rpShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px) rotate(-1deg); } 75% { transform: translateX(6px) rotate(1deg); } }

.rp-hint {
    color: rgba(245,230,184,0.55);
    font-size: 13px;
    margin-top: 28px;
    text-align: center;
    letter-spacing: 1px;
}

.rp-result {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
    animation: rpFadeIn 0.5s ease;
}
.rp-result.show { display: flex; }
.rp-result-card {
    background: rgba(255,255,255,0.96);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
    border: 2px solid rgba(212,168,67,0.5);
    position: relative;
    overflow: hidden;
}
.rp-result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #D4A843, #FFD700, #F5E6B8, #FFD700, #D4A843);
}
.rp-result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
}
.rp-result-icon svg { width: 100%; height: 100%; }
.rp-result-title {
    font-size: 24px;
    font-weight: 700;
    color: #C62828;
    margin-bottom: 8px;
}
.rp-result-amount {
    margin: 18px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F5, #FFEBEE);
    padding: 12px 24px;
    border-radius: 16px;
}
.rp-amount-symbol { font-size: 24px; color: #C62828; font-weight: 600; margin-right: 3px; }
.rp-amount-num { font-size: 48px; color: #C62828; font-weight: 800; line-height: 1; }
.rp-result-msg {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.6;
}
.rp-btn-home {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #C62828, #E53935);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(198,40,40,0.3);
    transition: all 0.3s ease;
}
.rp-btn-home:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(198,40,40,0.4); }
.rp-btn-home:active { transform: scale(0.97); }

#rpConfetti {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    display: none;
}

@keyframes rpFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ornamentFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.05); opacity: 0.6; }
}
