* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
}

/* 统一动态背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 30%, rgba(100, 150, 255, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 60%, rgba(255, 100, 150, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(150, 100, 255, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 90%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #0a0a1a 100%);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05) rotate(1deg);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f0f23;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 汉堡按钮默认隐藏（桌面端） */
.hamburger {
    display: none;
}

/* 移动端抽屉默认隐藏 */
.mobile-drawer,
.drawer-overlay {
    display: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    letter-spacing: 0.2rem;
}

.logo:hover {
    transform: scale(1.15);
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(244, 229, 161, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.05rem;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #f4e5a1;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 英雄区 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(100, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
    animation: gridFloat 30s linear infinite;
}

@keyframes gridFloat {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 10;
    width: 60%;
    max-width: 1000px;
}

.hero-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    animation: fadeInDown 1s ease 0s both, float 4s ease-in-out 1s infinite;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6)) brightness(1.1);
    position: relative;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    margin-bottom: 1rem;
}

.hero-logo.hero-animate {
    animation: fadeInDown 1s ease 0s both, float 4s ease-in-out 1s infinite;
}

.hero-logo:hover {
    transform: scale(1.12) rotate(5deg);
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 1)) 
            drop-shadow(0 0 80px rgba(212, 175, 55, 0.7))
            brightness(1.25);
}

.hero-title {
    font-size: 8.5rem;
    font-weight: bold;
    background: linear-gradient(
        90deg,
        #d4af37 0%,
        #d4af37 30%,
        #f4e5a1 45%,
        #ffd700 50%,
        #f4e5a1 55%,
        #d4af37 70%,
        #d4af37 100%
    );
    background-size: 300% 100%;
    background-position: 0% 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    animation: fadeInUp 1s ease 0.2s both;
    letter-spacing: 1.5rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
    width: 100%;
    transform: scaleX(1.3);
    position: relative;
}

