/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 70px;
}

:root {
    --nav-bar-height: 70px;
    --bottom-nav-height: 70px;
    --top-gap: 10px;
    --top-spacing: var(--nav-bar-height);
    --bottom-spacing: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: white !important;
    color: #333;
    line-height: 1.6;
    font-size: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

body > * {
    font-size: 16px;
}

/* 无障碍访问支持 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 深色模式支持 - 暂时禁用 */
/* @media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .page-container,
    .content-area,
    .main-content,
    .card,
    .form-section {
        background-color: #2d2d2d;
        color: #f0f0f0;
    }
    
    .page-header,
    .top-nav {
        background-color: #2e7d32;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #3d3d3d;
        color: #f0f0f0;
        border-color: #555;
    }
    
    .option-item {
        background-color: #3d3d3d;
    }
    
    .option-item:hover {
        background-color: #4a4a4a;
    }
} */

/* 统一页面容器样式 - 确保响应式缩放 */
.page-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 0 0 30px 0;
    box-sizing: border-box;
    transition: width 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 确保所有页面容器保持一致的响应式布局，且不会被底部导航栏覆盖 */
.container,
.content-area,
.main-content,
.profile-container,
.settings-container,
.growth-container,
.matching-test-container,
.scene-simulator-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    transition: width 0.3s ease;
}

/* 容器底部空间设置 */
.container {
    padding-bottom: 90px;
}

/* 内容区域底部空间设置 */
.content-area {
    padding: 80px 5px 80px 5px;
    transition: padding-top 0.3s ease;
}

/* 主内容区域底部空间设置 */
.main-content {
    padding: 80px 5px 80px 5px;
    transition: padding-top 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 统一页面头部样式 */
.page-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px 5px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 统一标题样式 */
.page-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    flex: 1;
    color: white;
}

/* 标题容器样式 */
.title-container {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

/* 统一内容区域样式，避免被固定头部和底部导航栏遮挡 */
/* 注：已在上方使用CSS变量定义，此处保留空注释避免重复 */

/* 智能匹配测试和场景模拟容器样式 */
.matching-test-container,
.scene-simulator-container {
    padding: 80px 5px 80px 5px !important; /* 顶部padding 80px = 导航栏高度70px + 10px间距，底部padding 80px适配70px导航栏 */
    transition: padding-top 0.3s ease;
}

/* 统一顶部导航栏样式 */
.top-nav {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999999 !important;
    transition: all 0.3s ease;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.top-nav.studio-related {
    background-color: #4CAF50;
}

.top-nav.profile-related {
    background-color: #4CAF50;
}

.top-nav .nav-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-nav .nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.top-nav .nav-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 位置信息样式 */
.location-info {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: white;
}

.location-icon {
    margin-right: 5px;
    font-size: 16px;
}

.location-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 应用logo样式 */
.app-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    margin: 0;
}

/* 标题容器样式 */
.top-nav .title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    margin: 0 10px;
}

/* 调整app-logo样式，确保它在标题容器中居中 */
.top-nav .title-container .app-logo {
    flex: none;
    margin-right: 10px;
}

/* 调整标题样式 */
.top-nav .title-container .nav-title,
.top-nav .title-container .page-title {
    flex: none;
    text-align: center;
}

/* 导航栏标题样式 */
.top-nav .nav-title,
.top-nav .page-title {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
    color: white;
}

/* 返回按钮样式 */
.top-nav .back-btn {
    width: 40px;
    text-align: left;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.top-nav .back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 统一底部导航栏样式 */
.bottom-nav-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background-color: white !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999 !important;
    height: var(--bottom-nav-height) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #666;
    min-width: 0;
}

.bottom-nav .nav-item.active {
    color: #4CAF50;
}

.bottom-nav .nav-item.active .nav-icon {
    transform: scale(1.1);
}

