* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #121212;
    color: #fff;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.app-header {
    background: linear-gradient(145deg, #222222 0%, #1a1a1a 100%);
    padding: 35px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.app-header::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700" opacity="0.1"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
    z-index: -1;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.app-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
}

.app-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.app-content {
    flex: 1;
    padding: 25px 15px 40px;
    background: #1a1a1a;
    position: relative;
    z-index: 1;
}

.card {
    background: #222;
    border-radius: 16px;
    padding: 25px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 5px 5px 0 0;
}

.card-vip-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD700"><path d="M12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2Z"/></svg>') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #333;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #2a2a2a;
    color: #fff;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: #FFD700;
    background: #2d2d2d;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2), inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.result.success {
    background: rgba(46, 125, 50, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.result.error {
    background: rgba(198, 40, 40, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.activity-list {
    margin-top: 20px;
}

.activity-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, transparent);
    border-radius: 3px;
}

.activity-title-icon {
    color: #FFD700;
    font-size: 22px;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* 活动列表中的皇冠图标样式 */
.activity-crown-icon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 18px;
    z-index: 2;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

/* 鼠标悬停时的闪耀效果 */
.activity-item:hover .activity-crown-icon {
    animation: simpleShine 1s ease-in-out infinite;
}

/* 简化的闪耀动画 */
@keyframes simpleShine {
    0% {
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
    }
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.activity-item {
    background: linear-gradient(145deg, #2a2a2a, #222);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.activity-item:active {
    transform: scale(0.97);
}

.activity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.activity-item:hover::before {
    opacity: 1;
}

.activity-image {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: imagePulse 2s ease-in-out infinite;
}

.activity-info {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.activity-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    line-height: 1.4;
}

.vip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    z-index: 2;
}

.activity-tip {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 14px 25px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    animation: fadeInOut 3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    20% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

@media (min-width: 769px) {
    body::before {
        content: "请使用移动设备访问";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #222;
        padding: 20px 30px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        color: #fff;
        border: 1px solid rgba(255, 215, 0, 0.2);
    }
    .app-container {
        display: none;
    }
}

.dev-tools-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.warning-content {
    background: #222;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 80%;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.warning-title {
    color: #f44336;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.warning-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.warning-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.warning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.confirm-content {
    background: #222;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.confirm-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1), transparent 70%);
    z-index: -1;
}

.confirm-title {
    font-size: 22px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.confirm-title::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

.confirm-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

.confirm-text strong {
    color: #f44336;
    font-weight: 600;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.confirm-btn.agree {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.confirm-btn.agree::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
}

.confirm-btn.agree:hover::before {
    left: 100%;
}

.confirm-btn.disagree {
    background: #333;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid #444;
}

.confirm-btn:hover {
    transform: translateY(-2px);
}

/* Frame页面样式 */
.frame-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #121212;
}

.frame-header {
    background: linear-gradient(145deg, #222222 0%, #1a1a1a 100%);
    padding: 15px;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.frame-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.frame-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFD700;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.frame-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    letter-spacing: 0.5px;
}

.frame-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.frame-iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    z-index: 10;
}

.frame-footer {
    background: #222;
    padding: 10px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.frame-button {
    background: none;
    border: none;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.frame-button i {
    font-size: 20px;
}

.frame-button.active {
    color: #FFD700;
}

.frame-button:hover {
    color: #FFD700;
    transform: translateY(-2px);
}

/* 过期提示样式 */
.expired-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    padding: 25px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid rgba(255, 215, 0, 0.1);
    max-width: 85%;
}

.expired-title {
    color: #f44336;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.expired-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
}

.expired-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.expired-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: #FFD700;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 活动图标的脉冲动画效果 */
.activity-image {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    padding: 3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: imagePulse 2s ease-in-out infinite;
}

/* 脉冲动画 */
@keyframes imagePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
}

/* 鼠标悬停效果增强 */
.activity-item:hover .activity-image {
    animation: imageHoverPulse 1s ease-in-out infinite;
    border-color: #FFA500;
}

/* 悬停时的脉冲动画 */
@keyframes imageHoverPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 165, 0, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
        transform: scale(1);
    }
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-inactive {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
} 