/* 黑客帝国风格样式 - Matrix Theme */

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

/* 代码雨背景 */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

.matrix-rain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 0, 0.1) 100%);
    animation: matrixFade 2s ease-in-out infinite alternate;
}

@keyframes matrixFade {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

body {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    line-height: 1.6;
    color: #00ff00;
    background: #000;
    overflow-x: hidden;
    position: relative;
}

/* 毛玻璃效果容器 */
.glass-container {
    background: rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 255, 0, 0.1);
}

/* 发光效果 */
.glow {
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}

.glow-border {
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px #00ff00, inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 导航栏 */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 2px 20px rgba(0, 255, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', monospace;
}

.nav-logo i {
    margin-right: 10px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #00ff00;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 15px #ffffff, 0 0 25px #00ff00;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #00ff00;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px #00ff00;
}

/* 主要内容 */
.main-content {
    margin-top: 70px;
    position: relative;
    z-index: 1;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 50, 0, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    margin: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 0, 0.05) 50%, transparent 70%);
    animation: scan 3s linear infinite;
}

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

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
    font-family: 'Courier New', monospace;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00; }
    to { text-shadow: 0 0 30px #00ff00, 0 0 60px #00ff00, 0 0 80px #00ff00; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #ffffff;
    font-family: 'Courier New', monospace;
}

.challenge-info {
    background: rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
    font-family: 'Courier New', monospace;
}

.challenge-info p {
    color: #00ff00;
    margin: 10px 0;
    text-shadow: 0 0 5px #00ff00;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    background: rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    font-family: 'Courier New', monospace;
}

.stat-label {
    color: #ffffff;
    font-size: 0.9rem;
    margin-top: 5px;
    text-shadow: 0 0 5px #ffffff;
    font-family: 'Courier New', monospace;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    color: #000;
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    text-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 10px #00ff00;
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    transform: translateY(-2px);
}

/* 搜索区域 */
.search-section {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    margin: 20px;
    padding: 30px;
    position: relative;
}

.search-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px #00ff00;
}

.search-box input::placeholder {
    color: rgba(0, 255, 0, 0.6);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.6);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
    border-color: #ffffff;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px #00ff00;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

/* 拼图区域 */
.puzzles-section {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    margin: 20px;
    padding: 30px;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-header h2 {
    color: #00ff00;
    font-size: 2rem;
    text-shadow: 0 0 15px #00ff00;
    font-family: 'Courier New', monospace;
}

.puzzle-count {
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #ffffff;
    font-family: 'Courier New', monospace;
}

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

.puzzle-card {
    background: rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.puzzle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s;
}

.puzzle-card:hover::before {
    left: 100%;
}

.puzzle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

.puzzle-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.puzzle-address {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #ffffff;
}

.puzzle-balance {
    color: #ffff00;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #ffff00;
    margin-bottom: 10px;
}

.puzzle-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.puzzle-status.solved {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px #00ff00;
}

.puzzle-status.unsolved {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 5px #ff0000;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 5px;
    color: #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #00ff00;
}

.pagination button:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.pagination button.active {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* 统计区域 */
.stats-section {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px;
    margin: 20px;
    padding: 30px;
    position: relative;
}

.stats-section h2 {
    color: #00ff00;
    font-size: 2rem;
    text-shadow: 0 0 15px #00ff00;
    font-family: 'Courier New', monospace;
    margin-bottom: 30px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    border-color: #00ff00;
}

.stat-icon {
    font-size: 2rem;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.stat-label {
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 0 10px #ffffff;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.stat-desc {
    color: #cccccc;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #cccccc;
    font-family: 'Courier New', monospace;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid #00ff00;
    border-radius: 15px;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    position: relative;
}

.modal-header {
    background: rgba(0, 255, 0, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    font-family: 'Courier New', monospace;
    margin: 0;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #00ff00;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px #00ff00;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff;
}

.modal-body {
    padding: 30px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

/* 模态框内容样式 */
.puzzle-details {
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.detail-item label {
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 5px #00ff00;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item span,
.detail-item code {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.address-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
}

.btc-symbol {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px #ffd700;
}

.balance {
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 0 10px #ffd700;
}

.key-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.key-display code {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.progress-container {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 5px #ffffff;
    font-size: 0.8rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.solved {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px #00ff00;
}

.status-badge.unsolved {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    text-shadow: 0 0 5px #ff0000;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
}

.btn-small i {
    margin-right: 5px;
}

/* 加载指示器 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.loading.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-top: 3px solid #00ff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #00ff00;
    margin-top: 20px;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section li {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.footer-section a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
}

.footer-section a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    color: #cccccc;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px #cccccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .puzzles-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-width: 95%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .detail-item {
        padding: 10px;
    }
    
    .key-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .key-display code {
        min-width: 100%;
        margin-top: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 代码雨动画脚本 */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
    overflow: hidden;
}

.matrix-rain::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 0, 0.1) 0%, transparent 50%);
    animation: matrixPulse 4s ease-in-out infinite alternate;
}

@keyframes matrixPulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.3; }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
    box-shadow: 0 0 10px #00ff00;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff;
}

/* 选择文本样式 */
::selection {
    background: rgba(0, 255, 0, 0.3);
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff;
}

/* 焦点样式 */
*:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 特殊效果 */
.matrix-text {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    animation: matrixGlow 2s ease-in-out infinite alternate;
}

@keyframes matrixGlow {
    from { text-shadow: 0 0 10px #00ff00; }
    to { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00; }
}

/* 数据流效果 */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}