* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}

/* 头部布局样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 20px 30px;
    background: linear-gradient(135deg, #1a73e8, #6c8ef5);
    color: white;
    border-radius: 10px 10px 0 0;
    margin: -20px -20px 20px -20px;
    position: relative;
    min-height: 180px;
    flex-wrap: nowrap; /* 防止换行 */
}

.header-content {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

/* 头部标题居中 */
.header-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    text-align: center;
    width: 100%;
}

/* 头部副标题样式 */
.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 15px;
}

.header-qrcode {
    width: 100px;
    height: auto; /* 改为自动高度 */
    margin-left: 20px;
    border: 3px solid white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-qrcode img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.header-qrcode-label {
    font-size: 0.7rem;
    margin-top: 0; /* 移除上边距 */
    padding: 5px 3px; /* 调整内边距 */
    opacity: 0.9;
    text-align: center;
    color: #333 !important;
    font-weight: 600;
    background: transparent !important; /* 透明背景 */
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 11;
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 隐藏溢出 */
    text-overflow: ellipsis; /* 文字过长显示省略号 */
}

.section {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 4px solid #1a73e8;
    background-color: #f8fbff;
    border-radius: 0 8px 8px 0;
}

.section-title {
    font-size: 1.5rem;
    color: #1a73e8;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.highlight-box {
    background-color: #e8f0fe;
    border: 1px solid #c6dafc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.highlight-box h3 {
    color: #1a73e8;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f1f8ff;
    border-radius: 8px;
    margin: 10px;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.stages {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.stage {
    width: 48%;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    border-top: 3px solid #1a73e8;
}

.stage h4 {
    color: #1a73e8;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.stage p {
    font-size: 0.9rem;
    color: #555;
}

.cta-section {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #1a73e8, #6c8ef5);
    color: white;
    border-radius: 10px;
    margin: 20px -20px -20px -20px;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #1a73e8;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 5px 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    background-color: #f8f9fa;
}

/* 授权相关样式 */
.auth-section {
    text-align: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.wechat-auth-btn {
    background: linear-gradient(135deg, #07c160, #05a050);
    color: white;
    border: none;
}

.wechat-auth-btn:hover {
    background: linear-gradient(135deg, #05a050, #048040);
    color: white;
}

.start-test-btn {
    background: linear-gradient(135deg, #1a73e8, #0d5bb9);
    color: white;
    border: none;
}

.start-test-btn:hover {
    background: linear-gradient(135deg, #0d5bb9, #0a4a9c);
    color: white;
}

/* 授权状态样式 */
.auth-status {
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
    display: none;
}

.auth-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 调试面板样式 */
.auth-debug-panel {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.debug-toggle {
    text-align: center;
    margin-bottom: 10px;
}

.debug-toggle label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.debug-toggle input {
    margin-right: 8px;
}

.debug-log {
    max-height: 150px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    display: none;
}

.log-entry {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f1f3f4;
}

.log-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.log-timestamp {
    color: #6c757d;
    font-size: 11px;
    margin-right: 8px;
}

.log-success {
    color: #28a745;
}

.log-error {
    color: #dc3545;
}

.log-warning {
    color: #ffc107;
}

.log-info {
    color: #17a2b8;
}

/* 功能特性列表 */
.feature-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 10px 20px;
    color: white;
    font-size: 1rem;
}

.feature-item i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 按钮状态 */
.cta-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.cta-button:disabled:hover {
    background-color: #95a5a6;
    transform: none;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* 悬浮图标组样式 - 优化位置和间距 */
.floating-icons-group {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #6c8ef5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 22px;
    position: relative;
}

.floating-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-icon:active {
    transform: translateY(0) scale(0.95);
}


/* 工具提示样式 */
.floating-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.floating-icon::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.floating-icon:hover::before,
.floating-icon:hover::after {
    opacity: 1;
    visibility: visible;
}
/* 授权悬浮窗特殊样式 */
.floating-auth {
    background: linear-gradient(135deg, #07c160, #05a050);
}

.floating-auth.authorized {
    background: linear-gradient(135deg, #1a73e8, #6c8ef5);
}

/* 报告悬浮窗样式 */
.floating-reports {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

/* 人员管理悬浮窗样式 */
.floating-users {
    background: linear-gradient(135deg, #ffa726, #ff9800);
}

/* 管理界面悬浮窗样式 */
.floating-admin {
    background: linear-gradient(135deg, #7e57c2, #5e35b1);
}

/* 电话悬浮窗样式 */
.floating-phone {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

/* 二维码弹窗样式 */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.qrcode-content {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qrcode-img {
    width: 200px;
    height: 200px;
    margin: 15px auto;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.qrcode-label {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.close-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: #0d5bb9;
}

/* 二维码授权弹窗样式 */
.qr-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.qr-auth-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.qr-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.qr-auth-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.qr-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.qr-auth-body {
    padding: 20px;
    text-align: center;
}

.qr-code-container {
    margin-bottom: 20px;
}

.qr-code-img {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

.qr-status.waiting {
    background: #fffbf0;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.qr-status.scanned {
    background: #f0f8ff;
    color: #096dd9;
    border: 1px solid #91d5ff;
}

.qr-status.authorized {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.qr-status.expired {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.qr-instruction {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.qr-instruction h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.qr-instruction ol {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.qr-instruction li {
    margin-bottom: 5px;
}

.qr-auth-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.qr-cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.qr-cancel-btn:hover {
    background: #5a6268;
}

/* 提示信息弹窗样式 */
.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.message-modal.show {
    display: flex;
}

.message-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.message-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.confirm-btn {
    background: linear-gradient(135deg, #1a73e8, #6c8ef5);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

/* 响应式调整 */
@media (max-width: 600px) {
    .stage {
        width: 100%;
    }

    .stat-item {
        min-width: 120px;
    }

    .header {
        flex-direction: row;
        text-align: center;
        padding: 15px 20px;
        min-height: auto;
        align-items: center;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .header-qrcode {
        width: 70px;
        height: auto;
        margin-left: 15px;
        margin-top: 0;
    }

    .header-qrcode img {
        height: 70px;
    }

    .header-qrcode-label {
        font-size: 0.6rem;
        padding: 3px 2px;
        line-height: 1.2;
    }

    .header-title {
        font-size: 1.4rem;
        text-align: left;
    }

    .header-subtitle {
        font-size: 0.8rem;
        text-align: left;
        margin-bottom: 0;
    }

    /* 授权相关响应式样式 */
    .auth-status {
        font-size: 13px;
        padding: 10px 12px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 5px;
    }

    .feature-item {
        margin: 8px 15px;
        font-size: 0.9rem;
    }

    .auth-container {
        padding: 15px 10px;
    }

    .debug-log {
        font-size: 11px;
        max-height: 120px;
    }

    /* 二维码授权弹窗响应式 */
    .qr-auth-content {
        width: 95%;
        margin: 20px;
    }

    .qr-code-img {
        width: 180px;
        height: 180px;
    }

    .qr-instruction {
        font-size: 12px;
    }

    .qr-instruction ol {
        padding-left: 15px;
    }
}

/* 小屏幕设备额外优化 */
@media (max-width: 480px) {
    .qr-auth-content {
        margin: 10px;
    }

    .qr-auth-header {
        padding: 15px;
    }

    .qr-auth-body {
        padding: 15px;
    }

    .qr-code-img {
        width: 160px;
        height: 160px;
    }

    .qr-instruction {
        padding: 12px;
    }

    .qr-auth-footer {
        padding: 12px 15px;
    }
}

/* 悬浮图标组响应式调整 */
@media (max-width: 768px) {
    .floating-icons-group {
        right: 10px;
        gap: 10px;
    }

    .floating-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .message-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .floating-icons-group {
        right: 8px;
        gap: 8px;
    }

    .floating-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .message-content {
        padding: 15px;
    }

    .message-content h3 {
        font-size: 1.3rem;
    }

    .message-content p {
        font-size: 0.9rem;
    }
}
