/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-search {
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    margin-left: 10px;
}

.btn-search:hover {
    background-color: #0052a3;
}

.btn-submit {
    background-color: #0066cc;
    color: #fff;
    width: 100%;
}

.btn-submit:hover {
    background-color: #0052a3;
}

/* 头部导航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo.text-only {
    display: block;
    padding: 10px 0;
    white-space: nowrap;
    min-width: 300px;
}

.logo span {
    font-size: 26px;
    font-weight: bold;
    color: #0066cc;
}

.nav ul {
    display: flex;
}

.nav li {
    margin: 0 15px;
    position: relative;
}

.nav a {
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #333;
}

.nav a:hover {
    color: #0066cc;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* 文字横向显示但菜单项竖向排列的下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    width: auto;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
    flex-direction: column;
    align-items: stretch;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    float: none;
}

/* 下拉菜单项样式 - 文字横向显示且竖向排列 */
.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 13px;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
    border-right: none;
    background-color: #fff;
    line-height: 1.4;
    writing-mode: horizontal-tb;
    white-space: normal;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #0066cc;
    color: #fff;
}

.dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: -30px;
}

.header-right .phone {
    display: flex;
    align-items: center;
    color: #0066cc;
    font-weight: 500;
}

/* 间距类 */
.ml-3 {
    margin-left: 30px;
}

.header-right .phone i {
    margin-right: 5px;
}

/* 轮播图 */
.banner {
    background: #0066cc;
    color: #fff;
    padding: 80px 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* 添加一些装饰性元素 */
.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.banner-left {
    flex: 1;
    max-width: 500px;
}

.banner-slogan {
    margin-bottom: 30px;
}

.banner-slogan h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
    font-size: 32px !important;
    color: #00ff99 !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    opacity: 0.7 !important;
}

.banner-desc {
    font-size: 18px !important;
    color: #fff !important;
    line-height: 1.8;
    margin-bottom: 30px !important;
    opacity: 0.95 !important;
}

.banner-buttons {
    display: flex;
    gap: 15px;
}

/* 物流查询区域 */
.track-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-width: 450px;
    max-width: 500px;
    position: relative; /* 让弹窗在查询卡片内定位 */
}

#track { scroll-margin-top: 80px; }

.track-box h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.track-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #0066cc;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0066cc;
}

.track-form {
    width: 100%;
}
.track-form .form-group {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.input-example {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkmark {
    position: relative;
    top: 2px;
}

/* 按钮样式扩展 */
.btn.btn-secondary {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn.btn-secondary:hover {
    background-color: #0052a3;
}

.btn.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.btn-outline:hover {
    background-color: #fff;
    color: #0066cc;
}

.btn.btn-search {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 0; /* 修正与输入框的水平对齐 */
}

.btn.btn-search:hover {
    background-color: #0052a3;
}

.form-links {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.form-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid #0066cc;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: transparent;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-links a:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.25);
}

.form-links a:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.2);
}

.form-links a:not(:last-child)::after {
    content: '';
    display: none;
}

/* 轻量级查询帮助弹窗样式 */
.help-popover {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  color: #0066cc;
  border: 1px solid #0066cc; /* 呼应主色调蓝色 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  z-index: 2000; /* 提高层级，避免被其他区域覆盖 */
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none; /* 关闭时不可点击 */
  font-size: 13px; /* 缩小气泡内文字字号 */
}
.help-popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* 默认箭头（底部展开时，箭头在顶部） */
/* 隐藏默认箭头，裁剪为仅显示正文区域 */
.help-popover::after { display: none; }
.help-popover.top::after { display: none; }
/* 隐藏标题栏与关闭按钮（仅保留红框内正文内容） */
.popover-header { display: none; }
.popover-close { display: none; }
/* 自适应内容宽度，去除右侧空白 */
.help-popover { width: auto; max-width: 360px; display: inline-block; }
.popover-header h4 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
.popover-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.popover-body {
  padding: 8px 10px 10px;
}
.popover-body ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #0066cc; /* 与查询帮助按钮一致的蓝色 */
 }
 .popover-body li {
  margin: 4px 0;
  line-height: 1.45;
  position: relative;
  padding-left: 16px;
 }
 .popover-body li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0066cc;
 }