.hero-title.hero-animate {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title.shine-once {
    animation: fadeInUp 1s ease 0.2s both, goldShine 1.5s ease-out 0.5s 1;
}

@keyframes goldShine {
    0% {
        background-position: -100% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.hero-title:hover {
    transform: scaleX(1.3) scale(1.08);
    letter-spacing: 1.8rem;
    filter: brightness(1.4) drop-shadow(0 0 40px rgba(244, 229, 161, 0.8));
}

.hero-subtitle {
    font-size: 1.4rem;
    letter-spacing: 0.5rem;
    color: #b8b8b8;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.4s both;
    font-weight: 300;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.hero-subtitle.hero-animate {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-subtitle:hover {
    color: #f4e5a1;
    letter-spacing: 0.7rem;
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(244, 229, 161, 0.7);
}

.hero-slogan {
    font-size: 1.3rem;
    color: #f4e5a1;
    animation: fadeInUp 1s ease 0.6s both, pulse 3s ease-in-out infinite;
    letter-spacing: 0.3rem;
    font-weight: 300;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
    padding: 0.9rem 1.8rem;
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50px;
    width: fit-content;
}

.hero-slogan.hero-animate {
    animation: fadeInUp 1s ease 0.6s both, pulse 3s ease-in-out infinite;
}

.hero-slogan:hover {
    color: #fff;
    letter-spacing: 0.5rem;
    transform: scale(1.05);
    text-shadow: 0 0 35px rgba(244, 229, 161, 0.9);
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: bounce 2s infinite;
    opacity: 0.6;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.1rem;
}

.arrow {
    width: 16px;
    height: 16px;
    border-right: 1.5px solid #d4af37;
    border-bottom: 1.5px solid #d4af37;
    transform: rotate(45deg);
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: block;
}

/* 通用区块 */
section {
    padding: 4rem 0;
    min-height: 80vh;
    display: block;
    margin: 0;
    border: none;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.section-title:hover {
    transform: translateY(0) scale(1.08);
    filter: brightness(1.4) drop-shadow(0 0 40px rgba(244, 229, 161, 0.8));
    letter-spacing: 0.3rem;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.hidden {
    opacity: 0;
    transform: translateY(50px);
}

/* 从左侧滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left.hidden {
    opacity: 0;
    transform: translateX(-100px);
}

/* 从右侧滑入 */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right.hidden {
    opacity: 0;
    transform: translateX(100px);
}

/* 关于我们 */
.about {
    background: transparent;
    position: relative;
    margin: 0;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(100, 150, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    position: relative;
    z-index: 1;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content.hidden {
    opacity: 0;
    transform: translateX(-80px);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #ccc;
}

/* 打手专区 */
.team {
    background: transparent;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 100, 150, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite 2s;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-top: 1.5rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 4rem;
    text-align: center;
    opacity: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    position: relative;
    transform: translateY(50px);
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                background 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
    transform-origin: center bottom;
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    max-width: 400px;
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tool-card.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.tool-card:hover {
    transform: scale(1.08) translateY(-10px) translateZ(0) !important;
    background: rgba(212, 175, 55, 0.18) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.6), 
                0 15px 40px rgba(212, 175, 55, 0.4), 
                0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 0 40px rgba(212, 175, 55, 0.15) !important;
    z-index: 10;
}

.tool-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
}

.tool-card:hover .tool-logo {
    transform: scale(1.15) translateZ(0);
}

.calculator-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.tool-card:hover .calculator-icon {
    transform: scale(1.2) translateZ(0);
}

.tool-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #d4af37;
    transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-font-smoothing: antialiased;
}

.tool-card:hover h3 {
    color: #f4e5a1;
    transform: scale(1.05);
}

.tool-desc {
    color: #888;
    font-size: 1.1rem;
    transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-font-smoothing: antialiased;
}

.tool-card:hover .tool-desc {
    color: #ccc;
    transform: scale(1.03);
}

/* 揽贝公益 */
.charity {
    background: transparent;
    position: relative;
    margin: 0;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.charity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(150, 100, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite 4s;
}

.charity-intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(80px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.charity-intro.visible {
    opacity: 1;
    transform: translateX(0);
}

.charity-intro.hidden {
    opacity: 0;
    transform: translateX(80px);
}

.charity-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: float 4s ease-in-out infinite;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.charity-logo:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)) brightness(1.2);
}

.charity-description {
    flex: 1;
    font-size: 1.2rem;
    line-height: 2;
    color: #ccc;
    text-align: left;
}

.charity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.charity-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    position: relative;
    transform-origin: center bottom;
}

.charity-item::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 20px;
    pointer-events: auto;
}

.charity-item:nth-child(1) {
    transform: translateX(-100px);
}

.charity-item:nth-child(2) {
    transform: translateY(80px);
}

.charity-item:nth-child(3) {
    transform: translateX(100px);
}

.charity-item.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    animation: slideInCharity 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInCharity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.charity-item.hidden:nth-child(1) {
    opacity: 0;
    transform: translateX(-100px);
}

.charity-item.hidden:nth-child(2) {
    opacity: 0;
    transform: translateY(80px);
}

.charity-item.hidden:nth-child(3) {
    opacity: 0;
    transform: translateX(100px);
}

/* 全新丝滑悬停效果 - 为什么选择我们 */
.charity-item {
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                background 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
}

.charity-item:hover {
    transform: scale(1.08) translateY(-10px) translateZ(0) !important;
    background: rgba(212, 175, 55, 0.18) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.6), 
                0 15px 40px rgba(212, 175, 55, 0.4), 
                0 5px 15px rgba(0, 0, 0, 0.3),
                inset 0 0 40px rgba(212, 175, 55, 0.15) !important;
    z-index: 10;
}

.charity-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.charity-item:hover .charity-icon {
    transform: scale(1.2) translateZ(0);
}

.charity-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #d4af37;
    transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-font-smoothing: antialiased;
}

.charity-item:hover h3 {
    color: #f4e5a1;
    transform: scale(1.05);
}

.charity-item p {
    color: #888;
    transition: all 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    -webkit-font-smoothing: antialiased;
}

.charity-item:hover p {
    color: #ccc;
    transform: scale(1.03);
}

/* 联系我们 */
.contact {
    background: transparent;
    position: relative;
    margin: 0;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite 6s;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(80px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    position: relative;
    z-index: 1;
}

.contact-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-content.hidden {
    opacity: 0;
    transform: translateX(80px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 全新丝滑悬停效果 - 联系我们 */
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                background 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 2s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    position: relative;
    will-change: transform, opacity;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    text-decoration: none;
}

a.info-item {
    color: #fff;
    text-decoration: none;
}

.douyin-icon {
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
}

.dy-shape {
    width: 2rem;
    height: 2rem;
    position: relative;
}

.dy-shape::before,
.dy-shape::after {
    content: 'D';
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.dy-shape::before {
    color: #00f5ff;
    text-shadow: 0 0 10px #00f5ff;
    animation: dy-cyan 2s ease-in-out infinite;
}

.dy-shape::after {
    color: #ff0050;
    text-shadow: 0 0 10px #ff0050;
    animation: dy-pink 2s ease-in-out infinite;
}

@keyframes dy-cyan {
    0%, 100% {
        transform: translate(-52%, -52%);
        opacity: 0.8;
    }
    50% {
        transform: translate(-54%, -54%);
        opacity: 1;
    }
}

@keyframes dy-pink {
    0%, 100% {
        transform: translate(-48%, -48%);
        opacity: 0.8;
    }
    50% {
        transform: translate(-46%, -46%);
        opacity: 1;
    }
}

.douyin-item:hover .douyin-icon {
    transform: scale(1.2) translateZ(0);
}

.douyin-item:hover .dy-shape::before {
    animation: dy-cyan 0.5s ease-in-out infinite;
}

.douyin-item:hover .dy-shape::after {
    animation: dy-pink 0.5s ease-in-out infinite;
}

.douyin-item span {
    font-size: 1.3rem;
}

.info-item::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 15px;
    pointer-events: none;
}

.info-item:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.8);
    transform: scale(1.04) translateX(8px) translateZ(0);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.6), 
                0 10px 30px rgba(212, 175, 55, 0.4), 
                0 5px 15px rgba(0, 0, 0, 0.2),
                inset 0 0 30px rgba(212, 175, 55, 0.15);
}

.icon {
    font-size: 2rem;
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.info-item:hover .icon {
    transform: scale(1.2) translateZ(0);
}

/* 抖音风格图标 */
.douyin-music {
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

.douyin-link .douyin-music {
    text-shadow: 
        -2px -2px 0 #00f5ff,
        2px 2px 0 #ff0050,
        0 0 10px rgba(0, 245, 255, 0.5),
        0 0 10px rgba(255, 0, 80, 0.5);
    animation: douyin-glow 2s ease-in-out infinite;
}

@keyframes douyin-glow {
    0%, 100% {
        text-shadow: 
            -2px -2px 0 #00f5ff,
            2px 2px 0 #ff0050,
            0 0 10px rgba(0, 245, 255, 0.5),
            0 0 10px rgba(255, 0, 80, 0.5);
    }
    50% {
        text-shadow: 
            -3px -3px 0 #00f5ff,
            3px 3px 0 #ff0050,
            0 0 20px rgba(0, 245, 255, 0.8),
            0 0 20px rgba(255, 0, 80, 0.8);
    }
}

.douyin-link:hover .douyin-music {
    animation: douyin-shake 0.3s ease-in-out infinite, douyin-glow 0.5s ease-in-out infinite;
    transform: scale(1.2);
}

@keyframes douyin-shake {
    0%, 100% { transform: translateX(0) scale(1.2); }
    25% { transform: translateX(-2px) scale(1.2); }
    75% { transform: translateX(2px) scale(1.2); }
}

/* 页脚 */
.footer {
    background: #0f0f23;
    padding: 2rem;
    text-align: center;
    color: #666;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.9rem;
}

/* 微信公众号二维码弹窗 */
.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.qrcode-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
}

.qrcode-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qrcode-close:hover {
    color: #d4af37;
    transform: rotate(90deg);
}

.qrcode-modal-content h3 {
    color: #f4e5a1;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qrcode-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 768px) {

    /* ---- 导航栏 ---- */
    .nav-container { padding: 0 1.2rem; }
    .logo { font-size: 1.3rem; }

    /* 桌面端菜单和用户区在移动端隐藏 */
    .nav-menu,
    .nav-user { display: none !important; }

    /* 汉堡按钮显示 */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 38px;
        height: 38px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #d4af37;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ---- 抽屉遮罩 ---- */
    .drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1040;
        backdrop-filter: blur(3px);
    }
    .drawer-overlay.open { display: block; }

    /* ---- 移动端抽屉 ---- */
    .mobile-drawer {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100%;
        background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
        border-left: 1px solid rgba(212,175,55,0.2);
        z-index: 1050;
        display: flex;
        flex-direction: column;
        transition: right 0.3s cubic-bezier(0.16,1,0.3,1);
        overflow-y: auto;
        padding-bottom: 2rem;
    }
    .mobile-drawer.open { right: 0; }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.2rem 1.5rem;
        border-bottom: 1px solid rgba(212,175,55,0.15);
    }

    .mobile-drawer-logo {
        font-size: 1.2rem;
        font-weight: bold;
        background: linear-gradient(135deg, #d4af37, #f4e5a1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .mobile-drawer-close {
        background: transparent;
        border: none;
        color: #888;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.3rem;
        line-height: 1;
        transition: color 0.2s;
    }
    .mobile-drawer-close:hover { color: #fff; }

    .mobile-nav-list {
        list-style: none;
        padding: 0.5rem 0;
        flex: 1;
    }
    .mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.05); }

    .mobile-nav-link {
        display: block;
        padding: 1rem 1.5rem;
        color: #ccc;
        text-decoration: none;
        font-size: 1rem;
        letter-spacing: 0.05rem;
        transition: all 0.2s ease;
    }
    .mobile-nav-link:hover, .mobile-nav-link:active {
        color: #f4e5a1;
        background: rgba(212,175,55,0.08);
        padding-left: 2rem;
    }

    .mobile-drawer-user {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem 1.5rem;
        border-top: 1px solid rgba(212,175,55,0.15);
        margin-top: auto;
    }
    .mobile-user-row {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.4rem;
    }
    .mobile-drawer-guest {
        padding: 1.2rem 1.5rem;
        border-top: 1px solid rgba(212,175,55,0.15);
        margin-top: auto;
    }

    /* ---- 英雄区 ---- */
    .hero-content { width: 92%; gap: 0.8rem; }
    .hero-logo { max-width: 150px; margin-bottom: 0.3rem; }
    .hero-title { font-size: 2.8rem; letter-spacing: 0.5rem; transform: scaleX(1.1); }
    .hero-title:hover { transform: scaleX(1.1) scale(1.03); letter-spacing: 0.7rem; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 0.2rem; margin-bottom: 0.8rem; }
    .hero-slogan { font-size: 0.88rem; letter-spacing: 0.1rem; padding: 0.6rem 1.1rem; }

    /* ---- 通用 ---- */
    .section-title { font-size: 2rem; margin-bottom: 1.2rem; }
    .container { padding: 0 1.2rem; }
    section { padding: 2.5rem 0; min-height: auto; }

    /* ---- 关于我们 ---- */
    .about-content p { font-size: 0.95rem; line-height: 1.8; }

    /* ---- 揽贝小工具 ---- */
    .tool-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .tool-card { padding: 1.8rem 2rem; max-width: 100%; }
    .tool-logo { width: 70px; margin-bottom: 0.8rem; }
    .calculator-icon { font-size: 2.8rem; margin-bottom: 0.8rem; }
    .tool-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
    .tool-desc { font-size: 0.95rem; }

    /* ---- 为什么选择我们 ---- */
    .charity-intro { flex-direction: column; text-align: center; gap: 1.2rem; margin-bottom: 1.5rem; }
    .charity-logo { width: 100px; }
    .charity-description { text-align: center; font-size: 0.95rem; line-height: 1.8; }
    .charity-grid { grid-template-columns: 1fr; gap: 1rem; }
    .charity-item { padding: 1.3rem; }
    .charity-icon { font-size: 2.5rem; }
    .charity-item h3 { font-size: 1.2rem; }
    .charity-item p { font-size: 0.9rem; }

    /* ---- 联系我们 ---- */
    .contact-info { gap: 1rem; }
    .info-item { font-size: 0.95rem; padding: 1rem; flex-direction: row; text-align: left; gap: 0.8rem; }
    .icon { font-size: 1.8rem; flex-shrink: 0; }

    /* ---- 计算器弹窗 ---- */
    .modal-content { padding: 1.8rem 1.2rem; width: 95%; }
    .modal-content h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
    .mode-display { font-size: 0.95rem; }
    .mode-btn { padding: 0.9rem; font-size: 0.95rem; }
    .calculator-display { padding: 1.2rem; margin-bottom: 1.2rem; }
    .display-row .label { font-size: 0.95rem; }
    .display-row .value { font-size: 1.2rem; }
    .change-indicator { font-size: 1.8rem; }
    .action-btn { padding: 0.9rem; font-size: 0.95rem; }
    .history-header h3 { font-size: 1rem; }
    .history-list { max-height: 180px; }
    .history-item { padding: 0.6rem; font-size: 0.85rem; }
    .input-dialog { width: 92%; padding: 1.3rem; }
    .input-dialog h3 { font-size: 1.2rem; }
    #initialValue, #actionValue { padding: 0.8rem; font-size: 0.95rem; }

    /* ---- 微信二维码弹窗 ---- */
    .qrcode-modal-content { padding: 1.3rem; width: 88%; }
    .qrcode-modal-content h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
    .qrcode-image { max-width: 220px; }

    /* ---- 页脚 ---- */
    .footer { padding: 1.2rem; font-size: 0.78rem; }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .logo { font-size: 1.2rem; }
    .hero-title { font-size: 2.2rem; letter-spacing: 0.4rem; }
    .hero-subtitle { font-size: 0.85rem; letter-spacing: 0.15rem; }
    .hero-slogan { font-size: 0.82rem; padding: 0.5rem 0.9rem; }
    .section-title { font-size: 1.7rem; }
    .tool-card { padding: 1.4rem 1.5rem; }
    .modal-content { padding: 1.3rem 1rem; }
    .wheel-scroll-body { padding: 1rem 1rem 0.5rem; }
    #wheelCanvas { width: 240px !important; height: 240px !important; }
}

