/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

/* 全局缩放变量 */
:root {
    --app-scale: 1;
}

/* 确保body层级的缩放正确应用 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    zoom: var(--app-scale);
    -moz-transform: scale(var(--app-scale));
    -moz-transform-origin: center top;
    max-height: calc(100vh / var(--app-scale));
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

body::before {
    top: -100px;
    left: -100px;
}

body::after {
    bottom: -100px;
    right: -100px;
}

.container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

/* 卡片样式 */
.activation-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    position: relative;
    width: 100%;
    min-height: 600px; 
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* 游戏图标 */
.game-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 12px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

.game-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(118, 75, 162, 0.4);
}

.game-icon:active {
    transform: scale(0.95);
}

.game-icon i {
    font-size: 32px;
    color: white;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
}

.header p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 剩余名额显示 */
.quota-display {
    background: linear-gradient(to right, #667eea, #764ba2);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3);
}

.quota-label {
    font-weight: 500;
    margin-right: 4px;
}

.quota-value {
    font-weight: 600;
}

/* 输入区域样式 */
.input-section {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#player-id, #activation-type {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

#player-id:focus, #activation-type:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.2);
}

#player-id::placeholder {
    color: #bbb;
}

/* 下拉框样式 */
#activation-type {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    color: #333;
}

#activation-type option {
    color: #333;
    padding: 10px;
}

#activation-type option:first-child {
    color: #bbb;
}

#activate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#activate-btn:hover {
    background: linear-gradient(to right, #5a71d5, #6a43a1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

#activate-btn:active {
    transform: translateY(0);
}

/* 激活信息区域 */
.activation-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.activation-info h2, .activation-records h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.activation-info h2::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #999;
    font-size: 16px;
}

.info-content {
    display: grid;
    grid-gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
}

.label {
    color: #666;
    min-width: 80px;
    font-size: 14px;
}

.value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.value.status {
    color: #f56c6c;
}

/* 详细信息可能会比较长 */
.value.details {
    word-break: break-all;
    line-height: 1.4;
    font-size: 13px;
}

/* 激活记录区域 */
.activation-records {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.activation-records h2::before {
    content: '\f1da';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #999;
    font-size: 16px;
}

.records-list {
    max-height: none;
    overflow-y: auto;
    flex: 1;
}

.record-item {
    background: white;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.record-item:last-child {
    margin-bottom: 0;
}

.record-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-id {
    color: #333;
    font-family: monospace;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.record-type {
    color: #764ba2;
    font-weight: 500;
}

.record-time {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-time i {
    font-size: 11px;
}

.no-records-message {
    text-align: center;
    padding: 12px;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* 备注区域 */
.note {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    flex-shrink: 0;
}

.note p {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
}

.note p::before {
    content: '*';
    margin-right: 5px;
}

/* 水印效果 */
.watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: rgba(0, 0, 0, 0.03);
    font-size: 80px;
    line-height: 1;
    font-weight: 900;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .activation-card {
        padding: 20px;
        min-height: 550px;
    }
    
    #player-id, #activation-type, #activate-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    #player-id, #activation-type {
        padding-left: 40px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .game-icon {
        width: 56px;
        height: 56px;
    }
    
    .game-icon i {
        font-size: 28px;
    }
    
    .activation-records {
        min-height: 180px;
    }
    
    .record-item {
        padding: 8px 10px;
    }
}

@media (max-height: 700px) {
    .activation-card {
        min-height: 550px;
    }
    
    .activation-records {
        min-height: 150px;
    }
}

/* 服务器模式指示器 */
.server-mode-indicator {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.server-mode-indicator i {
    font-size: 16px;
    color: #667eea;
} 