/* 优客智品 - 全站统一样式表 */

/* ========== 全局样式 ========== */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #1e3a5f;
    --accent-color: #4a90e2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #fff;
}

.hidden{
    display: none !important;
}

/* ========== 导航栏样式 ========== */
.navbar {
    background-color: #fff !important;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    ---background-color: var(--primary-color);
    ---color: #fff !important;
    border-bottom: 4px solid var(--primary-color);
    border-radius: 0px;
}

/* ========== 英雄区域样式 ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ========== 卡片样式 ========== */
.custom-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.custom-card .card-header {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1.5rem;
}

.custom-card .card-body {
    padding: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    --color: var(--primary-color);
    margin-bottom: 1rem;
    color: darkorange;
}

/* ========== 按钮样式 ========== */
.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== 区块样式 ========== */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* ========== 页脚样式 ========== */
.footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* ========== 下载中心样式 ========== */
.download-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.download-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.download-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== 开发支持样式 ========== */
.doc-sidebar {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 15px 10px 10px 15px;
    position: sticky;
    top: 100px;
    height: 600px;
    overflow: auto;
}

.doc-sidebar h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
}

.doc-sidebar .api-menu li {
    list-style: none !important;
    min-height: 36px;
    font-size: 16px;
    width: 98%;
    cursor: pointer;
    line-height: 34px;
    padding-left: 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-sidebar .api-menu li a {
    padding-left: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #222;
}

.doc-sidebar .api-menu li:not(.has_sub) a {
    padding-left: 16px;
}

.doc-sidebar .api-menu li:hover {
    background-color: #eee;
}

.doc-sidebar .api-menu li.item-active,
.doc-sidebar .api-menu li.active {
    font-weight: 600;
}

.doc-sidebar .api-menu li.item-active:not(.has_sub)::before {
    content: "";
    position: absolute;
    margin-top: 18px;
    margin-left: -4px;
    transform: translateY(-50%);
    width: 8px;
    /* 圆点大小 */
    height: 8px;
    /* 圆点大小 */
    background-color: green;
    border-radius: 50%;
    /* 圆形 */
}

.doc-sidebar .api-menu li.item-active a {
    color: green !important;
}

.doc-sidebar .api-menu sp-grp {
    display: none;
}

.doc-sidebar .api-menu sp-grp.on {
    display: block !important;
}

.doc-sidebar .api-menu li.has_sub::before {
    content: "\f285";
    font-family: bootstrap-icons !important;
    font-size: 16px;
    font-weight: normal;
    color: #3c8dbc;
    margin-left: -10px;
    margin-right: 6px;
}

.doc-sidebar .api-menu li.has_sub.active::before {
    content: "\f282" !important;
    color: limegreen;
    margin-left: -8px;
    margin-right: 4px;
}

.doc-sidebar .api-menu li.level-2 {
    margin-left: 25px;
    width: calc(98% - 25px);
}

.doc-sidebar .api-menu li.level-3 {
    margin-left: 50px;
    width: calc(98% - 50px);
}

.doc-sidebar .api-menu li.level-4 {
    margin-left: 75px;
    width: calc(98% - 75px);
}


.doc-content {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.doc-content img {
    max-width: 98%;
    max-height: 900px;
}

.code-block {
    background-color: #f4f4f4;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ========== 系统日志样式 ========== */
.changelog-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.changelog-item::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% + 1rem);
    background-color: var(--border-color);
}

.changelog-item:last-child::after {
    display: none;
}

.changelog-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.changelog-version {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ========== 联系我们样式 ========== */
.contact-info-box {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.contact-info-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* ========== 代理商入口样式 ========== */
.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
}

.login-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.login-box h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* ========== 响应式样式 ========== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .doc-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease;
}

/* ========== 工具类 ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ========== 加载动画 ========== */
.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.icon-orange {
    color: darkorange !important;
}

.ql-align-center {
    text-align: center;
}