/* 7BIT 7-Cal 科技感黑色主题样式 */

:root {
    --primary-color: #ffffff;
    --secondary-color: #cccccc;
    --accent-color: #666666;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: #222222;
    --glow-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 背景网格效果 */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

/* 左上角Logo */
.top-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    z-index: 100;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 80px 0 40px 0;
    margin-bottom: 60px;
}

.product-title {
    font-size: 72px;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    letter-spacing: 5px;
    background: linear-gradient(45deg, #ffffff 30%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主要内容 */
.main-content {
    min-height: calc(100vh - 300px);
}

.welcome-section {
    text-align: center;
    margin-bottom: 80px;
}

/* Glitch 效果 */
.glitch {
    font-size: 60px;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    letter-spacing: 5px;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--text-secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(50% 0 20% 0); }
    60% { clip-path: inset(80% 0 10% 0); }
    80% { clip-path: inset(10% 0 80% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, -2px); }
    80% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 2px); }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-2deg); }
    40% { transform: skew(1deg); }
    60% { transform: skew(-1deg); }
    80% { transform: skew(2deg); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 20px;
    letter-spacing: 2px;
}

/* 门户卡片 */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-secondary);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.portal-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.portal-card h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.portal-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.card-footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.enter-text {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 统计信息 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glitch {
        font-size: 36px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .product-name {
        font-size: 28px;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Portal Section 样式 */
.portal-section {
    text-align: center;
    margin: 60px 0;
}

.portal-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 改进的按钮样式 */
.btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-primary);
    background: var(--text-primary);
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-large {
    padding: 20px 60px;
    font-size: 18px;
}

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

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

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--text-primary);
    transition: all 0.3s ease;
}

.btn:hover {
    color: var(--text-primary);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn:hover::after {
    inset: -6px;
}

/* 按钮点击效果 */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.1);
}

/* 调整响应式设计中的按钮 */
@media (max-width: 768px) {
    .btn-large {
        padding: 16px 40px;
        font-size: 16px;
    }
    
    .top-logo {
        top: 20px;
        left: 20px;
        font-size: 24px;
    }
    
    .product-title {
        font-size: 48px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}