.bottom-nav .nav-icon {
    font-size: 28px;
    margin-bottom: 6px;
    transition: font-size 0.3s ease, transform 0.3s ease;
}

.bottom-nav .nav-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

/* 占位元素样式 */
.top-nav .placeholder {
    width: 40px;
}

/* 顶部导航栏右侧区域 */
.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* logo图片样式 - 使用!important确保覆盖内联样式 */
.logo-img, .nav-logo, .title-logo, .logo, img[src*="logo"], img[alt*="谐伴服务"] {
    width: 40px !important;
    height: 40px !important;
    border-radius: 16% !important;
    margin-right: 10px !important;
    /* 移除object-fit: cover，因为它对SVG图片不兼容 */
}

/* logo文字样式 */
.logo-text {
    font-size: clamp(14px, 3vw, 20px);
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 通用表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

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

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-section {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.form-section h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
}

/* 通用按钮样式 - 覆盖所有按钮 */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 社区和案例页面的类型选择按钮 - 固定大小，所有屏幕尺寸通用 */
.category-filter button, 
.category-filter .filter-btn, 
.case-actions button, 
.case-actions .action-btn {
    padding: 3px 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 14px !important;
    background-color: white !important;
    font-size: 11px !important;
    font-weight: normal !important;
    color: #333 !important;
    min-width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* 确保hover和active状态也使用固定样式 */
.category-filter button:hover, 
.category-filter .filter-btn:hover, 
.case-actions button:hover, 
.case-actions .action-btn:hover {
    background-color: #f0f0f0 !important;
    border-color: #4CAF50 !important;
    color: #333 !important;
}

.category-filter button.active, 
.category-filter .filter-btn.active {
    background-color: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3) !important;
}

button.primary {
    background-color: #4CAF50;
    color: white;
}

button.primary:hover {
    background-color: #45a049;
}

button.secondary {
    background-color: #e0e0e0;
    color: #333;
}

button.secondary:hover {
    background-color: #bdbdbd;
}

/* 彻底清理CSS规则，只保留核心卡片隐藏逻辑 */

/* 1. 恢复卡片的默认样式 - 确保间距一致 */
.card {
    display: block;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-bottom: 5px !important;
    transition: all 0.3s ease;
}

/* 服务详情页面统一样式 */
.service-detail-page,
.service-detail-container {
    font-size: 14px;
    /* 移除!important，允许页面级样式覆盖 */
}

/* 服务介绍内容统一字体大小 */
.service-detail-page .service-intro,
.service-detail-page .service-description,
.service-detail-page .service-info,
.service-detail-page .service-content,
.service-detail-page .service-introduction,
.service-detail-page .service-price-section,
.service-detail-page .order-processing-section,
.service-detail-container .service-intro,
.service-detail-container .service-description,
.service-detail-container .service-info,
.service-detail-container .service-content,
.service-detail-container .service-introduction,
.service-detail-container .service-price-section,
.service-detail-container .order-processing-section {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding: 0 8px !important; /* 添加8px左右边距 */
}

/* 客户端服务介绍标题绿色字体 */
.client-service-detail .service-intro h2,
.service-detail-page .service-intro h2,
.service-detail-container .service-intro h2 {
    color: #4CAF50 !important; /* 绿色字体 */
}

/* 预约下单栏边距调整 */
.order-form-section,
.form-section,
.service-booking-section,
.service-detail-container .order-form-section,
.service-detail-container .form-section,
.service-detail-container .service-booking-section {
    padding: 0 8px !important; /* 添加8px左右边距 */
}

/* 服务详情页面标题统一样式 */
.service-detail-page h1, 
.service-detail-page h2, 
.service-detail-page h3, 
.service-detail-page h4, 
.service-detail-page h5, 
.service-detail-page h6 {
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.service-detail-page h1 {
    font-size: 20px;
}

.service-detail-page h2 {
    font-size: 18px;
}

.service-detail-page h3 {
    font-size: 16px;
}

/* 服务详情页面段落和列表统一样式 */
.service-detail-page p,
.service-detail-page li {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px;
}

/* 确保所有服务详情页面的内容区域有适当边距 */
.service-detail-page .content-area,
.service-detail-page .main-content {
    max-width: 100%;
    margin: 0 auto;
    /* 移除固定padding，允许页面级样式覆盖 */
}

/* 服务详情页面卡片样式统一 */
.service-detail-page .card,
.service-detail-page .service-card,
.service-detail-page .price-card,
.service-detail-page .order-card {
    padding: 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 服务端服务详情页面边距调整 */
.server-service-detail .service-intro,
.server-service-detail .service-price-section,
.server-service-detail .order-processing-section {
    margin: 2px;
    padding: 12px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 客户端服务详情页面样式统一 */
.client-service-detail .service-intro,
.client-service-detail .service-price-section,
.client-service-detail .order-processing-section {
    margin: 2px;
    padding: 12px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 移除了卡片隐藏规则，所有卡片都应该正常显示 */

/* 3. 移除所有其他显示规则，让浏览器使用默认布局 */
/* 这样可以确保底行功能键、导航栏等元素使用默认的显示方式 */

/* 批量操作进度样式 */
.batch-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.batch-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.batch-progress-modal {
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.batch-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.batch-progress-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.batch-progress-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.batch-progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.batch-progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s ease;
    background-image: linear-gradient(90deg, #4CAF50, #45a049);
}

.batch-progress-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.batch-cancel-btn {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-cancel-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
}

.batch-cancel-btn:active {
    transform: translateY(0);
}

/* 批量操作表格样式 */
.batch-select-all {
    cursor: pointer;
    transform: scale(1.1);
}

.batch-select-item {
    cursor: pointer;
    transform: scale(1.1);
}

.batch-action-button {
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 10px 16px;
    font-size: 14px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.batch-action-button:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
}

.batch-action-button:active {
    transform: translateY(0);
}

.batch-action-button:disabled {
    background-color: #bdbdbd;
    cursor: not-allowed;
    transform: none;
}

/* 时间线样式增强 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-left: 24px;
}

.timeline-dot {
    position: absolute;
    left: -18px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-item.current .timeline-dot {
    width: 24px;
    height: 24px;
    left: -20px;
    top: 2px;
    font-size: 14px;
}

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

.timeline-state {
    font-weight: 600;
    font-size: 16px;
}

.timeline-time {
    font-size: 12px;
    color: #666;
}

.timeline-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.timeline-location {
    font-size: 12px;
    color: #666;
}

/* 订单地图样式增强 */
.order-map {
    margin: 16px 0;
}

.order-map h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #333;
}

.order-map-canvas {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

/* 通用标题样式 */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 16px;
    color: #333;
}

/* 侧边栏标题样式 */
.sidebar-title {
    font-size: 24px !important;
    font-weight: bold;
    margin: 0;
}

/* 通用列表样式 */
ul, ol {
    margin-left: 20px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
}

/* 通用链接样式 */
a {
    color: #4CAF50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 通用分隔线样式 */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 16px 0;
}

/* 通用动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-in-up {
    animation: slideInUp 0.4s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.bounce {
    animation: bounce 1s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

.shake {
    animation: shake 0.6s ease;
}

/* 通用加载状态样式 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid rgba(76, 175, 80, 0.2);
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 增强的加载状态 */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 16px;
}

.loading-text {
    font-size: 16px;
    color: #666;
    text-align: center;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4CAF50;
    animation: loadingDots 1.5s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 60%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    30% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 增强的按钮交互效果 */
button {
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 增强的卡片交互效果 */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 增强的输入框交互效果 */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

/* 增强的链接交互效果 */
a {
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* 增强的标签页交互效果 */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4CAF50;
    animation: tabActive 0.3s ease;
}

@keyframes tabActive {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* 增强的通知样式 */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: notificationSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
}

.notification.success {
    background-color: #4CAF50;
    color: white;
}

.notification.error {
    background-color: #f44336;
    color: white;
}

.notification.warning {
    background-color: #ff9800;
    color: white;
}

.notification.info {
    background-color: #2196F3;
    color: white;
}

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

/* 增强的骨架屏效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-image {
    height: 120px;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* 增强的进度条效果 */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressAnimation 2s infinite;
}

@keyframes progressAnimation {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 智能功能卡片样式 */
.smart-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 5px !important;
    margin-top: 2px !important;
}

.smart-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 8px;
    color: white;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.2);
}

.smart-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.smart-feature-card:active {
    transform: translateY(-1px);
}

.smart-feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.smart-feature-name {
        font-size: 15px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    .smart-feature-desc {
        font-size: 12px;
        opacity: 0.9;
        line-height: 1.3;
    }

/* 服务卡片样式 */
.service-category {
    margin-bottom: 2px !important;
    padding: 8px;
}

.category-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #4CAF50;
    padding-bottom: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 5px !important;
    margin-top: 6px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    box-shadow: none;
}

.service-item:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.service-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.service-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 推荐服务样式 */
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px !important;
}

.recommended-item {
    transition: all 0.3s ease;
    background: none;
    border: none;
    box-shadow: none;
}

.recommended-item:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.recommended-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.recommended-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.recommended-price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 14px;
}

/* 广告栏容器 - 控制间距 */
.banner {
    width: 100%;
    padding: 0;
    margin: 10px 0;
    box-sizing: border-box;
}

/* 广告窗基础样式 - 确保正方形1:1、间距5px */
.banner-slider, #bannerSlider {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.banner-item, #bannerSlider .banner-item {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #f5f5f5 !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.banner-item img, #bannerSlider .banner-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
}

