:root {
    --bg-color: #222;
    --container-bg: #de2910;
    --text-color: #fff;
    --highlight-color: #ffde00;
    --button-primary-bg: #ffde00;
    --button-primary-text: #de2910;
    --button-secondary-bg: #1e63b0;
    --button-secondary-text: #fff;
    --button-disabled-bg: #999;
}

[data-theme="dark"] {
    --bg-color: #000;
    --container-bg: #8c1b0a;
    --text-color: #e0e0e0;
    --highlight-color: #ffd000;
    --button-primary-bg: #ffd000;
    --button-primary-text: #8c1b0a;
    --button-secondary-bg: #0a4a8c;
    --button-secondary-text: #e0e0e0;
    --button-disabled-bg: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}
.page-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--container-bg);
    overflow: hidden;
    transition: background-color 0.3s ease;
    transform: none !important; /* 防止变形 */
}

.light-spot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
}
.light-spot-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 10%;
}
.light-spot-2 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 5%;
}
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ff9d00" fill-opacity="0.1" d="M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,138.7C672,139,768,181,864,197.3C960,213,1056,203,1152,176C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}
.container {
    background: var(--container-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 1;
    transform: none !important; /* 防止变形 */
    margin: 0 auto; /* 居中显示 */
}
.header {
    margin-bottom: 40px;
    position: relative;
    padding-top: 10px;
    border-bottom: 2px solid #ffde00;
}
.header h1 {
    font-size: 28px;
    font-weight: bold;
    color: var(--highlight-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    position: relative;
}
.header h1:before, .header h1:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 60px;
    background-color: var(--highlight-color);
    top: 50%;
    transform: translateY(-50%);
}
.header h1:before {
    left: 20px;
}
.header h1:after {
    right: 20px;
}
.content {
    padding: 20px 0;
}
.highlight {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin: 30px 0;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--highlight-color);
}
.star {
    font-size: 22px;
    color: var(--highlight-color);
    margin: 0 5px;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.register-btn {
    display: inline-block;
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin: 40px auto;
    max-width: 90%;
    width: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.register-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}
.bonus-text {
    font-size: 16px;
    color: var(--highlight-color);
    margin: 20px 0;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    position: relative;
}
.bonus-text:before, .bonus-text:after {
    content: '';
    position: absolute;
    height: 100%;
    width: 10px;
    top: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><rect width="10" height="10" fill="none" stroke="%23ffd000" stroke-width="2"/></svg>');
    background-repeat: repeat-y;
    background-size: 10px 10px;
}
.bonus-text:before {
    left: 0;
}
.bonus-text:after {
    right: 0;
}
.download-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.download-section:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background-color: var(--container-bg);
    border-radius: 10px;
    z-index: 1;
}
.download-section:after {
    content: '应用下载';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}
.download-btn {
    display: inline-block;
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    font-size: 18px;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    margin: 10px 0;
    width: 80%;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.download-btn.apple {
    background-color: var(--button-disabled-bg);
    opacity: 0.8;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.download-btn i {
    margin-right: 10px;
}
.theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.theme-toggle i {
    color: var(--highlight-color);
    font-size: 20px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* 响应式设计 - 自动适应不同设备屏幕 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
        margin: 10px 0;
    }
    .highlight {
        font-size: 16px;
    }
    .register-btn {
        font-size: 18px;
        padding: 12px 25px;
        max-width: none;
        width: auto; /* 恢复原来的宽度 */
    }
    .download-btn {
        font-size: 16px;
        padding: 10px 15px;
        max-width: 80%;
        margin: 8px 0;
        width: 80%; /* 确保宽度一致 */
    }
    .page-container {
        max-width: 100%;
        transform: none; /* 防止变形 */
    }
    .container {
        padding: 20px 15px;
        width: 90%;
        max-width: 450px; /* 限制最大宽度 */
        margin: 0 auto;
        transform: none; /* 防止变形 */
    }
    .download-section {
        margin-top: 30px;
        flex-direction: column;
        align-items: center; /* 居中对齐 */
    }
    .content {
        font-size: 14px;
        transform: none; /* 防止变形 */
    }
}

/* 更小屏幕的设备（手机） */
@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .content {
        font-size: 13px;
        padding: 10px;
    }
    
    .highlight {
        font-size: 15px;
    }
    
    .bonus-text {
        font-size: 14px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
}

/* 确保在任何设备上都能正常显示 */
@media (orientation: landscape) and (max-height: 500px) {
    .page-container {
        height: auto;
        min-height: 100vh;
    }
    
    .container {
        margin: 10px auto;
    }
}