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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #1a202c;
    line-height: 1.6;
    font-size: 1rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #2d3748;
    border-bottom-color: #667eea;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
}

.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

.alert {
    background: #fef5e7;
    border: 1px solid #f6e05e;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-icon {
    color: #d69e2e;
    flex-shrink: 0;
}

.alert-danger {
    background: #fed7d7;
    border-color: #fc8181;
    color: #742a2a;
}

.gpu-info,.cpu-info {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 210px;
    overflow-y: auto;
    white-space: pre-line;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    overflow: hidden;
}

.card-header {
    background: #4a5568;
    color: white;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 14px;
}

.card-body {
    padding: 1rem;
}

.render-area {
    position: relative;
    background: #000;
    border-radius: 6px;
    margin-bottom: 1rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.render-placeholder {
    text-align: center;
    color: #718096;
}

.render-placeholder h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.render-placeholder p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.render-placeholder .small {
    font-size: 0.75rem;
    opacity: 0.8;
}

#testCanvas {
    width: 100%;
    height: 280px;
    display: block;
    border-radius: 6px;
}

.status {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}

.status.running {
    background: #ebf8ff;
    border-color: #3182ce;
    color: #2c5282;
    animation: pulse 2s infinite;
}

.status.completed {
    background: #f0fff4;
    border-color: #38a169;
    color: #276749;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-size: 13px;
    color: #4a5568;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s;
    color: #1a202c;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn {
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #3182ce;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2c5282;
    transform: translateY(-1px);
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c53030;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stats-card {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.chart-card {
    margin-bottom: 1.5rem;
}

.chart-container {
    height: 200px;
    position: relative;
    padding: 0.5rem;
}

.docs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.docs h3 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.docs h4 {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
}

.docs p,
.docs li {
    color: #718096;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.docs ul,
.docs ol {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box {
    background: #f8fafc;
    border-left: 3px solid #3182ce;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.feature-box ul {
    margin-left: 0;
    list-style: none;
}

.feature-box li {
    position: relative;
    padding-left: 1.5rem;
}

.feature-box li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
}

.footer {
    background: #2d3748;
    color: #cbd5e1;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 13px;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

#errorContainer {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #742a2a;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 13px;
    display: none;
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        gap: 0.5rem;
    }

    .navbar-nav.show {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 1rem;
    }

    .btn-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/*about*/
.page-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    padding: 2rem;
    margin-bottom: 2rem;
}
.page-content h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.page-content h3 {
    color: #4a5568;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
}

.page-content p {
    color: #718096;
    margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #718096;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: #f8fafc;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.contact-form {
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

@media (max-width: 768px) {
    .page-content {
        padding: 1.5rem;
    }
}

.responsive-feature-img {
    display: block;
    margin: 1.5rem auto;
    width: 60%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* back top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3182ce;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.back-to-top:hover {
    background: #66b1ff;
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.content {
    width: 80%;
    margin: 0 auto;
    padding: 50px 20px;
    font-size: 18px;
    line-height: 1.8;
}