:root {
    /* Base Variables - Refined for Chinese Enterprise Aesthetic */
    --primary-color: #1677ff; /* Ant Design Blue - Very standard for Chinese Enterprise UI */
    --primary-hover: #4096ff;
    --secondary-color: #64748b;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fallback Variables to prevent invisible text if data-theme is missing */
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --primary-glow: rgba(22, 119, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --nav-bg: rgba(255, 255, 255, 0.9);
}
/* Admin Modals */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.admin-modal.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.close-modal:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--bg-color);
    border-radius: 0 0 12px 12px;
}

.btn-cancel {
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-cancel:hover {
    border-color: var(--text-muted);
}

.btn-confirm {
    padding: 10px 20px;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-confirm:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-color);
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* Tech Blue Theme (Default/Dark) */
[data-theme="dark"] {
    --bg-color: #00091d; /* Deep Night Blue */
    --card-bg: #0a162d;
    --text-color: #e6edf3;
    --text-muted: #8b949e;
    --border-color: #21262d;
    --primary-glow: rgba(22, 119, 255, 0.4);
    --glass-bg: rgba(10, 22, 45, 0.85);
    --nav-bg: rgba(0, 9, 29, 0.9);
}

/* Light Theme - Clean and Professional */
[data-theme="light"] {
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --primary-glow: rgba(22, 119, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --nav-bg: rgba(255, 255, 255, 0.9);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    background: none;
    border: none;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--card-bg);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(22, 119, 255, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(22, 119, 255, 0.05), transparent 40%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

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

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-color) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-content .description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.8;
}

.hero-content .description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.hero-feature-item i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
}

.cta-buttons .btn {
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 15px;
}

.hero-image {
    flex: 1.2;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Sections Common */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 70px;
    font-weight: 800;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(22, 119, 255, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Gallery */
.gallery-item {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.gallery-item.reverse {
    flex-direction: row-reverse;
}

.gallery-text {
    flex: 1;
}

.gallery-text h3 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.gallery-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.gallery-image {
    flex: 1.5;
}

.gallery-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-image:hover img {
    transform: scale(1.03) translateY(-10px);
}

/* Comparison Table */
/* Comparison Table - Professional Enterprise Style */
.comparison-table-container {
    background-color: #ffffff; /* Explicit white background */
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .comparison-table-container {
    background-color: #0a162d;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, 
.comparison-table td {
    padding: 20px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: #1f2937 !important; /* Explicit dark color */
    vertical-align: middle;
    font-size: 1rem;
}

[data-theme="dark"] .comparison-table th, 
[data-theme="dark"] .comparison-table td {
    color: #e6edf3 !important; /* Explicit light color */
}

.comparison-table th {
    background-color: #f8fafc;
    font-weight: 700;
}

[data-theme="dark"] .comparison-table th {
    background-color: rgba(255, 255, 255, 0.05);
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background-color: rgba(22, 119, 255, 0.05);
    color: #1677ff !important;
    font-weight: 700;
}

[data-theme="dark"] .comparison-table th.highlight,
[data-theme="dark"] .comparison-table td.highlight {
    background-color: rgba(22, 119, 255, 0.1);
    color: #4096ff !important;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    padding-left: 32px;
    width: 40%;
    font-weight: 500;
}

.comparison-table td i.fa-check-circle {
    color: #52c41a;
    font-size: 1.25rem;
}

.comparison-table td i.fa-times-circle {
    color: #ff4d4f;
    opacity: 0.4;
    font-size: 1.25rem;
}

/* Pricing */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(22, 119, 255, 0.2);
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.03), var(--card-bg));
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.07) translateY(-10px);
    box-shadow: 0 25px 50px rgba(22, 119, 255, 0.3);
}

.pricing-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-header .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.card-body ul {
    margin-bottom: 40px;
}

.card-body li {
    margin-bottom: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-body li i {
    color: var(--primary-color);
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: var(--transition);
}

.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(22, 119, 255, 0.4);
}

.pricing-card.featured .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 119, 255, 0.5);
}

/* Deployment Section - Refined Timeline */
.deploy-steps {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 40px;
}

.deploy-steps::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.step {
    position: relative;
    padding-bottom: 40px;
    padding-left: 40px;
}

.step:last-child {
    padding-bottom: 0;
}

.step-number {
    position: absolute;
    left: -40px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    z-index: 1;
    transform: translateX(-50%);
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: #1f2937 !important;
}

[data-theme="dark"] .step h3 {
    color: #e6edf3 !important;
}

.step p {
    color: #6b7280 !important;
    margin-bottom: 16px;
    line-height: 1.6;
}

[data-theme="dark"] .step p {
    color: #8b949e !important;
}

