* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', sans-serif;
}

:root {
    --primary: #409eff;
    --primary-dark: #2680eb;
    --primary-light: #66b1ff;
    --primary-bg: #ecf5ff;
    --text-dark: #2c3e50;
    --text-light: #5a6e82;
    --card-bg: #ffffff;
    --bg-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(64, 158, 255, 0.15);
    --radius: 12px;
    --success: #67c23a;
    --warning: #e6a23c;
    --danger: #f56c6c;
}

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0ff 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部区域 */
.top-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px 40px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border-top: 5px solid var(--primary);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 修改后的logo样式 */
.logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(64, 158, 255, 0.3);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    animation: pulse 2s infinite;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.logo .fallback-icon {
    position: absolute;
    color: white;
    font-size: 40px;
    display: none;
}

.logo img[style*="display: none"]+.fallback-icon {
    display: block;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0px rgba(64, 158, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(64, 158, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(64, 158, 255, 0);
    }
}

.header-content {
    width: auto;
    max-width: 100%;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
}

.header-content p {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.header-content .highlight {
    color: var(--primary);
    font-weight: 700;
}

/* 查询区域样式 */
.search-section {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-section h2 {
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.search-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 15px auto 0;
}

.search-box {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    height: 65px;
    box-shadow: 0 5px 20px rgba(64, 158, 255, 0.2);
    border-radius: 50px;
    overflow: visible;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
    min-width: 150px;
    z-index: 10;
}

.search-box input {
    width: 100%;
    height: 100%;
    padding: 0 30px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1.1rem;
    outline: none;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.3s;
}

.search-box input:focus {
    background: white;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.search-box button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: max-content;
}

.search-box button i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.search-box button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.search-box button.scan-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #2bbbad 100%);
    margin-left: 10px;
    border-radius: 0 50px 50px 0;
}

/* 结果区域样式 */
.result-section {
    display: none;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 20px;
    animation: fadeIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(64, 158, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(64, 158, 255, 0.1);
    flex-wrap: wrap;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    margin-right: 20px;
    box-shadow: 0 3px 10px rgba(64, 158, 255, 0.1);
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.user-info-item {
    flex: 1;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 5px;
}

.user-info p strong {
    color: var(--text-dark);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(64, 158, 255, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge.error {
    background: #f56c6c;
    color: white;
}

.status-badge i {
    margin-right: 5px;
}

/* 统计卡片容器 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 详情信息 */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(64, 158, 255, 0.05);
}

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

.detail-icon {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 3px;
}

.detail-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.detail-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 服务详情分割线 */
.service-divider {
    height: 1px;
    background: rgba(64, 158, 255, 0.1);
    margin: 20px 0;
    position: relative;
}

/* 服务详情网格样式 */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.service-detail-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.service-detail-icon {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 3px;
}

.service-detail-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.service-detail-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 动作按钮容器 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: nowrap;
}

.action-btn {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(64, 158, 255, 0.2);
}

.action-btn i {
    margin-right: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(64, 158, 255, 0.3);
}

.action-btn.renew {
    background: linear-gradient(135deg, #67c23a 0%, #5daf34 100%);
}

.action-btn.contact {
    background: linear-gradient(135deg, #e6a23c 0%, #d9952b 100%);
}

/* 历史记录卡片区域 */
.history-section {
    display: none;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 15px;
    animation: fadeIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: 1px solid rgba(64, 158, 255, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(64, 158, 255, 0.1);
}

.history-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.history-header h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.history-container {
    position: relative;
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.history-container::-webkit-scrollbar {
    width: 6px;
}

.history-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.history-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.history-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.history-cards {
    display: grid;
    gap: 15px;
    padding-right: 5px;
}

/* 历史记录卡片 */
.history-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(64, 158, 255, 0.1);
    transition: all 0.3s ease;
    animation: slideInUp 0.4s ease-out;
    position: relative;
}

/* 异常记录特殊样式 */
.history-card.type-2 {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 2px solid rgba(245, 108, 108, 0.3);
    border-left: 4px solid var(--danger);
    box-shadow: 0 2px 12px rgba(245, 108, 108, 0.15);
}

.history-card.type-2:hover {
    box-shadow: 0 4px 20px rgba(245, 108, 108, 0.25);
    border-color: rgba(245, 108, 108, 0.5);
}

/* 异常记录警告图标 */
.history-card.type-2::after {
    content: '⚠️';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1rem;
    animation: bounce 1s infinite;
    z-index: 1;
}

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

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

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(64, 158, 255, 0.15);
    border-color: rgba(64, 158, 255, 0.3);
}

/* 卡片头部 */
.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    position: relative;
}

/* 类型标签定位到右上角 */
.history-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: -5px;
    right: 0;
}

.history-card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-right: 80px; /* 为右上角标签留出空间 */
}

.history-card-time i {
    color: var(--primary);
}

.history-type-badge.type-0 {
    background: rgba(64, 158, 255, 0.1);
    color: var(--primary);
}

.history-type-badge.type-1 {
    background: rgba(103, 194, 58, 0.1);
    color: var(--success);
}

.history-type-badge.type-2 {
    background: rgba(245, 108, 108, 0.1);
    color: var(--danger);
}

.history-type-badge i {
    font-size: 0.75rem;
}

/* 卡片内容 */
.history-card-content {
    margin-bottom: 15px;
}

.history-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.history-card-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 异常记录文字样式 */
.history-card.type-2 .history-card-description {
    color: var(--danger);
    font-weight: 600;
}

.history-card.type-2 .history-card-time {
    color: var(--danger);
    font-weight: 600;
}

.history-card.type-2 .history-card-time i {
    color: var(--danger);
    animation: iconBlink 2s infinite;
}

@keyframes iconBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 统计数据网格 */
.history-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.history-stat-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(64, 158, 255, 0.05);
}

.history-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.history-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 卡片底部操作区 */
.history-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(64, 158, 255, 0.1);
}

.view-detail-btn {
    background: var(--primary-bg);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-detail-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.view-detail-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.view-detail-btn.active i {
    transform: rotate(180deg);
}

/* 原始数据展开区 */
.raw-data {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.raw-data.show {
    max-height: 500px;
    padding: 15px;
}

.raw-data pre {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light);
    white-space: pre-wrap;
    word-break: break-all;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-light);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.no-more-data {
    text-align: center;
    padding: 15px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-section {
        padding: 12px;
        margin-top: 10px;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .history-header h3 {
        font-size: 1.2rem;
    }
    
    /* 移动端容器高度调整 */
    .history-container {
        max-height: 500px;
    }
    
    .history-card {
        padding: 12px;
        border-radius: 10px;
    }
    
    .history-card-time {
        font-size: 0.8rem;
        padding-right: 70px;
    }
    
    .history-type-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        top: -3px;
    }
    
    .history-card-description {
        font-size: 0.85rem;
    }
    
    /* 统计数据2列布局 */
    .history-card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 12px;
    }
    
    .history-stat-card {
        padding: 10px 8px;
    }
    
    .history-stat-value {
        font-size: 1rem;
    }
    
    .history-stat-label {
        font-size: 0.75rem;
    }
    
    .history-card-footer {
        padding-top: 12px;
    }
    
    .view-detail-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
    
    .raw-data.show {
        padding: 12px;
    }
    
    .raw-data pre {
        font-size: 0.75rem;
    }
    
    .loading-spinner {
        padding: 15px 0;
    }
    
    .spinner {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .history-section {
        padding: 10px;
    }
    
    .history-header h3 {
        font-size: 1.1rem;
    }
    
    /* 小屏手机容器高度降低 */
    .history-container {
        max-height: 450px;
    }
    
    .history-card {
        padding: 10px;
    }
    
    .history-card-time {
        font-size: 0.75rem;
        padding-right: 65px;
    }
    
    .history-type-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* 小屏手机也保持2列布局 */
    .history-card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .history-stat-card {
        padding: 8px;
    }
    
    .history-stat-value {
        font-size: 0.95rem;
    }
    
    .history-stat-label {
        font-size: 0.7rem;
    }
    
    .history-card-time {
        font-size: 0.75rem;
    }
    
    .history-card-description {
        font-size: 0.8rem;
    }
}

/* 移动端折叠按钮样式 */
.service-toggle-btn {
    display: none;
    background: var(--primary-bg);
    color: var(--primary);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 0;
    width: 100%;
    text-align: center;
    transition: all 0.3s;
}

.service-toggle-btn:hover {
    background: var(--primary-light);
    color: white;
}

.service-toggle-btn i {
    margin-left: 5px;
    transition: transform 0.3s;
}

/* 公告栏区域 */
.announcement {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 30px;
    border-left: 4px solid var(--primary);
}

.announcement h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.announcement h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.announcement-content {
    color: var(--text-dark);
    line-height: 1.6;
}

.announcement-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(64, 158, 255, 0.2);
}

.announcement-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.announcement-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.announcement-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 轻提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast.success {
    background: var(--success);
}

.toast.warning {
    background: var(--warning);
}

.toast.error {
    background: var(--danger);
}

/* Toast 撤回按钮 */
.toast-undo-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toast-undo-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.toast-undo-btn:active {
    transform: scale(0.95);
}

/* 扫码弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.qrcode-container {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qrcode-status {
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

/* 二维码过期遮罩层样式 */
.qrcode-expired-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
}