.banner-item video, #bannerSlider .banner-item video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    background-color: #000 !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* 隐藏视频默认控件 */
.banner-item video::-webkit-media-controls,
.banner-item video::-webkit-media-controls-enclosure,
.banner-item video::-webkit-media-controls-panel,
.banner-item video::-webkit-media-controls-play-button,
.banner-item video::-webkit-media-controls-start-playback-button,
.banner-item video::-webkit-media-controls-volume-slider,
.banner-item video::-webkit-media-controls-timeline,
.banner-item video::-webkit-media-controls-fullscreen-button,
.banner-item video::-webkit-media-controls-mute-button,
.banner-item video::-webkit-media-controls-overlay-enclosure,
#bannerSlider .banner-item video::-webkit-media-controls,
#bannerSlider .banner-item video::-webkit-media-controls-enclosure,
#bannerSlider .banner-item video::-webkit-media-controls-panel,
#bannerSlider .banner-item video::-webkit-media-controls-play-button,
#bannerSlider .banner-item video::-webkit-media-controls-start-playback-button,
#bannerSlider .banner-item video::-webkit-media-controls-volume-slider,
#bannerSlider .banner-item video::-webkit-media-controls-timeline,
#bannerSlider .banner-item video::-webkit-media-controls-fullscreen-button,
#bannerSlider .banner-item video::-webkit-media-controls-mute-button,
#bannerSlider .banner-item video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 广告窗响应式布局 - 默认4列一排（屏幕>=1000px） */
@media (min-width: 1000px) {
    .banner-slider, #bannerSlider {
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 5px !important;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px !important;
    }
}

