/* 全局样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* 网站头部和导航栏 */
.site-header {
    position: relative;
    width: 100%;
}

.navbar-brand img {
    margin-right: 8px;
}

.navbar-dark.bg-primary {
    background-color: #0d6efd !important;
}

/* 新的导航栏样式 */
.modern-navbar {
    background: linear-gradient(120deg, #1e3c72, #2a5298);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    z-index: 1030;
}

.modern-navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/icons/pattern.png');
    opacity: 0.1;
    z-index: -1;
}

.modern-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    padding: 0;
    display: flex;
    align-items: center;
}

.brand-logo {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.modern-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.modern-navbar .nav-link:hover {
    color: #fff !important;
}

.modern-navbar .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

.modern-navbar .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    padding: 0.375rem 1rem;
}

.modern-navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 内容包装器 */
.content-wrapper {
    width: 100%;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(120deg, #1e3c72, #2a5298, #4776E6);
    color: white;
    padding: 80px 0 100px;
    margin-top: -1px; /* 确保与导航栏无缝连接 */
    position: relative;
    overflow: hidden;
}

.banner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/icons/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner .btn-light {
    background: #ff9800;
    color: white;
    border: 2px solid rgba(30, 60, 114, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner .btn-light:hover {
    background: #ff8000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 通知栏样式 */
.notification-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.notification-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    color: #6c757d;
}

.notification-icon {
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .notification-bar {
        padding: 6px 0;
    }
    
    .notification-content {
        font-size: 0.8rem;
    }
}

/* 页脚 */
.footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* 卡片样式 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
}

/* 首页特定样式 */
.hero-section {
    padding: 3rem 0;
    background-color: #e9ecef;
    margin-bottom: 2rem;
}

/* 查重页面样式 */
.system-card {
    width: 100%;
    margin-bottom: 20px;
    height: 100%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.system-card .card-header {
    background-color: #f8f9fa;
    border-bottom: none;
}

.system-card .card-body {
    display: flex;
    flex-direction: column;
}

/* 按钮样式 */
.btn-primary {
    background-color: #ff9800;
    border-color: #1e3c72;
    color: white;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #ff8000 !important;
    border-color: #2a5298 !important;
    color: white !important;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #1e3c72;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: #5a6268 !important;
    border-color: #2a5298 !important;
}

.system-option {
    width: 100%;
    transition: transform 0.2s;
}

.system-option:hover {
    transform: translateY(-5px);
}

.system-option .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff9800;
    margin-bottom: 0;
}

.system-option .price small {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 3px;
}

/* 报告页面样式 */
.similarity-chart-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.similarity-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
    }

    .banner {
        padding: 60px 0 80px;
    }
    
    .modern-navbar {
        padding: 0.6rem 0;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, 
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, 
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, 
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* 系统卡片移动端优化 */
    .system-card {
        margin-bottom: 15px;
    }
    
    .system-card .card-header {
        padding: 10px 12px;
    }
    
    .system-card .card-body {
        padding: 12px;
    }
    
    .system-card .card-title {
        font-size: 1rem;
    }
    
    .system-card .card-text {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .system-card .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .row {
        margin-left: -4px;
        margin-right: -4px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, 
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .system-card .card-header {
        padding: 8px 10px;
    }
    
    .system-card .card-body {
        padding: 10px;
    }
    
    .system-card .card-title {
        font-size: 0.95rem;
    }
    
    .system-card .card-text {
        font-size: 0.8rem;
    }
    
    .banner {
        padding: 40px 0 60px;
    }
}

/* 辅助类 */
.text-small {
    font-size: 0.875rem;
}

.bg-light-blue {
    background-color: #e6f2ff;
}

.text-highlight {
    background-color: #ffff00;
    padding: 0 2px;
}

/* 卡片渐变背景样式 */
.gradient-card-1 {
    background: linear-gradient(135deg, #6dd5ed, #2193b0);
    color: white;
}

.gradient-card-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.gradient-card-3 {
    background: linear-gradient(135deg, #5ee7df, #b490ca);
    color: white;
}

.gradient-card-4 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.gradient-card-1 .card-title,
.gradient-card-2 .card-title,
.gradient-card-3 .card-title,
.gradient-card-4 .card-title {
    color: white;
    font-weight: 600;
}

/* 微信悬浮按钮 */
.wechat-float-container {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.wechat-float-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #07c160, #10d876);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.wechat-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.wechat-text {
    font-size: 10px;
    line-height: 1;
}

.wechat-qrcode-container {
    position: absolute;
    right: 70px;
    bottom: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 150px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.wechat-float-container:hover .wechat-qrcode-container {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.wechat-qrcode-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wechat-qrcode-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.wechat-qrcode-text {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    line-height: 1.3;
}

/* 返回顶部按钮 */
.back-to-top-container {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 1000;
}

.back-to-top-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #6c757d, #495057);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.back-to-top-button.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top-button i {
    font-size: 20px;
    margin-bottom: 2px;
}

.top-text {
    font-size: 10px;
    line-height: 1;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .wechat-float-button, .back-to-top-button {
        width: 50px;
        height: 50px;
    }
    
    .wechat-icon {
        font-size: 20px;
    }
    
    .wechat-text {
        font-size: 9px;
    }
    
    .wechat-qrcode-container {
        width: 130px;
    }
    
    .wechat-qrcode-img {
        width: 110px;
        height: 110px;
    }
    
    .wechat-qrcode-text {
        font-size: 11px;
    }
}
