html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

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

.box {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(170deg, #0a3d2e 0%, #0d5740 25%, #0f6b4e 50%, #0d5740 75%, #0a3d2e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 顶部装饰弧形 */
.box::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -20%;
    right: -20%;
    height: 300px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 100%);
    border-radius: 0 0 50% 50%;
    z-index: 0;
}

/* 底部装饰弧形 */
.box::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -10%;
    right: -10%;
    height: 200px;
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0) 100%);
    border-radius: 50% 50% 0 0;
    z-index: 0;
}

/* 浮动粒子 */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 8%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 10%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 55%;
    right: 15%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.06;
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.12;
    }
}

/* 左上角 logo */
.logo {
    width: 2.8rem;
    height: 2.8rem;
    margin: 1.2rem 0 0 0.8rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    animation: fadeIn 0.5s ease-out;
    align-self: flex-start;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.logo img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 标题区域 - 使用 vw 单位自适应屏幕 */
.banner {
    width: 100%;
    padding: 2.5rem 1.5rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    animation: fadeInDown 0.8s ease-out;
}

.banner-line1 {
    font-size: clamp(1.3rem, 6vw, 2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.3rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.banner-line2 {
    font-size: clamp(1.05rem, 4.5vw, 1.6rem);
    font-weight: 600;
    color: #6ee7b7;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    line-height: 1.3;
}

.banner-line3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-line3 .cn {
    font-size: clamp(0.85rem, 3.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 4px;
    padding: 0.3rem 1.2rem;
    border: 1px solid rgba(110, 231, 183, 0.4);
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(4px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 下半部分：内容卡片 + 按钮 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    position: relative;
    z-index: 2;
}

/* 内容卡片 */
.contentbg {
    background: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    padding: 1.2rem 1rem 1rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    width: 90%;
    max-width: 420px;
    flex-shrink: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题 */
.content-title {
    font-weight: 700;
    color: #065f46;
    height: 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-left: 0.2rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
}

.content-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1rem;
    background: linear-gradient(180deg, #10b981, #047857);
    border-radius: 2px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.content-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7rem;
    padding: 0.2rem 0.5rem 0;
    text-indent: 2rem;
    overflow: hidden;
}

.content-desc-noindent {
    text-indent: 0;
}

.content-desc p {
    margin-bottom: 0.3rem;
}

.content-line {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1fae5, transparent);
    width: 85%;
    margin: 0.8rem auto 0;
}

.content-intr {
    list-style: none;
    padding: 0.6rem 0.5rem 0;
    overflow: hidden;
}

.content-intr li {
    font-size: 0.9rem;
    color: #065f46;
    line-height: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-left: 1.2rem;
}

.content-intr li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

/* 开始答题按钮 */
.sbutton {
    text-align: center;
    height: 3.2rem;
    width: 14rem;
    line-height: 3.2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border-radius: 2rem;
    margin: auto auto 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
    letter-spacing: 3px;
    flex-shrink: 0;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    position: relative;
}

.sbutton:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

.sbutton:active {
    transform: scale(0.97);
}

/* 按钮呼吸光效 */
.sbutton::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    z-index: -1;
    opacity: 0;
    animation: breathe 2.5s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.04);
    }
}

/* 参与人次 */
.box-usernum {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 0.85rem;
    height: 2rem;
    width: 7.5rem;
    position: fixed;
    top: 1.2rem;
    right: 0.6rem;
    z-index: 999;
    animation: fadeInRight 0.6s ease-out 0.6s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.box-num {
    color: rgba(255, 255, 255, 0.95);
    height: 2rem;
    line-height: 2rem;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 1px;
}

.box-num::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #6ee7b7;
    border-radius: 50%;
    margin-right: 4px;
    animation: blink 1.5s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* 红包按钮 */
.redpacket-btn {
    position: fixed;
    top: 4rem;
    right: 0;
    z-index: 1000;
    cursor: pointer;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem 0.5rem 0.8rem;
    border-radius: 1rem 0 0 1rem;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.redpacket-btn:hover {
    padding-right: 1rem;
}

.redpacket-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

/* 红包列表弹窗样式 */
.redpacket-list {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.redpacket-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.redpacket-list-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c62828;
}

.redpacket-list-refresh {
    font-size: 1.5rem;
    color: #c62828;
    cursor: pointer;
    padding: 0.3rem;
    transition: transform 0.3s;
}

.redpacket-list-refresh:active {
    transform: rotate(180deg);
}

.redpacket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #fff5f5;
    border-radius: 8px;
    margin: 0.5rem;
    border: 1px solid #ffcdd2;
}

.redpacket-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.redpacket-time {
    font-size: 0.9rem;
    color: #666;
}

.redpacket-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: #c62828;
    min-width: 4rem;
}

.redpacket-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-received {
    color: #4caf50;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-pending {
    color: #ff9800;
    font-size: 0.9rem;
}

.receive-btn {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.9rem;
}

/* 答题台账样式 */
.ledger-container {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.ledger-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #065f46;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.ledger-desc {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    padding: 0.5rem;
    background: #f5f5f5;
}

.ledger-list {
    max-height: 40vh;
    overflow-y: auto;
}

.ledger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #fff;
    border-radius: 8px;
    margin: 0.5rem;
    border: 1px solid #e0e0e0;
}

.ledger-round {
    font-size: 1rem;
    font-weight: bold;
    color: #065f46;
    min-width: 3.5rem;
}

.ledger-info {
    flex: 1;
    padding: 0 0.8rem;
}

.ledger-date {
    font-size: 0.85rem;
    color: #666;
}

.ledger-score {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.2rem;
}

.ledger-status {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.ledger-status.status-correct {
    background: #d1fae5;
    color: #047857;
}

.ledger-status.status-wrong {
    background: #ffebee;
    color: #c62828;
}

/* 废弃旧样式 */
.boxbg1,
.boxbg2,
.boxbg3 {
    display: none;
}

.sbuttonx,
.sbuttonx1,
.sbuttonx2,
.contentbg-sys,
.content-desc-sys,
.btn-sys {
    display: none;
}