/* 保底计算器弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.modal-content h2 {
    color: #f4e5a1;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.mode-display {
    text-align: center;
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #f4e5a1;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.15);
}

#initialValue, #actionValue {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

#initialValue:focus, #actionValue:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.modal-buttons button {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#backToStep1, #cancelInput {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

#backToStep1:hover, #cancelInput:hover {
    background: rgba(255, 255, 255, 0.15);
}

#confirmInitial, #confirmInput {
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #f4e5a1;
}

#confirmInitial:hover, #confirmInput:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
}

.calculator-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.change-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
    text-shadow: 0 0 20px currentColor;
}

.change-indicator.increase {
    color: #ff6b6b;
    animation: popAnimation 1.5s ease-out forwards;
}

.change-indicator.decrease {
    color: #90ee90;
    animation: popAnimation 1.5s ease-out forwards;
}

@keyframes popAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(1);
    }
}

.display-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.display-row:last-child {
    border-bottom: none;
}

.display-row.current {
    margin-top: 1rem;
}

.display-row .label {
    color: #aaa;
    font-size: 1.1rem;
}

.display-row .value {
    color: #f4e5a1;
    font-size: 1.5rem;
    font-weight: bold;
}

.calculator-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    flex: 1;
    padding: 1.2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
}

.action-btn.success {
    background: rgba(100, 200, 100, 0.1);
    border-color: rgba(100, 200, 100, 0.3);
    color: #90ee90;
}

.action-btn.success:hover {
    background: rgba(100, 200, 100, 0.2);
    border-color: rgba(100, 200, 100, 0.5);
    box-shadow: 0 5px 20px rgba(100, 200, 100, 0.3);
}

.action-btn.fail {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
}

.action-btn.fail:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 0 5px 20px rgba(255, 100, 100, 0.3);
}

/* 计算记录样式 */
.calculation-history {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.history-header h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin: 0;
}

