:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-dark: linear-gradient(135deg, #1e40af 0%, #0c4a6e 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    padding-top: 76px;
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* 字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem!important;
    display: flex;
    gap: 3px;
    align-items: center;
}

.me-2 {
    margin-right: 0rem!important;
}

.brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.brand-highlight {
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--gray-600) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 英雄区域 */
.hero-section {
    padding: 88px 0 88px;
    background: var(--gradient-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.3) 0%, rgba(14, 165, 233, 0.1) 50%, transparent 70%);
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-buttons {
    margin-top: 2.5rem;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transition: all 0.3s ease;
}

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #0c8ed1 100%);
}

/* 域名可视化 */
.domain-visual {
    position: relative;
    height: 400px;
    width: 100%;
}

.domain-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    cursor: pointer;
}

.domain-circle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.domain-circle-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.domain-circle-2 {
    top: 10%;
    right: 20%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.domain-circle-3 {
    bottom: 20%;
    right: 10%;
    animation: float 5s ease-in-out infinite 1s;
}

.domain-circle span {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.contact-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.contact-center i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #e0f2fe;
}

.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(0deg);
}

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

/* 特色部分 */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.icon-circle-1 {
    background: var(--gradient-primary);
}

.icon-circle-2 {
    background: var(--gradient-success);
}

.icon-circle-3 {
    background: var(--gradient-accent);
}

.icon-circle-4 {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* 域名展示部分 */
.domains-section {
    background: var(--gray-100);
}

.domain-categories {
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-badge {
    margin: 3px 0;
    padding: 5px 22px;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-badge:hover,
.category-badge.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.domain-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-card-top {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
}

.domain-card {
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    padding: .8rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.domain-extension {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.domain-name {
    overflow-wrap: break-word;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.domain-highlight {
    color: var(--primary-color);
}

.domain-status {
    height: 31px;
    display: inline-flex;
    align-items: center;
    font-size: var(--bs-btn-font-size);
    padding: 6.5px 12px;
    border-radius: 50px;
    background: var(--gray-100);
}

.domain-status.available {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.domain-status.available i {
    font-size: 0.5rem;
    margin-right: 6px;
}

.inquire-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* 联系表单部分 */
.contact-section {
    background: white;
}

.contact-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--primary-color);
}

.form-control {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--gray-100);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--gray-600);
}

/* 机器人验证滑块 */
.robot-verification {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 20px;
    border: 2px dashed var(--gray-300);
}

.slider-container {
    position: relative;
    height: 56px;
    background: var(--gray-200);
    border-radius: 28px;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--success-color) 0%, var(--success-color) 0%);
    border-radius: 28px;
}

.slider-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.slider-thumb i {
    color: var(--primary-color);
    font-size: 1.65rem;
}

.slider-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
    user-select: none;
    z-index: 1;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding-bottom: 2rem!important;
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 1rem;
    max-width: 300px;
}

