/* 悬浮 WhatsApp 按钮 */
.whatsapp-float {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1200;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 2rem;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
}

.whatsapp-button:hover {
    background: #1ebe57;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* 悬浮返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 32px;
    bottom: 100px;
    z-index: 1200;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: #fff;
}

@media (max-width: 576px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
    }

    .back-to-top {
        right: 16px;
        bottom: 72px;
    }
}

/* 主页主要图标放大 */
.category-icon i,
.service-icon i,
.certification-badge i,
.contact-icon i {
    font-size: 3rem !important;
}

/* 响应式调整 */
@media (max-width: 768px) {

    .category-icon i,
    .service-icon i,
    .certification-badge i,
    .contact-icon i {
        font-size: 2.5rem !important;
    }
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

/* AnRui Bio - Base Styles */

/* CSS Variables for consistent theming */
:root {
    /* --primary-color: #667eea; */
    --primary-color: #343a40;
    /* --secondary-color: #764ba2; */
    --secondary-color: #336900;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --table-column-bg:rgba(0, 214, 196, 0.3);

    --gradient-primary: linear-gradient(135deg, #92ea66 0%, #4b89a2 100%);
    --gradient-secondary: linear-gradient(135deg, #4ba25e 0%, #66eab3 100%);

    /* --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #764ba2 0%, #667eea 100%); */

    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --box-shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
    overflow-x: hidden; /* 防止横向滚动 */
}

html {
    overflow-x: hidden; /* 防止横向滚动 */
}

/* 确保所有行和容器不会溢出 */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* .container,
.container-fluid {
    overflow-x: hidden;
} */

img {
    max-width: 100%;
    height: auto;
}

.lead {
    font-weight: 500;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--light-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Navigation Styles */
.navbar {
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    /* z-index: 1050; 确保导航栏在最上层 */
}

.navbar-custom {
    background: rgba(102, 126, 234, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* 确保下拉菜单在正确的层级 */
.navbar .dropdown-menu {
    z-index: 1060;
    margin-top: 0;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.navbar .dropdown-item {
    padding: 0.7rem 1.5rem;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: inline-block;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

/* 手机端导航栏优化 */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-logo {
        height: 32px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .navbar-nav .btn {
        margin-top: 0.5rem;
        width: 100%;
        font-size: 0.9rem;
    }

    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-logo {
        height: 28px;
    }

    .brand-text {
        font-size: 0.9rem;
    }
}


/* Cards */
.card {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badges */
.badge {
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: #fff !important;
    text-decoration: none;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    color: #adb5bd;
    font-size: 0.9rem;
}

.contact-info .contact-item i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-info a {
    color: #adb5bd;
}

/* 移动端footer优化 */
@media (max-width: 768px) {
    footer .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* 调整为2列布局 */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    footer .col-md-6,
    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-lg-4 {
        margin-bottom: 1.5rem !important;
    }

    footer h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem !important;
    }

    footer .footer-logo-img {
        height: 45px;
    }

    footer .text-muted,
    footer .footer-links a,
    footer .contact-info {
        font-size: 0.85rem;
    }

    /* 简化移动端布局 */
    footer .row > div {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* 联系信息更紧凑 */
    .contact-info .contact-item {
        margin-bottom: 0.5rem !important;
        font-size: 0.85rem;
    }

    .contact-info .contact-item span,
    .contact-info .contact-item a {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    footer .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* 小屏幕保持2列布局 */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    footer .col-md-6,
    footer .col-lg-2,
    footer .col-lg-3,
    footer .col-lg-4 {
        margin-bottom: 1rem !important;
    }

    footer h5,
    footer h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }

    footer .footer-logo-img {
        height: 35px;
    }

    footer .text-muted,
    footer .footer-links a,
    footer .contact-info {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .footer-links li {
        margin-bottom: 0.3rem;
    }

    footer .row > div {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* 联系信息进一步压缩 */
    .contact-info .contact-item {
        margin-bottom: 0.4rem !important;
        font-size: 0.75rem;
    }

    .contact-info .contact-item i {
        font-size: 0.8rem;
    }

    .contact-info .contact-item span,
    .contact-info .contact-item a {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* 公司介绍文字更紧凑 */
    footer .text-muted {
        margin-bottom: 0.5rem;
    }
}

/* Utility Classes */
.gradient-bg {
    background: var(--gradient-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: var(--box-shadow) !important;
}

.shadow-strong {
    box-shadow: var(--box-shadow-lg) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius-lg);
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.container {
    max-width: 80%;
}

@media (max-width: 992px) {
    .container {
        max-width: 90%; /* 平板设备 */
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%; /* 手机端使用更多宽度 */
    }
}

.footer-bottom {
    background-color: var(--primary-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-bottom div.row.align-items-center {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-bottom div.row.align-items-center {
        width: 95%;
        font-size: 0.875rem;
    }

    .footer-logo-img {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .footer-bottom div.row.align-items-center {
        width: 100%;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }

    .footer-logo-img {
        height: 35px;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* 修复手机端按钮和间距 */
    .d-flex.gap-3 {
        gap: 0.75rem !important;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem !important;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* 小屏幕额外优化 */
    .lead {
        font-size: 1rem;
    }

    .d-flex.flex-wrap {
        justify-content: center;
    }
}

/* Print Styles */
@media print {

    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

.pb-3 {
    padding: 0.5rem !important;
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* 手机端section间距优化 */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-4 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    section {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}