.clear-btn {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
}

.history-list {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

.empty-history {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    padding: 1rem;
    margin: 0;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 5px;
    animation: slideInHistory 0.3s ease;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item.success {
    border-color: #90ee90;
}

.history-item.fail {
    border-color: #ff6b6b;
}

@keyframes slideInHistory {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-action {
    font-weight: bold;
    font-size: 0.95rem;
}

.history-item.success .history-action {
    color: #90ee90;
}

.history-item.fail .history-action {
    color: #ff6b6b;
}

.history-time {
    font-size: 0.75rem;
    color: #888;
}

.history-details {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

.history-change {
    font-weight: bold;
    margin-top: 0.3rem;
}

.history-change.positive {
    color: #ff6b6b;
}

.history-change.negative {
    color: #90ee90;
}

.input-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-dialog.active {
    display: block;
    opacity: 1;
    animation: dialogSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dialogSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.input-dialog h3 {
    color: #f4e5a1;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* 添加遮罩层 */
.modal-content.dialog-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
}


/* ============================================================
   登录系统样式
   ============================================================ */

.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.login-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(212,175,55,0.35);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 80px rgba(212,175,55,0.3);
    animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1);
}

.login-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(212,175,55,0.6));
}

.login-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #d4af37, #f4e5a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.3rem;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-form input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(212,175,55,0.6);
    box-shadow: 0 0 15px rgba(212,175,55,0.15);
}