/* 广告窗响应式布局 - 移动端2x2（屏幕<1000px） */
@media (max-width: 999px) {
    .banner-slider, #bannerSlider {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 5px !important;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
    }
}

/* 768px以下响应式 */
@media (max-width: 768px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px !important;
    }
    
    .banner-dots {
        bottom: 5px !important;
    }
    
    .banner-dot {
        width: 6px !important;
        height: 6px !important;
    }
}

/* 通用响应式样式 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        margin-bottom: 16px;
    }
    
    /* 智能功能卡片响应式 */
    .smart-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px !important;
    }
    
    .smart-feature-card {
        padding: 15px 10px;
    }
    
    .smart-feature-icon {
        font-size: 30px;
    }
    
    .smart-feature-name {
        font-size: 14px;
    }
    
    .smart-feature-desc {
        font-size: 11px;
    }
    
    /* 服务网格响应式 */
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 5px !important;
    }
    
    .service-name {
        font-size: 13px;
    }
    
    /* 热门推荐响应式 */
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px !important;
    }
}

/* 响应式调整：当顶部导航栏高度变化时，调整内容区域的顶部内边距 */
@media (max-width: 1024px) {
    /* 平板设备：顶部导航栏高度70px */
    .content-area,
    .matching-test-container,
    .scene-simulator-container {
        padding-top: 80px !important;
    }
}