.footer-social {
    padding-top: 20px;
    gap: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-social a {
    color: #ffffff;
    transition: all 0.3s ease;
}


.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* ========== 页脚图标样式优化 ========== */

/* 页脚标题图标 */
.social-icon .fab {
    font-size: 1.5rem;
}

.footer-heading {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-heading i {
    color: var(--accent-color);
    font-size: 1rem;
    background: rgba(14, 165, 233, 0.1);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-heading:hover i {
    background: rgba(14, 165, 233, 0.2);
    transform: rotate(5deg);
}

/* 页脚链接图标 */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.05);
}

.footer-links a i {
    padding: 0 0 0 6px;
    width: 24px;
    text-align: center;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* 页脚联系信息图标 */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--gray-400);
    transition: all 0.3s ease;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-contact li:hover {
    color: white;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.footer-contact li:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.footer-contact li i {
    color: var(--gray-400);
    width: 24px;
    text-align: center;
        padding: 0 0 0 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-contact li:hover i {
    transform: scale(1.1);
}

.footer-contact li span {
    margin-left: 0px;
    flex: 1;
}

/* 营业时间样式 */
.opening-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.footer-subheading {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.footer-subheading i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.opening-hours p {
    color: var(--gray-400);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.opening-hours p i {
    width: 16px;
    text-align: center;
    margin-right: 8px;
    color: var(--gray-500);
}

.opening-hours p .fa-sun {
    color: #fbbf24;
}

.opening-hours p .fa-moon {
    color: #8b5cf6;
}

.change {
    display: flex;
    color: #b9b9b9;
    font-size: 13px;
    justify-content: flex-end;
    align-items: center;
}

.change a{
    box-shadow: 4px 4px 3px -4px rgb(0 0 0);
    border-radius: 3px;
    font-weight: 600;
    padding: 2px 5px 0 5px;
    background: #617889;
    color: #1a293b;
    text-decoration: none;
    margin: 0 5px!important;
    transition: all 0.3s ease;
}

.change a:hover {
    background: #b9b9b9;
    transition: all 0.3s ease;
}


/* 图标动画效果 */
@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.footer-links a:hover i,
.footer-contact li:hover i {
    animation: pulse-icon 0.5s ease;
}

/* 图标含义说明 */
.footer-links a[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: var(--dark-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    margin-top: 5px;
    box-shadow: var(--shadow-lg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer-heading {
        margin-top: 1.5rem;
    }
    
    .footer-links a:hover {
        transform: translateX(5px);
    }
    
    .footer-contact li:hover {
        transform: translateX(3px);
    }
    
    .change {
        text-align: center;
        margin-top: 8px;
    }
    
    .opening-hours {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-heading i {
        padding: 6px;
        font-size: 0.875rem;
    }
    
    .footer-links a i,
    .footer-contact li i {
        width: 20px;
        font-size: 0.875rem;
    }
}
/* 模态框 */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-body {
    padding: 3rem;
}

.success-icon,
.error-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.success-icon {
    color: var(--success-color);
}

.error-icon {
    color: var(--danger-color);
}

/* 响应式设计 */
@media (min-width: 992px) {
.navbar-expand-lg .navbar-collapse {
        justify-content: flex-end;
}
}

@media (max-width: 992px) {
    .navbar-collapse {
        margin-top: 5px;
        border-radius: var(--bs-navbar-toggler-border-radius);
        background: #f3f3f3;
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .domain-visual {
        height: 300px;
        margin-top: 3rem;
    }
    
    .domain-circle {
        width: 100px;
        height: 100px;
    }
    
    .contact-center {
        width: 140px;
        height: 140px;
    }
    
    .footer-social {
        padding: 10px 0 30px 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 66px;
    }
    
    .hero-section {
        padding: 100px 0 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    
    .contact-form-card {
        padding: 2rem !important;
    }
    
    .modal-body {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .category-badges {
    gap: 5px;
    }
    
    .category-badge {
    padding: 5px 12px;
    }
    
    .domain-card {
        padding: 1.25rem;
    }
    
    .domain-name {
        font-size: 1.5rem;
    }
}

/* 加载动画 */
.spinner-border {
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ========== 侧边滚动按钮样式 ========== */
.scroll-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-buttons.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
}

.scroll-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scroll-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.scroll-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.scroll-btn.disabled:hover {
    box-shadow: var(--shadow-lg);
    transform: none !important;
}

.scroll-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-btn:not(.disabled):hover::before {
    opacity: 1;
}

.scroll-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.scroll-btn:not(.disabled):hover i {
    transform: scale(1.2);
}

/* 返回顶部按钮特殊样式 */
.scroll-to-top {
    background: var(--gradient-primary);
}

/* 返回底部按钮特殊样式 */
.scroll-to-bottom {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* 进度指示器 */
.scroll-progress {
    position: relative;
    width: 60px;
    height: 60px;
    margin-top: 10px;
}

.progress-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: var(--primary-color);
    stroke-linecap: round;
    stroke-dasharray: 339.292; /* 2 * π * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 工具提示样式 */
.scroll-btn[title]::after {
    content: attr(title);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: var(--shadow-md);
}

.scroll-btn[title]::before {
    content: '';
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-color: transparent transparent transparent var(--dark-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.scroll-btn:not(.disabled):hover[title]::after,
.scroll-btn:not(.disabled):hover[title]::before {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

.scroll-btn:not(.disabled):hover[title]::before {
    right: 57px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .scroll-buttons {
        right: 15px;
        bottom: 80px;
    }
    
    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .scroll-progress {
        width: 50px;
        height: 50px;
    }
    
    .progress-text {
        font-size: 10px;
    }
    
    .scroll-btn[title]::after {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .scroll-buttons {
        right: 10px;
        bottom: 70px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .scroll-progress {
        display: none; /* 在很小屏幕上隐藏进度指示器 */
    }
}

/* 打印时隐藏 */
@media print {
    .scroll-buttons {
        display: none !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-buttons {
    animation: fadeIn 0.5s ease-out;
}