* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", sans-serif;
}
/* 全局响应式：手机占满屏幕，电脑居中固定宽度 */
body {
    min-height: 100vh;
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.game-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    background: #2d2d2d;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #444;
    overflow: hidden;
}
/* 标题样式 */
.game-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 5px;
}
.game-subtitle {
    text-align: center;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}
/* 属性状态栏：自适应分行，手机单列，电脑多列 */
.status-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.status-item {
    flex: 1 1 calc(50% - 4px);
    background: #3d3d3d;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
}
.status-item span {
    display: block;
    height: 6px;
    background: #555;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}
.status-item span b {
    display: block;
    height: 100%;
    border-radius: 3px;
}
/* 各属性进度条颜色区分 */
.health-bar { background: #e74c3c; }
.spirit-bar { background: #3498db; }
.money-bar { background: #2ecc71; }
.credit-bar { background: #f1c40f; }
.social-bar { background: #9b59b6; }
.job-bar { background: #1abc9c; }
/* 斩杀线警告 */
.warn-box {
    background: #c0392b;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}
/* 事件区 */
.event-box {
    background: #3d3d3d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
.event-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}
.event-desc {
    font-size: 15px;
    color: #eee;
    line-height: 1.6;
}
/* 选项按钮区：自适应分行 */
.option-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.option-btn {
    flex: 1 1 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #3498db;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.option-btn:hover { background: #2980b9; }
.option-tip {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}
/* 结局弹窗蒙层 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.result-content {
    width: 90%;
    max-width: 600px;
    background: #2d2d2d;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #ff6b6b;
}
.result-type {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
.result-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
}
.result-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.result-egg {
    font-size: 14px;
    color: #ccc;
    font-style: italic;
    border-left: 3px solid #ff6b6b;
    padding-left: 10px;
    margin-bottom: 20px;
}
.restart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.restart-btn:hover { background: #c0392b; }
/* 手机端字体适配 */
@media (max-width: 480px) {
    .game-title { font-size: 20px; }
    .event-title { font-size: 16px; }
    .event-desc { font-size: 14px; }
}

.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;
    }
}

.secondary-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.secondary-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn-small {
    background: #3498db;
}

.share-btn-small:hover {
    background: #2980b9;
}

.suggest-btn-small {
    background: #f39c12;
}

.suggest-btn-small:hover {
    background: #e67e22;
}

.copy-feedback {
    display: none;
    background: #2ecc71;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

.page-footer-spacer {
    height: 80px;
}

.visitor-counter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 20px;
    border-top: 2px solid #333;
    background: #1a1a1a;
    z-index: 999;
}

.counter-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.counter-wrapper {
    display: inline-block;
}

.counter-wrapper img {
    display: block;
    margin: 0 auto;
}

.placeholder-text {
    color: #666;
    font-size: 13px;
}

.event-box {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-content {
    animation: slideInBounce 5.4s cubic-bezier(0.58, 0.28, 0.235, 1);
    transform-origin: top center;
}

@keyframes slideInBounce {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    50% {
        transform: translateY(30%);
        opacity: 1;
    }
    70% {
        transform: translateY(-15%);
    }
    85% {
        transform: translateY(7%);
    }
    93% {
        transform: translateY(-3%);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