.login-form input::placeholder {
    color: #555;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.25), rgba(244,229,161,0.15));
    border: 2px solid rgba(212,175,55,0.5);
    color: #f4e5a1;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.2rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(212,175,55,0.4), rgba(244,229,161,0.25));
    border-color: rgba(212,175,55,0.8);
    box-shadow: 0 5px 25px rgba(212,175,55,0.4);
    transform: translateY(-2px);
}

.login-tip {
    color: #555;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* 导航栏用户信息 */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-username {
    color: #ccc;
    font-size: 0.9rem;
}

.nav-role-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-super {
    background: rgba(212,175,55,0.2);
    border: 1px solid rgba(212,175,55,0.5);
    color: #f4e5a1;
}

.badge-admin {
    background: rgba(100,150,255,0.2);
    border: 1px solid rgba(100,150,255,0.5);
    color: #a0c0ff;
}

.badge-user {
    background: rgba(150,150,150,0.15);
    border: 1px solid rgba(150,150,150,0.3);
    color: #aaa;
}

.admin-entrance-btn {
    padding: 0.4rem 1rem;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.4);
    color: #f4e5a1;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.admin-entrance-btn:hover {
    background: rgba(212,175,55,0.25);
    border-color: rgba(212,175,55,0.7);
    box-shadow: 0 3px 12px rgba(212,175,55,0.3);
}

