/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 主要布局 */
#root {
    width: 100%;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(45deg, #000000, #2c2c2c, #4a4a4a, #666666, #8b8b00, #ffff99, #ffffcc);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.content-frame {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(180deg, #000000 0%, #ffff99 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.content-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 400% 400%;
    border-radius: 23px;
    z-index: -1;
    animation: borderGlow 8s ease infinite;
}

.profile-section {
    width: 100%;
}

.profile-container {
    background: linear-gradient(180deg, #000000 0%, #333300 50%, #ffff99 100%);
    color: white;
    padding: 0;
}

.main-content {
    padding: 40px 30px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(255,255,153,0.1) 100%);
}

/* 头部区域 */
.header-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-image {
    margin-bottom: 20px;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.intro-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #bdc3c7;
    max-width: 600px;
    margin: 0 auto;
}

/* 图片区域 */
.info-image img,
.content-image img {
    width: 100%;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 间距 */
.spacer {
    height: 20px;
}

/* 计时器区域 */
.timer-section {
    margin: 30px 0;
}

.timer-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.timer-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8), rgba(69, 183, 209, 0.8));
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    animation: borderPulse 6s ease infinite;
}

.timer-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ecf0f1;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-number {
    font-size: 36px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.time-label {
    font-size: 16px;
    color: #ecf0f1;
    margin-top: 8px;
}

/* 信息框 */
.info-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    color: #ecf0f1;
    line-height: 1.8;
    font-size: 15px;
    position: relative;
}

.info-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    background-size: 200% 200%;
    border-radius: 22px;
    z-index: -1;
    animation: shimmer 4s ease infinite;
}

/* 按钮样式 */
.action-button {
    margin: 25px 0;
}

.btn-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 25px;
    padding: 12px 16px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #feca57);
    background-size: 300% 300%;
    border-radius: 27px;
    z-index: -1;
    animation: buttonBorder 5s ease infinite;
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-text p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.btn-arrow {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 最终区域 */
.final-section {
    text-align: center;
    padding: 20px 0;
}



.final-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000;
}

.final-section h4 {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
}



/* 免责声明弹窗样式 */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.disclaimer-modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow-y: auto;
    animation: modalSlideIn 0.5s ease-out;
}

.disclaimer-modal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #3498db, #e74c3c, #f39c12, #27ae60);
    border-radius: 23px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.disclaimer-modal-content h3 {
    color: #ecf0f1;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.disclaimer-content {
    margin-bottom: 30px;
}

.disclaimer-content p {
    color: #bdc3c7;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3498db;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.agreement-section {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.agreement-checkbox {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #ecf0f1;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #3498db;
    border-color: #3498db;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.agree-btn {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3);
}

.agree-btn:enabled {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.agree-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #229954, #27ae60);
}

/* 动画效果 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 50%;
        filter: hue-rotate(90deg);
    }
    50% {
        background-position: 100% 100%;
        filter: hue-rotate(180deg);
    }
    75% {
        background-position: 0% 100%;
        filter: hue-rotate(270deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

@keyframes borderPulse {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    33% {
        background-position: 100% 50%;
        opacity: 1;
    }
    66% {
        background-position: 50% 100%;
        opacity: 0.6;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes buttonBorder {
    0% {
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    25% {
        background-position: 100% 50%;
        transform: rotate(90deg);
    }
    50% {
        background-position: 100% 100%;
        transform: rotate(180deg);
    }
    75% {
        background-position: 0% 100%;
        transform: rotate(270deg);
    }
    100% {
        background-position: 0% 50%;
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 10px;
    }
    
    .content-frame {
        border-radius: 0;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .intro-text h2 {
        font-size: 24px;
    }
    
    .timer-display {
        gap: 15px;
    }
    
    .time-number {
        font-size: 28px;
    }
    
    .time-label {
        font-size: 14px;
    }
    
    .btn-text p {
        font-size: 13px;
    }
    

    
    .disclaimer-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .disclaimer-modal-content h3 {
        font-size: 24px;
    }
    
    .disclaimer-content p {
        font-size: 15px;
        padding: 12px;
    }
    
    .agreement-checkbox {
        font-size: 15px;
    }
    
    .agree-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .timer-display {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .time-number {
        font-size: 24px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .btn-arrow {
        width: 30px;
        height: 30px;
        margin-left: 10px;
    }
    
    .btn-text p {
        font-size: 12px;
    }
    
    .disclaimer-modal-content {
        padding: 20px 15px;
        width: 95%;
        max-height: 90vh;
    }
    
    .disclaimer-modal-content h3 {
        font-size: 22px;
    }
    
    .disclaimer-content p {
        font-size: 14px;
        padding: 10px;
    }
    
    .agreement-checkbox {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
    }
    
    .checkmark {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .agree-btn {
        padding: 10px 25px;
        font-size: 15px;
        width: 100%;
        max-width: 200px;
    }
}