/* 响应式：确保手机端不超出屏幕 */
@media (max-width: 600px) {
  .help-popover {
    left: 5%;
    width: 90%;
  }
}

/* 查询结果区域 */
.tracking-result-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    display: none;
}

.tracking-result {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
    position: relative;
}

/* 历史记录样式 */
.history-list {
    width: 100%;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    flex: 1;
}

.history-tracking-number {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.history-date {
    font-size: 14px;
    color: #666;
}

/* 历史记录状态样式 */
.history-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

/* 关联B单号样式 */
.history-b-number {
    font-size: 14px;
    color: #0066cc;
    margin-top: 5px;
    padding: 3px 8px;
    background-color: #e6f0ff;
    border-radius: 4px;
    display: inline-block;
}

.history-status.success {
    background-color: #d4edda;
    color: #155724;
}

.history-status.warning {
    background-color: #fff3cd;
    color: #856404;
}

.history-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-small {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-small:hover {
    background-color: #0052a3;
}

/* 友好型帮助按钮与小尺寸样式：文字链接风格 */
.btn-help {
    background: none;
    border: none;
    color: #1890ff;
    text-decoration: underline;
    padding: 0;
}
.btn-help:hover {
    color: #1677ff;
}
.btn-sm {
    padding: 0;
    font-size: 13px;
}

/* 空态区域微调 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}
.empty-state .inline-actions { margin-top: 12px; }
.empty-tip { color: #999; font-size: 13px; }

/* 结果页右下角帮助链接 */
.help-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: #1890ff;
    font-size: 13px;
    text-decoration: underline;
}
.help-link:hover { color: #1677ff; }

/* 历史记录空状态样式 */
.empty-history {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* B公司单号输入界面样式 */
#b-company-input-section .tracking-result {
    margin-top: 0;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    font-size: 16px;
    background-color: #f8d7da;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.result-header h3 {
    font-size: 20px;
    color: #333;
}

.tracking-number {
    font-size: 16px;
    color: #666;
}

.result-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0066cc;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: -25px;
    top: 17px;
    width: 2px;
    height: calc(100% - 12px);
    background-color: #eee;
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 16px;
    color: #333;
}

/* 服务项目 */
.services-section {
    padding: 80px 0;
}

.services-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #0066cc;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 16px;
}

/* 关于我们 */
.about-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 当移除图片后，文本内容占据整个宽度 */
.about-text.full-width {
    width: 100%;
    max-width: none;
}

.image-with-text {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-with-text img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.9), rgba(0, 102, 204, 0.6));
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.image-with-text:hover .image-overlay {
    transform: translateY(0);
}

.image-with-text:hover img {
    transform: scale(1.05);
}