@media (max-width: 768px) {
    /* 移动端设备：顶部导航栏高度72px */
    body {
        font-size: 12px !important;
    }
    
    .content-area,
    .matching-test-container,
    .scene-simulator-container {
        padding-top: 82px !important;
    }
    
    /* 统一页面容器响应式 - 不包括服务详情页面的main-content */
    .page-container,
    .container,
    .profile-container,
    .settings-container,
    .growth-container {
        padding: 82px 5px 80px 5px !important;
    }
}

@media (max-width: 480px) {
    /* 小屏幕设备：顶部导航栏高度72px */
    body {
        font-size: 11px !important;
    }
    
    .content-area,
    .matching-test-container,
    .scene-simulator-container {
        padding-top: 82px !important;
    }
    
    .banner-slider {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 5px !important;
        height: auto !important;
    }
    
    .banner-item {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
    
    .banner-dots {
        bottom: 3px !important;
    }
    
    .banner-dot {
        width: 4px !important;
        height: 4px !important;
        margin: 0 2px !important;
    }
    
    /* 统一页面容器响应式 - 不包括服务详情页面的main-content */
    .page-container,
    .container,
    .profile-container,
    .settings-container,
    .growth-container {
        padding: 82px 5px 80px 5px !important;
    }
    
    /* 智能功能卡片响应式 - 小屏幕单列 */
    .smart-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 5px !important;
    }
    
    .smart-feature-card {
        padding: 12px 8px;
    }
    
    .smart-feature-icon {
        font-size: 24px;
    }
    
    .smart-feature-name {
        font-size: 12px;
    }
    
    .smart-feature-desc {
        font-size: 10px;
    }
    
    /* 服务网格响应式 - 小屏幕更多列 */
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 5px !important;
    }
    
    .service-icon {
        font-size: 24px;
    }
    
    .service-name {
        font-size: 12px;
    }
    
    /* 热门推荐响应式 - 小屏幕单列或两列自适应 */
    .recommended-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 5px !important;
    }
    
    .recommended-icon {
        font-size: 20px;
    }
    
    .recommended-name {
        font-size: 11px;
    }
    
    .recommended-price {
        font-size: 12px;
    }
    
    /* 卡片样式优化 */
    .card {
        padding: 10px;
    }
    
    .category-title {
        font-size: 13px;
    }
    
    /* 顶部导航栏响应式优化 */
    .top-nav {
        padding: 5px 5px;
    }
    
    .top-nav .nav-title,
    .top-nav .page-title {
        font-size: 18px;
    }
    
    /* 底部导航栏响应式优化 */
    #bottomNavBar {
        padding: 5px 0;
    }
    
    /* 按钮响应式优化 */
    button,
    .btn,
    .batch-action-button,
    .start-assessment-btn,
    .start-test-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 表单元素响应式优化 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 服务详情页面响应式优化 */
    .service-detail-page .service-intro,
    .service-detail-page .service-description,
    .service-detail-page .service-info,
    .service-detail-page .service-content,
    .service-detail-page .service-introduction,
    .service-detail-page .service-price-section,
    .service-detail-page .order-processing-section {
        padding: 10px;
        margin: 10px 0;
    }
    
    /* 智能分析卡片响应式优化 */
    .finance-card {
        padding: 12px;
    }
    
    .finance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .finance-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .finance-btn {
        padding: 10px 5px;
        min-height: 70px;
    }
    
    .finance-btn > div:first-child {
        font-size: 20px !important;
    }
    
    .finance-btn > div:nth-child(3) {
        font-size: 16px !important;
    }
    
    /* 消息通知页面响应式优化 */
    .notification-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .notification-item {
        padding: 12px;
    }
    
    /* 成长中心页面响应式优化 */
    .growth-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .growth-task-item,
    .privilege-item {
        padding: 12px;
    }
    
    /* 个人中心页面响应式优化 */
    .profile-card {
        padding: 15px;
    }
    
    .user-info {
        flex-direction: row;
        gap: 15px;
    }
    
    .user-name-card,
    .team-card {
        width: 100%;
    }
    
    /* 设置页面响应式优化 */
    .feature-item {
        padding: 12px 15px;
    }
    
    .avatar-setting-card {
        padding: 15px;
    }
}

