* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 头部 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* GitHub 链接 */
.github-link {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.github-link svg {
    transition: transform 0.3s ease;
}

.github-link:hover svg {
    transform: rotate(360deg);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 1rem;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

/* 主内容 */
.main-content {
    padding: 3rem 0;
}

.intro {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.intro h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.intro p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 体验账号区域 */
.demo-credentials {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid #ffc107;
}

.demo-credentials h3 {
    color: #f57c00;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.credentials-tip {
    color: #795548;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.credential-card {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.credential-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.credential-card:active {
    transform: scale(0.98);
}

.credential-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.credential-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.copy-hint {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.25rem;
}

.credential-card.copied .copy-hint {
    color: var(--success-color);
}

.credential-card.copied .copy-hint::after {
    content: ' ✓';
}

/* 应用网格 */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 应用卡片 */
.app-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.app-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    border-radius: 12px;
    color: white;
}

.app-title {
    flex: 1;
}

.app-title h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.app-title .app-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.app-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

.app-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #666;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.app-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--danger-color);
    animation: blink 1s infinite;
}

.status-dot.checking {
    background: var(--warning-color);
}

.status-dot.online {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

.status-text {
    font-size: 0.85rem;
    color: #666;
}

/* 离线状态文本样式 */
.app-card[data-status="offline"] .status-text {
    color: var(--danger-color);
    font-weight: 500;
}

/* 在线状态文本样式 */
.app-card[data-status="online"] .status-text {
    color: var(--success-color);
    font-weight: 500;
}

.btn-visit {
    padding: 0.5rem 1.5rem;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-visit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-visit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .github-link {
        position: static;
        display: inline-flex;
        margin-bottom: 1rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-credentials {
        padding: 1rem 1.5rem;
    }
}

