/* 首页特定样式 */

/* 状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 0;
    height: 44px;
    background-color: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 导航栏 - 调整为两边对齐 */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    height: 44px;
    background-color: transparent;
    border-bottom: none;
    position: relative;
}

.nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* 调整PRO徽章样式 */
.pro-badge {
    background-color: #34537A;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(52, 83, 122, 0.25);
}

/* 鉴定中心区域 - 增加间隙 */
.scan-center {
    background-color: #f8f8f8;
    border-radius: 16px;
    padding: 20px 16px;
    margin: 10px 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scan-center:active {
    transform: scale(0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

/* 图片展示区域 - 适当增加高度 */
.scan-image-container {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.scan-image-placeholder {
    width: 130px;
    height: 130px;
    background-color: rgba(52, 83, 122, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #34537A;
    font-size: 18px;
    font-weight: 500;
    box-shadow: inset 0 0 10px rgba(52, 83, 122, 0.05);
}

/* 鉴定信息和按钮 - 增加间距 */
.scan-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scan-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.scan-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
    max-width: 290px;
}

.scan-button {
    background-color: #34537A;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 83, 122, 0.25);
}

.scan-button:active {
    background-color: #2a4361;
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(52, 83, 122, 0.15);
}

/* 底部卡片区域 - 统一卡片样式，增加间距 */
.card-container {
    display: flex;
    gap: 16px;
    margin: 0 12px 24px;
}

/* 统一卡片样式 */
.card {
    flex: 1;
    background-color: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
}

.card .card-icon {
    margin-bottom: 14px;
}

.card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.card .card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 兼容旧样式 */
.action-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.action-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-arrow {
    display: flex;
    align-items: center;
}

/* 功能区标题 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-display);
}

/* 收藏区域 */
.features-section {
    margin-bottom: var(--spacing-lg);
}

/* 收藏操作按钮 */
.collection-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background-secondary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button:active {
    background-color: var(--background-tertiary);
    transform: scale(0.96);
}

/* 分类筛选 */
.collection-filters {
    margin-bottom: 16px;
}

.filter-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-item {
    flex: 0 0 auto;
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-item.active {
    background-color: var(--primary-color);
    color: white;
}

.filter-item:active {
    opacity: 0.8;
    transform: scale(0.96);
}

/* 收藏列表 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.collection-item {
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.collection-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-item:active .collection-image img {
    transform: scale(1.05);
}

.item-select {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.item-checkbox {
    display: none;
}

.item-checkbox + label {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

.item-checkbox:checked + label {
    background-color: var(--primary-color);
}

.item-checkbox:checked + label::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 5px;
    width: 10px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* 批量操作工具栏 */
.batch-actions {
    display: none;
    padding: 12px 16px;
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}

.batch-actions.visible {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.select-all-checkbox {
    margin: 0;
}

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

.batch-button {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.batch-button.delete-button {
    color: var(--color-error);
}

.batch-button:active {
    background-color: var(--background-secondary);
}

.collection-info {
    padding: var(--spacing-sm);
}

.collection-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-period {
    font-size: 12px;
    color: var(--text-secondary);
}

.collection-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    padding: var(--spacing-xl);
    grid-column: span 2;
}

.collection-empty svg {
    margin-bottom: var(--spacing-md);
}

.collection-empty p {
    font-size: 14px;
}

/* 精选区域 */
.featured-section {
    margin-bottom: var(--spacing-lg);
    background-color: var(--card-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(52, 83, 122, 0.05) 0%, rgba(52, 83, 122, 0) 100%);
    z-index: 0;
    opacity: 0.7;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: #34537A;
    border-radius: 1px;
}

/* 修改更多按钮样式，使其显示 */
.section-more {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #34537A;
    text-decoration: none;
    margin-left: auto;
}

.section-more svg {
    margin-left: 4px;
}

.featured-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.featured-item {
    display: flex;
    flex-direction: row;
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0.5px solid var(--divider-color);
}

.featured-item:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-xs);
}

.featured-image {
    width: 120px;
    min-width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.featured-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:active .featured-image img {
    transform: scale(1.02);
}

.featured-info {
    flex: 1;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    height: 120px;
    overflow: hidden;
}

.featured-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-period {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.featured-period::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    background-color: #34537A;
    opacity: 0.2;
    border-radius: 50%;
}

.featured-desc {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
}

/* 会员卡片 */
.membership-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.membership-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
}

.membership-info {
    flex: 1;
}

.membership-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.membership-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
} 