/* 移动端滚动支持 */
@media screen and (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pan-x pinch-zoom;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: default;
        -webkit-user-select: text;
        user-select: text;
    }
    
    body {
        position: relative;
        width: 100%;
    }
    
    #app,
    .page-container,
    .content-area,
    .main-content,
    .container,
    .profile-container,
    .case-review-container,
    .about-container,
    .unified-container {
        min-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
        touch-action: pan-y pan-x;
        width: 100%;
    }
    
    .scrollable-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: 100%;
        touch-action: pan-y pan-x;
    }
    
    .banner-container,
    .smart-features-grid,
    .recommended-grid,
    .service-detail-container,
    .chat-container,
    .message-list,
    .order-list,
    .settings-container,
    .checkin-container,
    .data-container,
    .analytics-container,
    .notification-list,
    .coupon-list,
    .address-list,
    .certificate-list,
    .schedule-list,
    .member-list,
    .team-container,
    .studio-container,
    .community-container,
    .topic-list,
    .comment-list,
    .like-list,
    .favorites-list,
    .chat-history-content,
    .group-container,
    .friend-list,
    .guardian-container,
    .family-container,
    .monitor-container,
    .history-container,
    .emergency-container,
    .feedback-container,
    .share-container,
    .search-container,
    .task-container,
    .skill-container,
    .test-container,
    .payment-container,
    .bank-container,
    .alipay-container,
    .wechat-container,
    .wallet-container,
    .funds-container,
    .points-container,
    .income-container,
    .log-container,
    .report-container,
    .form-container,
    .modal-content,
    .popup-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pan-x;
        height: auto;
    }
    
    input,
    textarea,
    select {
        -webkit-user-select: auto;
        user-select: auto;
        touch-action: manipulation;
    }
    
    .top-nav,
    .bottom-nav-container {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999999 !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    .top-nav {
        top: 0 !important;
    }
    
    .bottom-nav-container {
        bottom: 0 !important;
        height: var(--bottom-nav-height) !important;
    }
    
    .swipe-container,
    .swiper-container,
    .carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
    
    .swipe-item,
    .swiper-slide,
    .carousel-item {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* 功能页面统一样式 */

/* 顶部导航栏左侧区域 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 返回按钮样式 */
.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 导航栏标题 */
.page-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    flex: 1;
}

/* 主要内容区域 */
.matching-test-container,
.scene-simulator-container {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: var(--top-spacing) 5px 90px 5px; /* 70px导航栏 + 10px间距 */
    max-width: 800px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.btn-secondary:hover {
    background-color: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* 按钮容器 - 确保上一步和下一步按钮并排显示 */
.button-container,
.simulation-controls,
.control-buttons,
.navigation-buttons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.button-container .btn,
.simulation-controls .control-btn,
.control-buttons button,
.navigation-buttons button {
    flex: 1;
}

/* 卡片样式 - 统一所有页面卡片为紧凑布局，保持5px间距 */
.card,
.simulation-card,
.simulation-progress,
.simulation-content,
.implementation-card,
.unified-card,
.ai-analysis-section,
.user-profile-section,
.smart-recommendations,
.recommendation-item,
.ai-analysis-card,
.result-card,
.assessment-intro,
.test-intro,
.service-card,
.price-card,
.order-card,
.order-detail-card,
.client-info-card,
.profile-card,
.feature-item,
.setting-card,
.notification-item,
.growth-task-item,
.privilege-item,
.scene-item,
.progress-container,
.question-container,
.button-container,
.share-tip,
.option-item,
.options-container,
.question-title,
.progress-bar,
.progress-text {
    background: white;
    border-radius: 8px;
    padding: 12px 5px !important;
    margin: 0 !important;
    margin-bottom: 5px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    line-height: 1.4 !important;
}

/* 智能推荐卡片特殊样式 - 保持2px间距 */
.recommendation-card {
    background: white;
    border-radius: 8px;
    padding: 20px !important;
    margin: 0 !important;
    margin-bottom: 2px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    line-height: 1.4 !important;
}

/* 财务卡片保持白色背景 */
.finance-card {
    background-color: white !important;
    color: #333 !important;
    padding: 12px 5px !important;
    border: none !important;
}

/* 确保选项容器没有额外间距 */
.options-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
}

/* 确保选项卡片紧凑 */
.option-item {
    padding: 8px !important;
    margin-bottom: 2px !important;
    gap: 10px !important;
}

/* 确保标题紧凑 */
.question-title {
    margin-bottom: 2px !important;
    padding: 4px 0 !important;
    line-height: 1.4 !important;
}

/* 确保按钮容器紧凑 */
.button-container {
    margin-top: 2px !important;
    gap: 8px !important;
    padding: 8px !important;
}

/* 确保分享提示紧凑 */
.share-tip {
    margin-top: 2px !important;
    padding: 8px !important;
}

/* 确保在所有屏幕尺寸下按钮都并排显示 */
@media (max-width: 768px) {
    .button-container,
    .simulation-controls,
    .control-buttons,
    .navigation-buttons {
        flex-direction: row;
        gap: 5px;
    }
    
    .button-container .btn,
    .simulation-controls .control-btn,
    .control-buttons button,
    .navigation-buttons button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 进度条样式 */
.progress-container {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 问题卡片样式 */
.question-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.question-number {
    font-size: 16px;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e8f5e8;
}

.question-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

/* 选项样式 */
.options-container,
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0px !important;
}

.option-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 2px !important;
}

.option-item:hover {
    background: #e8f5e8;
    border-color: #4CAF50;
}

.option-item.selected {
    background: #e8f5e8;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

/* 选项索引样式 */
.option-index {
    width: 36px;
    height: 36px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 分享提示样式 */
.share-tip {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 8px;
    margin: 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #856404;
    transition: all 0.3s ease;
}

.share-btn {
    background: #ffc107;
    color: #856404;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* AI分析卡片样式 */
.ai-analysis-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 2px;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
}

.ai-analysis-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-analysis-content {
    font-size: 16px;
    line-height: 1.6;
}

/* 结果卡片样式 */
.result-card {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 2px;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.result-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-top: 12px;
}

/* 用户画像标签样式 */
.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.user-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 评估介绍卡片样式 */
.assessment-intro,
.test-intro {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.intro-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* 开始评估/测试按钮 */
.start-assessment-btn,
.start-test-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.start-assessment-btn:hover,
.start-test-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}