/* 全局样式 */
:root {
    --primary-blue: #0066ff;
    --primary-purple: #8a2be2;
    --primary-pink: #ff00ff;
    --dark-bg: #0a0a1a;
    --card-bg: rgba(20, 20, 40, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b0b0ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: rgba(10, 10, 30, 0.7);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(100, 100, 255, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--primary-blue); }
    to { text-shadow: 0 0 20px var(--primary-blue), 0 0 30px var(--primary-blue); }
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.logo-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.time-display i {
    color: var(--primary-blue);
}

#current-time {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-blue);
}

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

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 1.5s infinite;
}

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

/* 介绍区域 */
.intro-section {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(100, 100, 255, 0.2);
}

.intro-text h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.intro-text h2 i {
    color: var(--primary-blue);
}

.intro-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 卡片区域 */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    height: 400px;
    perspective: 1000px;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-front {
    background: var(--card-bg);
    border: 1px solid rgba(100, 100, 255, 0.2);
}

.card-back {
    background: rgba(30, 30, 60, 0.9);
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 100, 255, 0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

#card-key .card-icon {
    color: var(--primary-blue);
}

#card-shop .card-icon {
    color: var(--primary-purple);
}

#card-pay .card-icon {
    color: var(--primary-pink);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-tags span {
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
}

#card-key .card-tags span {
    background: rgba(0, 102, 255, 0.2);
    color: var(--primary-blue);
}

#card-shop .card-tags span {
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-purple);
}

#card-pay .card-tags span {
    background: rgba(255, 0, 255, 0.2);
    color: var(--primary-pink);
}

.card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.card-back ul {
    list-style: none;
    margin-bottom: 30px;
    flex: 1;
}

.card-back li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.4);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

#card-key .card-glow {
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.3), transparent 70%);
}

#card-shop .card-glow {
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.3), transparent 70%);
}

#card-pay .card-glow {
    background: radial-gradient(circle at center, rgba(255, 0, 255, 0.3), transparent 70%);
}

.card:hover .card-glow {
    opacity: 1;
}

/* 详情区域 */
.details-section {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 255, 0.2);
}

.detail-tabs {
    display: flex;
    background: rgba(10, 10, 30, 0.8);
    border-bottom: 1px solid rgba(100, 100, 255, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: white;
    background: rgba(0, 102, 255, 0.1);
}

.tab-btn.active {
    color: var(--primary-blue);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
}

.detail-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.tab-pane h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: white;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.info-item h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 控制台 */
.console {
    background: rgba(10, 10, 30, 0.8);
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid rgba(100, 100, 255, 0.2);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(5, 5, 20, 0.8);
    border-bottom: 1px solid rgba(100, 100, 255, 0.2);
}

.console-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
}

#clear-console {
    background: rgba(255, 50, 50, 0.2);
    color: #ff6666;
    border: 1px solid #ff6666;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#clear-console:hover {
    background: rgba(255, 50, 50, 0.4);
}

.console-output {
    height: 200px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.log-item {
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.time {
    color: #00ff00;
    margin-right: 15px;
}

.text {
    color: var(--text-secondary);
}

.console-input {
    display: flex;
    padding: 20px;
    background: rgba(5, 5, 20, 0.8);
    border-top: 1px solid rgba(100, 100, 255, 0.2);
}

#command-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 5px;
    padding: 12px 20px;
    color: white;
    font-family: 'Courier New', monospace;
    outline: none;
}

#command-input:focus {
    border-color: var(--primary-blue);
}

#send-command {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

#send-command:hover {
    background: var(--primary-purple);
}

/* 页脚 */
.footer {
    padding: 30px;
    background: rgba(10, 10, 30, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(100, 100, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.visitor-count {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.visitor-count i {
    color: var(--primary-blue);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .detail-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .card {
        height: 350px;
    }
    
    .console-output {
        height: 150px;
    }
}
}