* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "SimSun", "宋体", serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#capture-area {
    background: linear-gradient(135deg, #8b2a8b 0%, #9932cc 100%);
    overflow: hidden;
    max-width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

header {
    background: linear-gradient(135deg, #8b2a8b 0%, #9932cc 100%);
    padding: 5px 10px;
    text-align: center;
    flex-shrink: 0;
}

h1 {
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin: 0;
}

.table-container {
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* 中奖标签覆盖层 */
.win-tag-overlay {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #ff9933;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: none;
    min-height: 180px;
    padding: 20px 30px;
    pointer-events: none;
}

.win-tag-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.win-tag-zhong {
    font-size: 80px;
    font-weight: bold;
    color: #cc0000;
    line-height: 1;
    font-family: "SimSun", "宋体", serif;
}

.win-tag-scheme {
    font-size: 36px;
    font-weight: bold;
    color: #cc0000;
    margin-top: 10px;
    font-family: "SimSun", "宋体", serif;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 12px;
    table-layout: auto;
    flex-shrink: 0;
}

thead {
    background: linear-gradient(135deg, #8b2a8b 0%, #9932cc 100%);
    color: white;
}

th {
    padding: 6px 4px;
    font-weight: bold;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
}

td {
    padding: 5px 4px;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
    height: auto;
}

tbody tr {
    height: auto;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr.highlight {
    background: linear-gradient(135deg, #8b2a8b 0%, #9932cc 100%);
    color: white;
    font-weight: bold;
}

tr.highlight td {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.notice {
    background: linear-gradient(135deg, #8b2a8b 0%, #9932cc 100%);
    padding: 5px 10px;
    text-align: center;
    color: white;
    flex-shrink: 0;
}

/* 底部推荐图片区域 */
.banner-container {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #1a1a2e;
    display: flex;
    align-items: flex-start;
}

.banner-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.highlight-text {
    background: yellow;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding: 3px 12px;
    display: inline-block;
    margin-bottom: 3px;
    border-radius: 5px;
    line-height: 1;
}

.warning-text {
    font-size: 12px;
    margin: 1px 0;
    line-height: 1.1;
    font-weight: 400;
}

.age-warning {
    color: yellow;
    font-size: 14px;
    font-weight: bold;
    margin-top: 2px;
    letter-spacing: 2px;
    line-height: 1;
}

.screenshot-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.screenshot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 移动端适配 */
@media (max-width: 480px) {
    header { padding: 3px 5px; }
    h1 { font-size: 24px; letter-spacing: 5px; }
    table { font-size: 12px; }
    th { padding: 6px 4px; font-size: 12px; }
    td { padding: 4px 4px; font-size: 12px; }
    .notice { padding: 4px 5px; }
    .highlight-text { font-size: 14px; padding: 2px 8px; }
    .warning-text { font-size: 10px; }
    .age-warning { font-size: 11px; letter-spacing: 1px; }
    .screenshot-btn { padding: 6px 10px; font-size: 10px; }
    
    /* 移动端中奖标签 */
    .win-tag-overlay {
        width: 85%;
        min-height: 120px;
    }
    .win-tag-zhong {
        font-size: 50px;
    }
    .win-tag-scheme {
        font-size: 24px;
    }
}