/* ============================================================
   揽贝转盘样式
   ============================================================ */

.wheel-modal-content {
    max-width: 380px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    padding: 0 !important; /* 内边距移到子元素 */
    overflow: hidden; /* 弹窗本身不滚动 */
}

/* 可滚动内容区 */
.wheel-scroll-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem 1.5rem 0.5rem;
    scrollbar-width: none; /* Firefox 隐藏滚动条 */
}

.wheel-scroll-body::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隐藏滚动条 */
}

/* 固定底部关闭按钮 */
.wheel-footer {
    flex-shrink: 0;
    padding: 0.8rem 1.5rem 1.2rem;
    border-top: 1px solid rgba(212,175,55,0.15);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.wheel-close-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wheel-close-btn:hover {
    background: rgba(255,255,255,0.13);
    color: #fff;
}
}

.wheel-title {
    font-size: 1.8rem !important;
    margin-bottom: 1.2rem !important;
}

/* 兑换码区域 */
.redeem-section {
    margin-bottom: 1.2rem;
}

.wheel-chances-info {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.wheel-chances-info span {
    color: #f4e5a1;
    font-weight: bold;
    font-size: 1.1rem;
}

.redeem-input-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.redeem-input-row input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.redeem-input-row input:focus {
    outline: none;
    border-color: rgba(212,175,55,0.6);
}

.redeem-input-row input::placeholder {
    color: #555;
}

.redeem-btn {
    padding: 0.7rem 1.2rem;
    background: rgba(212,175,55,0.15);
    border: 1.5px solid rgba(212,175,55,0.4);
    color: #f4e5a1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.redeem-btn:hover {
    background: rgba(212,175,55,0.25);
    border-color: rgba(212,175,55,0.7);
}

.redeem-msg {
    font-size: 0.85rem;
    min-height: 1.2em;
    transition: all 0.3s ease;
}

.redeem-msg.success { color: #90ee90; }
.redeem-msg.error   { color: #ff6b6b; }

/* 转盘容器 */
.wheel-container {
    position: relative;
    display: inline-block;
    margin: 0.8rem auto;
}

.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #f4e5a1;
    text-shadow: 0 0 15px rgba(212,175,55,0.8);
    z-index: 10;
    line-height: 1;
}

#wheelCanvas {
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(212,175,55,0.4), 0 0 80px rgba(212,175,55,0.15);
}

/* 抽奖按钮 */
.spin-btn {
    display: block;
    width: 100%;
    margin: 1rem 0 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.3), rgba(244,229,161,0.2));
    border: 2px solid rgba(212,175,55,0.6);
    color: #f4e5a1;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.15rem;
}

