/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* 顶部栏 */
.top-bar {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.top-bar h1 {
    color: white;
    font-weight: 700;
}

/* 语言切换器 */
.lang-switcher .form-select {
    min-width: 120px;
    border: 1px solid rgba(255,255,255,0.4);
    background-color: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.85rem;
}

.lang-switcher .form-select:focus {
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.2);
}

.lang-switcher .form-select option {
    color: #333;
    background: white;
}

/* 广告插槽 */
.ad-slot {
    min-height: 90px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-slot ins.adsbygoogle {
    width: 100%;
}

/* 右侧广告栏 */
.ad-sidebar {
    position: sticky;
    top: 1rem;
}

.ad-sidebar .ad-slot {
    min-height: 250px;
}

/* 标题样式 */
h1 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* 导航栏优化 - 单列向下延伸，无滚动条 */
#conversionTabs {
    flex-wrap: nowrap;
    padding-right: 4px;
}

#conversionTabs .nav-link {
    border-radius: 8px;
    margin-bottom: 3px;
    padding: 8px 12px;
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: left;
}

#conversionTabs .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

#conversionTabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}


/* 页面平滑切换 */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #0d6efd, #3a8bfd) !important;
    color: white !important;
    border-bottom: none;
}

.card-body {
    padding: 2rem;
}

/* 表单样式 */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 复选框样式 */
.form-check {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-check:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    border: 2px solid #adb5bd;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    margin-left: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background-color: #0d6efd;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    transition: width 0.3s ease;
}

/* 提示信息样式 */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
}


/* 响应式设计 */
.fw-mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
}

.timezone-card .card {
    transition: all 0.2s ease;
    border-color: #eee !important;
}

.timezone-card .card:hover {
    transform: none;
    background-color: #fff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timezone-time {
    color: #666;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
    }
    
    .card {
        margin: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tabs .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .nav-tabs .nav-link {
        margin-right: 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* 页脚样式 */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

.site-footer .footer-icons {
    font-size: 1.5rem;
    color: #0d6efd;
    letter-spacing: 0.5rem;
}

.site-footer .footer-text {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.6;
}

.site-footer .footer-sub {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}