:root {
    --primary-color: #4F46E5;
    --secondary-color: #06B6D4;
    --background-color: #0F172A;
    --card-bg-color: #1E293B;
    --text-color: #E2E8F0;
    --text-secondary: #94A3B8;
    --accent-color: #10B981;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    font-weight: 300;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.subtitle::before,
.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color));
}

.subtitle::before {
    right: 100%;
}

.subtitle::after {
    left: 100%;
    background: linear-gradient(to left, transparent, var(--secondary-color));
}

.prompt-link-container {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.prompt-link {
    display: block;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0 auto;
    max-width: 500px;
}

.prompt-link:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

main {
    flex: 1;
    padding: 2rem;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(30, 41, 59, 0.8), rgba(0, 0, 0, 0.4));
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), var(--secondary-color), transparent);
    opacity: 0.5;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    position: relative;
    z-index: 2;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.badges img {
    height: 28px;
    transition: transform 0.2s ease;
}

.badges a:hover img {
    transform: translateY(-2px);
}

.busuanzi-count .badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.busuanzi-count .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.icon-eye {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMiA0LjVDNyA0LjUgMi43MyA3LjYxIDEgMTJjMS43MyA0LjM5IDYgNy41IDExIDcuNXM5LjI3LTMuMTEgMTEtNy41Yy0xLjczLTQuMzktNi03LjUtMTEtNy41ek0xMiAxN7MtMi43NiAwLTUtMi4yNC01LTVzMi4yNC01IDUtNSA1IDIuMjQgNSA1LTIuMjQgNS01IDV6bTAtOGMtMS42NiAwLTMgMS4zNC0zIDNzMS4zNCAzIDMgMyAzLTEuMzQgMy0zLTEuMzQtMy0zLTN6Ii8+PC9zdmc+");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

footer a:hover {
    color: white;
    text-shadow: 0 0 8px var(--secondary-color);
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Model Cards */
.models-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    width: 100%;
}

@media (max-width: 1800px) {
    .models-container {
        justify-content: center;
    }
}

.model-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    width: 400px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.model-frame {
    width: 400px;
    height: 400px;
    border: none;
    background-color: #111827;
    display: block;
    overflow: hidden;
}

.model-info {
    padding: 1.25rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.model-info h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Model Detail */
#modelDetailContainer {
    display: none;
}

.model-detail {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.model-detail.active {
    display: block;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
}

.model-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.back-button svg {
    width: 18px;
    height: 18px;
}

.visualization-section {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.detail-frame {
    width: 400px;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.explanation-section {
    padding: 1.5rem;
}

.explanation-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.detail-content {
    line-height: 1.7;
}

/* GitHub Markdown Style Overrides */
.markdown-body {
    background-color: transparent !important;
    color: var(--text-color) !important;
    font-family: 'Inter', sans-serif !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--text-color) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.markdown-body a {
    color: var(--secondary-color) !important;
}

.markdown-body hr {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.markdown-body blockquote {
    color: var(--text-secondary) !important;
    border-left-color: var(--primary-color) !important;
}

.markdown-body code {
    font-family: 'Space Mono', monospace !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
}

.markdown-body pre {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

/* 响应式设计 */
@media (max-width: 1800px) {
    main {
        max-width: 1400px;
    }
}

@media (max-width: 1400px) {
    main {
        max-width: 1000px;
    }
}

@media (max-width: 1000px) {
    main {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .models-container {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .back-button {
        align-self: flex-start;
    }
    
    .visualization-section {
        padding: 1rem;
    }
    
    .detail-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
}