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

:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #e8f0ff;
    --bg-light: #f5f7fc;
    --text-dark: #1a2634;
    --text-gray: #7a879b;
    --border: #e4e9f0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 30px -12px rgba(0, 102, 255, 0.12);
    --radius: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

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

.top-bar {
    background: #0f172a;
    color: #94a3b8;
    padding: 10px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-left span {
    margin-right: 24px;
}

.top-left i, .top-right i {
    margin-right: 6px;
}

.top-right a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
}

.top-right a:hover {
    color: #fff;
}

.header {
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #00a6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 32px;
    transition: color 0.2s;
}

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

.page-title {
    background: linear-gradient(135deg, #fff, var(--bg-light));
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.page-title p {
    color: var(--text-gray);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.quick-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.quick-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), #d4e4ff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.quick-card h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.quick-card p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

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

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.product-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.product-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 12px 0;
    line-height: 1.5;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.product-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-gray);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 28px;
    border-radius: 30px;
    background: #f0f2f8;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.category-tab.active {
    background: var(--primary);
    color: #fff;
}

.form-container {
    max-width: 460px;
    margin: 60px auto;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.alert {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background: #e0f2fe;
    color: #0369a1;
}

.console-layout {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    min-height: 500px;
}

.console-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.console-sidebar .menu-item {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.console-sidebar .menu-item:hover,
.console-sidebar .menu-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.console-content {
    flex: 1;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.dashboard-card h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.dashboard-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.server-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

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

.server-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    background: var(--bg-light);
    padding: 10px 12px;
    border-radius: 12px;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.data-table {
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border-collapse: collapse;
}

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

.data-table th {
    background: #f8fafc;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #059669;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-info {
    background: var(--primary-light);
    color: var(--primary);
}

.ticket-reply {
    background: var(--primary-light);
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 12px;
}

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 30px;
    margin-top: 60px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .quick-grid, .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .console-layout {
        flex-direction: column;
    }
    .console-sidebar {
        width: 100%;
    }
    .top-bar {
        display: none;
    }
    .nav a {
        margin-left: 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
/* 借鉴自依绫云的样式 */
.hero-slider {
    position: relative;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 100%);
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.hero-slider h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-slider p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.slide-buttons .btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    margin-left: 15px;
}

.quick-links {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quick-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0,102,255,0.1);
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f0ff, #d4e4ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #0066ff;
}

.quick-card h4 {
    margin-bottom: 8px;
    color: #1a2634;
}

.quick-card p {
    font-size: 0.8rem;
    color: #7a879b;
}

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-header p {
    color: #7a879b;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 28px;
    border-radius: 40px;
    background: #f0f2f8;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.tab-btn.active,
.tab-btn:hover {
    background: #0066ff;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef2f8;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0,102,255,0.12);
    border-color: #cde0ff;
}

.product-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e8f0ff;
    color: #0066ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-right: 60px;
}

.product-card p {
    color: #7a879b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 16px;
}

.product-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #7a879b;
}

.product-btn {
    color: #0066ff;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-btn i {
    transition: transform 0.2s;
}

.product-card:hover .product-btn i {
    transform: translateX(5px);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #eef2f8;
    transition: all 0.2s;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.solution-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8f0ff, #d4e4ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #0066ff;
}

.solution-card h4 {
    margin-bottom: 8px;
}

.solution-card p {
    font-size: 0.8rem;
    color: #7a879b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e8f0ff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #0066ff;
}

.feature-card h4 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.8rem;
    color: #7a879b;
}

@media (max-width: 768px) {
    .quick-grid,
    .solutions-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hero-slider h2 {
        font-size: 1.8rem;
    }
    .hero-slider {
        padding: 60px 0;
    }
    .product-tabs {
        gap: 8px;
    }
    .tab-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}
