/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 二次元配色方案 */
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffa502;
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* ==================== 背景动画 ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* ==================== 容器 ==================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== 标题区域 ==================== */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 加载状态 ==================== */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-light);
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 主内容 ==================== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== 卡片样式 ==================== */
.welcome-card,
.result-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.card-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-description {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* ==================== 统计预览 ==================== */
.stats-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== 按钮样式 ==================== */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
}

.btn-secondary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: var(--text-light);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #ff9500);
    color: var(--text-light);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.3rem;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 按钮组 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

/* 开始重开按钮特效 */
#start-btn {
    position: relative;
    overflow: visible;
}

#start-btn .btn-text {
    position: relative;
    z-index: 2;
}

#start-btn .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    transform: scale(0);
    transform-origin: center center;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

#start-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg,
        hsl(var(--glow-hue, 330), 80%, 65%),
        hsl(calc(var(--glow-hue, 330) + 60), 80%, 65%),
        hsl(calc(var(--glow-hue, 330) + 120), 80%, 65%),
        hsl(calc(var(--glow-hue, 330) + 180), 80%, 65%));
    background-size: 400% 400%;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

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

#start-btn:hover::before {
    opacity: 0.8;
}

/* ==================== 抽签动画 ==================== */
.drawing-container {
    text-align: center;
    padding: 40px 20px;
}

.roulette-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
}

.roulette {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--primary-color) 0deg 60deg,
        var(--accent-color) 60deg 120deg,
        var(--secondary-color) 120deg 180deg,
        #00b894 180deg 240deg,
        #74b9ff 240deg 300deg,
        var(--primary-color) 300deg 360deg
    );
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.roulette-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.roulette-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--accent-color);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 10;
}

.drawing-text {
    margin-top: 20px;
}

.drawing-message {
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== 结果展示 ==================== */
.result-card {
    max-width: 700px;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.result-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.result-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.country-flag {
    font-size: 4rem;
}

.country-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==================== 信息网格 ==================== */
.info-section,
.stats-section,
.comment-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== 属性条 ==================== */
.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-bar-label {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-bar-value {
    font-weight: 700;
    color: var(--primary-color);
}

.stat-bar-bg {
    height: 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==================== 评价框 ==================== */
.comment-box {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 12px;
}

.comment-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
}

/* ==================== 结果页脚 ==================== */
.result-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.result-footer .btn {
    flex: 1;
}

/* ==================== GitHub 角标 ==================== */
.github-corner {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10000;
    border: 0;
}

.github-corner:hover .octo-arm {
    animation: octocat-wave 560ms ease-in-out;
}

@keyframes octocat-wave {
    0%, 100% {
        transform: rotate(0);
    }
    20%, 60% {
        transform: rotate(-25deg);
    }
    40%, 80% {
        transform: rotate(10deg);
    }
}

@media (max-width: 500px) {
    .github-corner:hover .octo-arm {
        animation: none;
    }
    .github-corner .octo-arm {
        animation: octocat-wave 560ms ease-in-out;
    }
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-text {
    margin-bottom: 5px;
}

.footer-text a {
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

.footer-text a:hover {
    border-bottom-color: var(--text-light);
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==================== 粒子效果 ==================== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* ==================== 额外动画效果 ==================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.card-icon {
    animation: float 3s ease-in-out infinite;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .title-icon {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .welcome-card,
    .result-card {
        padding: 25px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .stats-preview {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-footer {
        flex-direction: column;
    }

    .country-name {
        font-size: 1.8rem;
    }

    .roulette-wrapper {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .title {
        font-size: 1.6rem;
    }

    .welcome-card,
    .result-card {
        padding: 20px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 1.1rem;
    }
}

/* ==================== 世界地图样式 ==================== */
.world-map-container {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.map-controls {
    display: flex;
    gap: 10px;
}

.map-control-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-control-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.map-control-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.world-map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f8ff;
    position: relative;
}

.world-map svg {
    width: 100%;
    height: 100%;
}

.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.legend-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.legend-gradient {
    width: 200px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(to right, #e8f4f8, #ffb3c6, #ff6b9d, #c44569);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 抽签界面地图 */
.drawing-map-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto 30px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.drawing-country {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drawing-country.show {
    opacity: 1;
}

/* 结果界面地图 */
.result-map-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}

.world-map-mini {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f8ff;
}

.world-map-mini svg {
    width: 100%;
    height: 100%;
}

/* 地图提示框样式已在world-map.js中定义 */

/* 响应式地图 */
@media (max-width: 768px) {
    .world-map {
        height: 300px;
    }

    .drawing-map-container {
        height: 350px;
    }

    .world-map-mini {
        height: 200px;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-controls {
        width: 100%;
        justify-content: space-between;
    }

    .map-control-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .legend-gradient {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .world-map-container {
        padding: 20px;
    }

    .map-title {
        font-size: 1.2rem;
    }

    .world-map {
        height: 250px;
    }

    .drawing-map-container {
        height: 300px;
        padding: 15px;
    }

    .world-map-mini {
        height: 150px;
    }

    .map-control-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .map-control-btn i {
        display: none;
    }
}

/* ==================== 分享弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
    z-index: 2;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.share-preview {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

#share-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    /* 允许移动端长按保存 */
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
    pointer-events: auto;
}

/* 分享图片容器 - 用于显示转换后的图片 */
#share-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    /* 允许移动端长按保存 */
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
    pointer-events: auto;
    /* 调试：添加边框确认图片存在 */
    border: 2px solid #4CAF50;
}

.share-hint {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 15px;
    opacity: 0.8;
}

.share-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* ==================== 十连抽结果界面 ==================== */
.ten-draw-container {
    max-width: 1200px;
    width: 100%;
}

.ten-draw-header {
    text-align: center;
    margin-bottom: 30px;
}

.ten-draw-title {
    font-size: 2.5rem;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.ten-draw-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ten-draw-map-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ten-draw-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ten-draw-result-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ten-draw-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.ten-draw-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.ten-draw-result-rank {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ten-draw-result-flag {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.ten-draw-result-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
}

.ten-draw-result-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ten-draw-result-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.ten-draw-result-stat-label {
    color: var(--text-secondary);
}

.ten-draw-result-stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

.ten-draw-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ten-draw-footer .btn {
    flex: 1;
    min-width: 150px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 20px;
    }

    .share-actions {
        flex-direction: column;
    }

    .share-actions .btn {
        max-width: 100%;
    }

    .ten-draw-results {
        grid-template-columns: 1fr;
    }

    .ten-draw-footer {
        flex-direction: column;
    }

    .ten-draw-footer .btn {
        width: 100%;
    }

    .button-group {
        gap: 12px;
    }

    .button-group .btn-large {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .ten-draw-title {
        font-size: 2rem;
    }

    .ten-draw-subtitle {
        font-size: 1rem;
    }

    .welcome-card {
        padding: 25px 20px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 0.95rem;
    }
}