.image-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.image-overlay p {
    font-size: 16px;
    margin-bottom: 0;
    opacity: 0.95;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-text {
    color: #666;
    font-size: 16px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    color: #333;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: #0066cc;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.info-text p {
    color: #666;
    font-size: 16px;
}

.contact-form {
    flex: 1;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* 加载状态指示器 */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 9999;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 缓存提示样式 */
.cache-hint {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
    font-style: italic;
}

/* 错误提示样式 */
.error-tips {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
}

.error-tips p {
    font-weight: bold;
    margin-bottom: 8px;
    color: #666;
}

.error-tips ul {
    margin: 0;
    padding-left: 20px;
}

.error-tips li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* 通知消息样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

.notification.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.notification.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.notification-message {
    font-size: 14px;
    opacity: 0.9;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification.fade-out {
    animation: fadeOut 0.3s ease-in;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column .logo {
    margin-bottom: 20px;
}

.footer-column .logo span {
    color: #fff;
    font-size: 20px;
}

.footer-column p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0066cc;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0066cc;
}

.footer-column ul li i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #ccc;
    font-size: 14px;
}
.footer-bottom .icp-link { color: #ccc; margin-left: 12px; }
.footer-bottom .icp-link:visited { color: #ccc; }
.footer-bottom .icp-link:hover { color: #fff; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 960px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-left {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .track-box {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .container {
        width: 720px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-left {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .track-box {
        min-width: auto;
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: 540px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* 移动端下拉菜单样式 */
    .menu-toggle { display: block; }
    .nav { display: none; }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; }
    .nav li { margin: 8px 0; width: 100%; text-align: left; }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu { position: static; width: auto; min-width: 150px; box-shadow: none; border: 1px solid #e9ecef; border-radius: 0; margin-top: 5px; display: none; flex-direction: column; align-items: stretch; }
    .dropdown.open .dropdown-menu { display: block; }
    
    .dropdown-menu li {
        margin: 0;
        width: 100%;
        display: block;
        float: none;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
        text-align: center;
        display: block;
        border-bottom: 1px solid #f8f9fa;
        border-right: none;
        white-space: normal;
        writing-mode: horizontal-tb;
    }
    
    .dropdown-menu .dropdown-item:hover {
        padding-left: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .banner {
        padding: 60px 0;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-left { display: none; }
    
    .banner-left h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .banner-left p {
        font-size: 14px;
        margin: 15px 0 25px;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .track-box {
        min-width: auto;
        max-width: 100%;
        padding: 20px;
    }
    
    .track-tabs {
        margin-bottom: 15px;
    }
    
    .track-tabs button {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .form-group.half-width {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group.half-width > div {
        width: 100%;
    }
    
    .btn-search {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    .logo.text-only { min-width: 0; white-space: normal; }
    
    .header-content {
        padding: 20px 15px;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .header-right .phone {
        margin-bottom: 5px;
    }
    
    .header-right .phone:last-child {
        margin-bottom: 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .service-item h3 {
        font-size: 18px;
    }
    
    .banner {
        padding: 50px 0;
    }
    
    .banner-left h1 {
        font-size: 24px;
    }
    
    .track-box {
        padding: 15px;
    }
    
    .track-tabs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .track-tabs::-webkit-scrollbar {
        height: 2px;
    }
    
    .track-tabs button {
        white-space: nowrap;
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .form-options {
        font-size: 12px;
    }
    
    .form-links {
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }
    
    .tracking-result {
        padding: 15px;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        margin: 10px 0;
    }
    
    .nav li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        width: auto;
        min-width: 150px;
        box-shadow: none;
        border: 1px solid #e9ecef;
        border-radius: 0;
        margin-top: 5px;
        display: block;
        flex-direction: column;
        align-items: stretch;
    }
    
    .dropdown-menu li {
        margin: 0;
        width: 100%;
        display: block;
        float: none;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 10px 15px;
        font-size: 13px;
        text-align: center;
        display: block;
        border-bottom: 1px solid #f8f9fa;
        border-right: none;
        white-space: normal;
        writing-mode: horizontal-tb;
    }
    
    .dropdown-menu .dropdown-item:hover {
        padding-left: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 通知提示样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification-success {
    background-color: #f6ffed;
    border-color: #b7eb8f;
}

.notification-error {
    background-color: #fff2f0;
    border-color: #ffccc7;
}

.notification-warning {
    background-color: #fffbe6;
    border-color: #ffe58f;
}

.notification-info {
    background-color: #e6f7ff;
    border-color: #91d5ff;
}

.notification i {
    font-size: 18px;
}

.notification-success i {
    color: #52c41a;
}

.notification-error i {
    color: #ff4d4f;
}

.notification-warning i {
    color: #faad14;
}

.notification-info i {
    color: #1890ff;
}

.notification span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #666;
}
/* 管理端列表页增强样式 */
/* 搜索栏 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 16px;
}
.search-bar input#list-search,
.search-bar input#list-phone {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}
.search-bar .page-size {
    padding: 9px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
}
.search-bar .btn {
    height: 38px;
}

/* 表格与空态 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    border: 1px solid #eee;
}
.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.data-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}
.data-table tr:hover {
    background-color: #f9f9f9;
}
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.empty-state i { font-size: 28px; margin-bottom: 8px; color: #bbb; }

/* 操作按钮组 */
.action-buttons { display: flex; gap: 8px; }
.btn-small { padding: 6px 12px; font-size: 12px; border-radius: 4px; }
.btn-edit { background-color: #1890ff; color: #fff; }
.btn-delete { background-color: #ff4d4f; color: #fff; }
.btn-edit:hover { background-color: #1677ff; }
.btn-delete:hover { background-color: #e84447; }

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.pagination .page-info {
    font-size: 13px;
    color: #666;
}
.pagination .btn[disabled] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border: 1px solid #eee;
}

/* 分页拓展：跳转与提示 */
.pagination .jump { display: inline-flex; align-items: center; gap: 8px; }
.form-tip { font-size: 12px; color: #999; margin-left: 8px; }

/* 通用提示按钮 */
.btn-secondary { background: #fff; border: 1px solid #d9d9d9; color: #333; }
.btn-secondary:hover { background: #fafafa; }

/* 表单与标签页调整 */
.tab-button { background: none; }
.tab-button.active { color: #1890ff; border-bottom-color: #1890ff; }
.form-actions .btn { min-width: 120px; }

/* 列表交互增强 */
.table-sticky-wrapper { max-height: 520px; overflow: auto; border: 1px solid #f0f0f0; border-radius: 8px; }
.table-sticky-wrapper .data-table thead th { position: sticky; top: 0; background: #fafafa; z-index: 2; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.sortable { cursor: pointer; user-select: none; }
/* 统一为文本箭头指示，避免遮罩与文本重叠 */
.sortable .sort-indicator {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    line-height: 1;
    color: #bfbfbf;
    width: auto;
    height: auto;
    background: none;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
}
.sortable.active .sort-indicator { color: #1890ff; }
/* 保留兼容：若th附加asc/desc类，也统一用颜色强调 */
.sortable.asc .sort-indicator,
.sortable.desc .sort-indicator { color: #1890ff; }

/* 高亮命中 */
.mark-highlight { background: #fff1b8; color: #d48806; padding: 0 2px; border-radius: 2px; }

/* 导出区域 */
.export-group { display: flex; align-items: center; gap: 8px; }
.btn-primary-outline { border: 1px solid #1890ff; color: #1890ff; background: #fff; }
.btn-primary-outline:hover { background: #e6f4ff; }
.btn-ghost { border: 1px dashed #d9d9d9; background: #fff; color: #666; }

/* 搜索按钮loading态 */
.btn.btn-search .loading-text { display: none; }
.btn.btn-search.loading .default-text { display: none !important; }
.btn.btn-search.loading .loading-text { display: inline-flex !important; align-items: center; gap: 6px; }

/* 空数据占位 */
.empty-centered { text-align: center; color: #999; padding: 48px 0; }
.empty-centered .icon { font-size: 40px; display: block; margin-bottom: 10px; }

/* 移动端折行布局 */
@media (max-width: 768px) {
  .search-bar { flex-wrap: wrap; }
  #page-size, #export-format, #export-csv, #export-all { flex: none; }
  .table-sticky-wrapper { max-height: 60vh; }
}
/* 公司管理列表专用样式 */
#companies-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#companies-table thead th {
  background-color: #fafafa;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
#companies-table th, #companies-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
#companies-table tbody tr:nth-child(even) { background-color: #fcfcfc; }
#companies-table tbody tr:hover { background-color: #f7fbff; }
#companies-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: #444; letter-spacing: .2px; }
#companies-table td:nth-child(2) { font-weight: 500; color: #333; }
#companies-table td:nth-child(3) { color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#companies-table td:nth-child(4) { text-align: center; }
#companies-table td:last-child { width: 160px; }
.action-buttons .btn { padding: 6px 12px; border-radius: 6px; font-size: 12px; }
.action-buttons .btn-edit { background-color: #1890ff; }
.action-buttons .btn-delete { background-color: #ff4d4f; }
.form-links {
    text-align: center;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.form-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid #0066cc;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: transparent;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-links a:hover {
    background-color: #0066cc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.25);
}

.form-links a:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.2);
}

.form-links a:not(:last-child)::after {
    content: '';
    display: none;
}

/* 查询结果区域 */
.tracking-result-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    display: none;
}

.tracking-result {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* 历史记录样式 */
.history-list {
    width: 100%;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    flex: 1;
}

.history-tracking-number {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.history-date {
    font-size: 14px;
    color: #666;
}

/* 历史记录状态样式 */
.history-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

/* 关联B单号样式 */
.history-b-number {
    font-size: 14px;
    color: #0066cc;
    margin-top: 5px;
    padding: 3px 8px;
    background-color: #e6f0ff;
    border-radius: 4px;
    display: inline-block;
}

.history-status.success {
    background-color: #d4edda;
    color: #155724;
}

.history-status.warning {
    background-color: #fff3cd;
    color: #856404;
}

.history-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-small {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-small:hover {
    background-color: #0052a3;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 历史记录空状态样式 */
.empty-history {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* B公司单号输入界面样式 */
#b-company-input-section .tracking-result {
    margin-top: 0;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    font-size: 16px;
    background-color: #f8d7da;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.result-header h3 {
    font-size: 20px;
    color: #333;
}

.tracking-number {
    font-size: 16px;
    color: #666;
}

.result-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0066cc;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: -25px;
    top: 17px;
    width: 2px;
    height: calc(100% - 12px);
    background-color: #eee;
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.timeline-content {
    font-size: 16px;
    color: #333;
}

/* 服务项目 */
.services-section {
    padding: 80px 0;
}

.services-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #0066cc;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    font-size: 16px;
}

/* 关于我们 */
.about-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 当移除图片后，文本内容占据整个宽度 */
.about-text.full-width {
    width: 100%;
    max-width: none;
}

.image-with-text {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-with-text img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.9), rgba(0, 102, 204, 0.6));
    color: white;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.image-with-text:hover .image-overlay {
    transform: translateY(0);
}

.image-with-text:hover img {
    transform: scale(1.05);
}

.image-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.image-overlay p {
    font-size: 16px;
    margin-bottom: 0;
    opacity: 0.95;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-text {
    color: #666;
    font-size: 16px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    color: #333;
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #e6f2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: #0066cc;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.info-text p {
    color: #666;
    font-size: 16px;
}

.contact-form {
    flex: 1;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* 加载状态指示器 */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 9999;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 缓存提示样式 */
.cache-hint {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
    font-style: italic;
}

/* 错误提示样式 */
.error-tips {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
}

.error-tips p {
    font-weight: bold;
    margin-bottom: 8px;
    color: #666;
}

.error-tips ul {
    margin: 0;
    padding-left: 20px;
}

.error-tips li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

/* 通知消息样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
/* 批量导入：拖拽区域与进度条 */
.import-dropzone { padding:8px; border:1px solid #eee; border-radius:8px; cursor:pointer; background:#fff; margin:12px 0 16px; }
.import-dropzone .dz-inner { width:100%; padding:14px; border:2px dashed #dfe3eb; border-radius:12px; background:#fcfdff; text-align:center; color:#5b6b7b; transition: all .2s ease; min-height:72px; display:flex; align-items:center; justify-content:center; box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06); }
.import-dropzone.active .dz-inner { background:#f4f9ff; border-color:#1677ff; color:#1677ff; box-shadow: 0 6px 18px rgba(22, 119, 255, 0.12); }
.import-dropzone .dz-text { display:inline-block; color:#6b7280; font-weight:500; font-size:13px; }
/* 导入历史列表：紧凑与美化 */
#import-history .history-list { background:#fff; border-radius:8px; }
.history-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border-bottom:1px dashed #eee; }
.history-row:last-child { border-bottom:none; }
.history-row strong { font-size:14px; font-weight:600; }
.history-row .meta { margin-left:8px; font-size:12px; color:#888; }
#import-history .btn { padding:6px 12px; font-size:12px; border-radius:6px; }
#import-history #import-history-clear { background: transparent !important; border: none !important; color: #000 !important; padding: 4px 10px !important; font-size: 12px !important; box-shadow: none !important; }
#import-history #import-history-clear:hover { background: transparent !important; opacity: .8; }
.dz-preview { margin-top:12px; display:flex; justify-content:center; }
.dz-filecard { display:inline-flex; align-items:center; gap:14px; padding:12px 16px; border:1px solid #e5e5e5; border-radius:8px; background:#fff; color:#2f3b4a; box-shadow: 0 3px 10px rgba(0,0,0,0.06); position:relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dz-filecard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); border-color:#1677ff; }
.dz-filecard .dz-tools { margin-left:auto; display:flex; align-items:center; gap:8px; }
.icon-btn { width:28px; height:28px; border:1px solid #d9d9d9; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff; color:#666; cursor:pointer; transition: all .2s ease; }
.icon-btn:hover { background:#f5faff; color:#1677ff; border-color:#1677ff; }
.dz-closing { animation: dzFadeOut .18s ease forwards; }
@keyframes dzFadeOut { 0%{ opacity:1; transform: translateY(0);} 100%{ opacity:0; transform: translateX(6px);} }
.dz-filecard .file-icon { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); color:#fff; }
.dz-filecard .file-icon img.fi { width:18px; height:18px; display:block; }
.dz-filecard .file-icon i { font-size:18px; }
.dz-filecard .file-icon.xlsx { background: linear-gradient(135deg,#52c41a 0%,#79d61f 100%); }
.dz-filecard .file-icon.csv { background: linear-gradient(135deg,#13c2c2 0%,#36cfc9 100%); }
.dz-filecard .info { display:flex; flex-direction:column; }
.dz-filecard .name { font-weight:600; max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dz-filecard .meta { margin-top:2px; font-size:12px; color:#8592a3; }
.dz-filecard .badges { display:flex; align-items:center; gap:8px; margin-left:8px; }
.dz-badge { font-size:12px; padding:2px 8px; border-radius:999px; border:1px solid #e5e5e5; background:#fff; color:#666; }
.dz-badge.success { border-color:#b7eb8f; background:#f6ffed; color:#389e0d; }
.dz-badge.error { border-color:#ffa39e; background:#fff1f0; color:#cf1322; }
.dz-badge.appear { animation: badgeIn .2s ease-out both; }
@keyframes badgeIn { 0%{ transform: translateX(-8px); opacity:0;} 100%{ transform: translateX(0); opacity:1;} }
.dz-badge.flash { animation: badgeFlash .8s ease 2; }
@keyframes badgeFlash { 0%,100%{ filter:none;} 50%{ filter:brightness(1.15);} }
.dz-mini-progress { position:absolute; left:12px; right:12px; top:8px; height:4px; background:#f0f0f0; border-radius:999px; overflow:hidden; }
.dz-mini-progress .dz-mini-bar { height:100%; background:#1677ff; width:0%; transition: width .2s ease; }
.dz-filecard .dz-remove { border:1px solid #ffccc7; background:#fff; color:#ff4d4f; cursor:pointer; padding:6px 10px; border-radius:20px; font-size:12px; }
.dz-filecard .dz-remove:hover { background:#fff1f0; border-color:#ffa39e; }
.dz-actions { margin-top:10px; display:flex; gap:8px; justify-content:center; }
.dz-modal { position:fixed; inset:0; background:transparent; display:none; align-items:center; justify-content:center; z-index:9999; }
.dz-modal.open { display:grid; place-items:center; }
.dz-modal .modal-content { width:520px; max-width:90vw; background:#ffffff; border-radius:12px; box-shadow:0 12px 36px rgba(0,0,0,0.12), 0 6px 18px rgba(0,0,0,0.08); padding:20px 24px; border:1px solid #f0f0f0; opacity:1; will-change:transform, opacity; position:relative; }
.dz-modal.open .modal-content { animation:dzFadeInUp .24s ease-out forwards; }
.dz-modal .modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.dz-modal .modal-title { font-weight:600; color:#444; display:flex; align-items:center; gap:8px; }
.dz-modal .modal-close { cursor:pointer; color:#666; }
.dz-modal table { width:100%; border-collapse:collapse; }
.dz-modal th, .dz-modal td { border:1px solid #eee; padding:8px 12px; font-size:13px; color:#333; }
/* 弹窗正文采用灰色字体与舒适行距 */
.dz-modal .modal-body { color:#666; }
.dz-modal .modal-body ul { margin:0; padding-left:1.2em; list-style: disc; }
.dz-modal .modal-body ul li { color:#666; line-height:1.8; }
.dz-modal .modal-body ul li::marker { color:#999; }
/* 顶部色条与标题图标 */
.dz-modal .modal-content::before { content:''; position:absolute; left:0; right:0; top:0; height:4px; background:#1677ff; border-radius:12px 12px 0 0; }
.dz-modal .modal-title .modal-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#1677ff; color:#fff; font-size:14px; font-weight:700; line-height:1; }
@keyframes dzFadeInUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.progress-box { margin-top:12px; }
.progress-box .progress-text { margin-bottom:8px; color:#666; display:flex; align-items:center; gap:6px; }
.progress { width:100%; height:8px; background:#f0f0f0; border-radius:6px; overflow:hidden; }
.progress .progress-bar { height:100%; background:#1677ff; width:0%; transition: width .2s ease; }/* Dropzone file preview styles */
.dz-preview {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 12px 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    transition: all .2s ease;
    width: calc(50% - 16px); /* Two cards per row */
}

.dz-preview:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.dz-file-preview .dz-details {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.dz-file-preview .dz-file-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
}

.dz-file-preview .dz-file-icon img {
    width: 100%;
    height: 100%;
}

.dz-file-preview .dz-file-info {
    flex-grow: 1;
    min-width: 0; /* Prevents long filenames from breaking layout */
}

.dz-file-preview .dz-filename {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-file-preview .dz-size {
    font-size: 0.8em;
    color: #888;
}

.dz-file-preview .dz-actions {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.dz-file-preview .dz-actions .btn {
    margin-left: 8px;
}

.dz-progress {
    display: none; /* Initially hidden */
}

.dz-error-message {
    color: #f5222d;
    font-size: 0.8em;
    margin-top: 4px;
}

.dz-success-mark, .dz-error-mark {
    display: none; /* Initially hidden */
}


/* Import Dropzone Dashed Border */
#import-dropzone {
    /* 与导入历史区域灰色边缘框保持完全一致的外观 */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 40px;
}

#import-dropzone.dz-drag-hover {
    background-color: #f6faff;
    border-color: #e3e3e3;
}

#import-dropzone .dz-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#import-dropzone .dz-text {
    font-size: 16px;
    color: #888;
}

#import-history .btn-clear-link { background: none; border: none; color: #000; font-size: 12px; padding: 0 2px; line-height: 22px; cursor: pointer; box-shadow: none; }
#import-history .btn-clear-link:hover { text-decoration: underline; opacity: .85; }

/* 导入历史：小灰色垃圾桶图标按钮（替换文字“移除”按钮） */
#import-history .icon-trash-btn {
  background: none;
  border: none;
  color: #bbb; /* 更浅 */
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: color .2s ease;
}
#import-history .icon-trash-btn i { font-size: 16px; /* 稍微大一点 */ }
#import-history .icon-trash-btn:hover { color: #999; }
#import-history .icon-trash-btn:focus { outline: 2px solid #ddd; outline-offset: 2px; }