.spin-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(212,175,55,0.45), rgba(244,229,161,0.3));
    border-color: rgba(212,175,55,0.9);
    box-shadow: 0 5px 25px rgba(212,175,55,0.5);
    transform: translateY(-2px);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 结果展示 */
.wheel-result {
    margin: 0.5rem 0;
    animation: popIn 0.5s cubic-bezier(0.16,1,0.3,1);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

.wheel-result-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: rgba(212,175,55,0.12);
    border: 2px solid rgba(212,175,55,0.4);
    border-radius: 12px;
}

.wheel-result-emoji {
    font-size: 1.8rem;
}

.wheel-result-text {
    font-size: 1.1rem;
    color: #f4e5a1;
}

.wheel-result-text strong {
    color: #ffd700;
    font-size: 1.3rem;
}

/* 响应式 */
@media (max-width: 480px) {
    .wheel-modal-content {
        padding: 0 !important;
        max-height: 88vh;
    }
    .wheel-scroll-body {
        padding: 1rem 1rem 0.5rem;
    }
    #wheelCanvas {
        width: 240px !important;
        height: 240px !important;
    }
    .nav-username {
        display: none;
    }
}


/* ============================================================
   登录/注册 Tab 切换 & 关闭按钮
   ============================================================ */

.login-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.login-close-btn:hover {
    color: #ccc;
    background: rgba(255,255,255,0.08);
}

.login-box {
    position: relative; /* 让关闭按钮绝对定位生效 */
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 4px;
}

.login-tab {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.25s ease;
}

.login-tab.active {
    background: rgba(212,175,55,0.2);
    color: #f4e5a1;
    font-weight: bold;
}

.login-tab:hover:not(.active) {
    color: #ccc;
    background: rgba(255,255,255,0.05);
}

.auth-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    min-height: 1.1em;
    text-align: left;
    margin: -0.3rem 0 0.2rem;
}

/* 退出按钮 */
.nav-logout-btn {
    padding: 0.35rem 0.9rem;
    background: rgba(255,100,100,0.1);
    border: 1px solid rgba(255,100,100,0.3);
    color: #ff9090;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-logout-btn:hover {
    background: rgba(255,100,100,0.2);
    border-color: rgba(255,100,100,0.5);
}


/* ============================================================
   转盘 - 我的抽奖记录
   ============================================================ */

.my-spin-history {
    margin-top: 0.8rem;
    text-align: left;
    width: 100%;
    flex-shrink: 0;
}

.my-spin-history-title {
    color: #d4af37;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.my-spin-history-list {
    max-height: 72px; /* 精确2条：每条约32px + 间距 */
    overflow-y: auto;
}

.my-spin-history-list::-webkit-scrollbar { width: 4px; }
.my-spin-history-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 2px; }
.my-spin-history-list::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.4); border-radius: 2px; }

.my-spin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.my-spin-prize {
    color: #f4e5a1;
    font-weight: bold;
}

.my-spin-time {
    color: #666;
    font-size: 0.78rem;
}


/* 转盘浮光 overlay */
.wheel-glow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* 不拦截点击 */
    border-radius: 50%;
}