.step pre {
    margin-top: 12px;
    background-color: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .step pre {
    background-color: #0d1117;
}

.step code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: #0969da;
}

[data-theme="dark"] .step code {
    color: #a5d6ff;
}

/* Deploy Tabs */
.deploy-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.deploy-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.deploy-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.deploy-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.deploy-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input, .form-textarea, select.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

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

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-muted);
}

.footer-contact h4, .footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Login Screen */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    animation: float 20s ease-in-out infinite reverse;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

[data-theme="dark"] .login-card {
    background: rgba(10, 22, 45, 0.95);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h2 {
    text-align: center;
    margin-bottom: 32px;
    color: #1f2937;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

[data-theme="dark"] .login-card h2 {
    color: #e6edf3;
}

.login-card h2 i {
    color: var(--primary-color);
}

/* Admin Layout */
.admin-body {
    background: var(--bg-color);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.admin-sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.admin-logo {
    padding: 0 24px 24px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav-item {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.admin-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
}

[data-theme="dark"] .admin-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active {
    background-color: rgba(22, 119, 255, 0.1);
    color: var(--primary-color);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px; /* Width of sidebar */
    padding: 40px;
    max-width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-content-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.admin-table th {
    font-weight: 600;
    background-color: var(--bg-color);
    color: var(--text-muted);
}

.admin-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .admin-table tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    margin-right: 8px;
}

.btn-edit {
    background-color: rgba(22, 119, 255, 0.1);
    color: var(--primary-color);
}

.btn-edit:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-delete {
    background-color: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
}

.btn-delete:hover {
    background-color: #ff4d4f;
    color: white;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Re-adding previous responsive styles that were replaced */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-features {
        justify-content: center;
    }

    .gallery-item {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .gallery-item.reverse {
        flex-direction: column;
    }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        padding-left: 16px;
    }

    .deploy-tabs {
        flex-direction: column;
    }

    .deploy-tab {
        width: 100%;
    }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 32px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(22, 119, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(22, 119, 255, 0.3);
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 8px;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.chart-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.chart-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Content Views */
.content-view {
    animation: fadeIn 0.3s ease;
}

/* Utility Classes */
.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--error-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Version Timeline */
.version-timeline {
    position: relative;
    padding-left: 40px;
}

.version-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.version-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.version-item:last-child {
    margin-bottom: 0;
}

.version-badge {
    position: absolute;
    left: -40px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.version-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.version-content:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.version-content h4 {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.version-content ul {
    list-style: none;
    padding: 0;
}

.version-content li {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.5);
}

.scroll-to-top.show {
    display: flex;
}


/* 美化通知样式 */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.custom-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-notification i {
    font-size: 20px;
}

.custom-notification.success {
    border-left: 4px solid #52c41a;
    color: #52c41a;
}

.custom-notification.success i {
    color: #52c41a;
}

.custom-notification.error {
    border-left: 4px solid #ff4d4f;
    color: #ff4d4f;
}

.custom-notification.error i {
    color: #ff4d4f;
}

.custom-notification.warning {
    border-left: 4px solid #faad14;
    color: #faad14;
}

.custom-notification.warning i {
    color: #faad14;
}

.custom-notification.info {
    border-left: 4px solid #1890ff;
    color: #1890ff;
}

.custom-notification.info i {
    color: #1890ff;
}

.custom-notification span {
    color: var(--text-color);
}

[data-theme="dark"] .custom-notification {
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* 美化确认对话框样式 */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
}

.confirm-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.confirm-box.show {
    transform: scale(1);
    opacity: 1;
}

.confirm-icon {
    text-align: center;
    margin-bottom: 20px;
}

.confirm-icon i {
    font-size: 48px;
    color: #faad14;
}

.confirm-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.confirm-message {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.confirm-cancel {
    background: var(--border-color);
    color: var(--text-color);
}

.confirm-cancel:hover {
    background: #d9d9d9;
}

.confirm-ok {
    background: #ff4d4f;
    color: white;
}

.confirm-ok:hover {
    background: #ff7875;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

[data-theme="dark"] .confirm-box {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .confirm-cancel {
    background: #434343;
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .confirm-cancel:hover {
    background: #595959;
}


/* 在线演示链接样式 */
.nav-links .demo-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links .demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-links .demo-link i {
    font-size: 14px;
}

[data-theme="dark"] .nav-links .demo-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* 演示按钮样式 */
.btn-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-demo:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

.btn-demo i {
    margin-right: 8px;
}

.btn-demo-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-demo-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.pricing-buttons .btn {
    width: 100%;
}

[data-theme="dark"] .btn-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] .btn-demo-secondary {
    color: #667eea;
    border-color: #667eea;
}

[data-theme="dark"] .btn-demo-secondary:hover {
    background: #667eea;
    color: white;
}