.refresh-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(64, 158, 255, 0.3);
}

.refresh-btn i {
    margin-right: 8px;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 158, 255, 0.4);
}
/* 新的直接登录按钮样式 */
.direct-login-btn {
    display: none; /* 默认隐藏 */
    background: linear-gradient(135deg, #4b8af7, #2881e6); /* 蓝渐变 */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin: 15px auto 0;
    width: auto;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(75, 138, 247, 0.25); /* 匹配阴影色 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.direct-login-btn::after {
    content: '→';
    margin-left: 8px;
    transition: all 0.3s ease;
}

.direct-login-btn:active {
    transform: translateY(0);
}

.direct-login-btn.show {
    display: block;
    animation: fadeInUpSm 0.5s ease-out;
}

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



/* 右下角联系客服按钮样式 */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 20px rgba(64, 158, 255, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
}

.floating-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(64, 158, 255, 0.4);
}

.floating-contact-btn.hidden {
    display: none;
}

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
    padding: 20px;
}

.confirm-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUpScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpScale {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.confirm-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.confirm-header i {
    font-size: 28px;
    color: var(--danger);
    margin-right: 12px;
    background: rgba(245, 108, 108, 0.1);
    padding: 10px;
    border-radius: 12px;
}

.confirm-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.confirm-message {
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.confirm-message strong {
    color: var(--text-dark);
    font-weight: 600;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
}

.confirm-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    outline: none;
}

.confirm-btn:active {
    transform: scale(0.98);
}

.confirm-btn.cancel {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid #e0e0e0;
}

.confirm-btn.cancel:hover {
    background: #e6e6e6;
    border-color: #d0d0d0;
}

.confirm-btn.primary {
    background: var(--primary);
    color: white;
    border: none;
}

.confirm-btn.primary:hover {
    background: var(--primary-dark);
}

.confirm-btn.danger {
    background: var(--danger);
    color: white;
    border: none;
}

.confirm-btn.danger:hover {
    background: #e45656;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 108, 108, 0.35);
}

.confirm-btn.danger:active {
    transform: translateY(0) scale(0.98);
}

/* 移动端特定调整 */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .user-info {
        gap: 10px;
    }

    .user-info-item {
        min-width: 100px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

    .stat-item {
        padding: 12px 10px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .search-box button#searchBtn::after {
        content: "查询代挂";
    }

    .search-box button#searchBtn span {
        display: none;
    }

    /* 移动端服务详情折叠样式 */
    .service-toggle-btn {
        display: block;
    }

    .service-detail-grid {
        display: none;
        grid-template-columns: 1fr;
    }

    .service-detail-grid.show {
        display: grid;
    }

    .service-detail-item {
        padding: 12px 0;
    }

    /* type=0的小卡片一行显示两个 */
    .timeline-item.type-0 .timeline-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .timeline-stat {
        min-width: auto !important;
    }

    .history-container {
        padding: 0 10px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-date::before {
        left: -25px;
    }

    .timeline-content {
        padding: 12px;
    }

    /* 移动端右下角按钮调整 */
    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* 移动端确认对话框调整 */
    .confirm-dialog {
        padding: 15px;
    }

    .confirm-content {
        padding: 25px 20px;
    }

    .confirm-header h3 {
        font-size: 1.2rem;
    }

    .confirm-header i {
        font-size: 24px;
        padding: 8px;
    }

    .confirm-message {
        font-size: 0.9rem;
    }

    .confirm-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .confirm-btn {
        padding: 14px 0;
    }
    .announcement{
        margin-top:-15px
    }

}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .stats-container {
        gap: 10px;
    }

    .stat-item {
        padding: 10px 8px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .search-box {
        height: 50px;
        border-radius: 12px;
    }

    .search-box input {
        padding: 0 15px;
        font-size: 0.9rem;
        flex: 2;
        min-width: 0;
    }

    .search-box button {
        padding: 0 10px;
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
    }

    .search-box button i {
        margin-right: 5px;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .user-info-item {
        min-width: 100%;
    }

    .avatar {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    /* 小屏手机进一步优化 */
    @media (max-width: 480px) {
        .search-box {
            height: 45px;
        }

        .search-box button {
            font-size: 0.7rem;
            padding: 0 8px;
        }

        .search-box button i {
            margin-right: 3px;
            font-size: 0.9rem;
        }

        .user-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .user-info-item {
            min-width: 100%;
        }

        .avatar {
            width: 50px;
            height: 50px;
            margin-right: 10px;
        }

        .action-buttons {
            flex-direction: row;
        }

        .action-btn {
            min-width: 100px;
            padding: 8px 12px;
            font-size: 0.85rem;
        }

        /* 小屏手机时间线调整 */
        .timeline-stats {
            grid-template-columns: 1fr !important;
        }
    }
}

/* ========================================
   查询历史下拉列表 - 卡片式设计
   ======================================== */
.history-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -10px;
    right: -10px;
    background: #f7f8fa;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    overflow: hidden;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 下拉列表头部 - 简洁标题 */
.history-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

.header-title > i {
    color: var(--primary);
    font-size: 0.8rem;
}

.history-count {
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* 清空按钮 - 图标按钮 */
.clear-all-btn {
    background: none;
    border: none;
    color: #b0b0b0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.clear-all-btn:hover {
    color: var(--danger);
    background: rgba(245, 108, 108, 0.1);
    transform: rotate(-15deg);
}

.clear-all-btn:active {
    transform: rotate(-15deg) scale(0.9);
}

/* 历史记录卡片列表容器 */
.history-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: transparent;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 单条历史记录卡片 */
.history-item {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-item:hover {
    border-color: rgba(64, 158, 255, 0.18);
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.1);
    transform: translateY(-1px);
}

.history-item:hover::before {
    opacity: 1;
}

.history-item:active {
    transform: translateY(0);
}

/* 卡片内的可点击区域 */
.history-item-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    cursor: pointer;
}

/* 账号图标 */
.history-item-avatar {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #e1f0ff 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    overflow: hidden;
}

.history-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 账号信息部分 */
.history-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.history-item-id {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.history-item-highlight {
    background: rgba(64, 158, 255, 0.18);
    color: var(--primary-dark);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
}

.history-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    color: #999;
}

.history-item-time {
    display: flex;
    align-items: center;
    gap: 3px;
}

.history-item-time i {
    font-size: 0.55rem;
}

.history-item-count {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--primary);
}

.history-item-count i {
    font-size: 0.55rem;
}

/* 空状态 */
.history-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 0.85rem;
}

.history-empty i {
    font-size: 2rem;
    color: #ddd;
    margin-bottom: 10px;
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .history-dropdown {
        left: -5px;
        right: -5px;
    }

    .history-item {
        padding: 6px 8px;
    }

    .history-item-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    .history-item-id {
        font-size: 0.78rem;
    }

    .history-item-meta {
        font-size: 0.6rem;
    }
}
