/* 自定义样式补充 */

/* 认证页面标签样式 */
.auth-tab {
    color: #6B7280;
    background: transparent;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #10B981;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 底部导航样式 */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: #6B7280;
    transition: all 0.2s ease;
    border-radius: 12px;
    min-height: 60px;
}

.nav-item.active {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.nav-item span {
    margin-top: 2px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(0,0,0,0.05);
}

.nav-item.active:hover {
    background: rgba(16, 185, 129, 0.15);
}

/* 输入框聚焦效果 */
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #22C55E !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* 社区标签页样式 */
.community-tab {
    border-bottom: 2px solid transparent;
    color: #6B7280;
    transition: all 0.2s;
}

.community-tab.active {
    color: #10B981;
    border-bottom-color: #10B981;
}

/* 点击效果 */
.quick-action:hover,
.coach-feature:hover,
.equipment-feature:hover {
    transform: translateY(-1px);
    transition: transform 0.2s;
}

/* 加载动画 */
.upload-progress {
    transition: width 0.3s ease;
}

/* 模态框动画 */
#modalOverlay {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

#modalContent {
    animation: slideUp 0.3s ease-out;
}

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

/* 页面切换动画 */
.page-content {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-content.hidden {
    opacity: 0;
    transform: translateX(10px);
    display: none;
}

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

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

/* 启动页面动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#authPage {
    animation: slideInUp 0.4s ease-out;
}

#mainApp {
    animation: slideInUp 0.4s ease-out;
}

/* 网球球体旋转动画 */
@keyframes spin-tennis {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-tennis-ball {
    animation: spin-tennis 3s linear infinite;
}

/* 开关样式 */
.toggle {
    appearance: none;
    width: 44px;
    height: 24px;
    background: #E5E7EB;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle:checked {
    background: #10B981;
}

.toggle::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle:checked::before {
    transform: translateX(20px);
}

/* Toast 样式增强 */
#toast {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 320px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-4 > div:nth-child(n+3) {
        margin-top: 16px;
    }

    .app-container {
        max-width: 100%;
        min-height: 100vh;
    }
}

@media (max-width: 375px) {
    .app-container {
        max-width: 100%;
    }
}

/* iPhone X 及以上设备的安全区域 */
@supports (padding: max(0px)) {
    .safe-area-top {
        padding-top: max(20px, env(safe-area-inset-top));
    }
    
    .safe-area-bottom {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* 点赞动画 */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.like-btn.animate-pulse {
    animation: heartBeat 0.3s ease;
}

/* 卡片悬停效果 */
.post-card:hover,
.equipment-card:hover,
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* 渐变背景 */
.bg-gradient-custom {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* 骨架屏效果 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* 加载状态指示器 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #10B981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 验证状态样式 */
.input-success {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 按钮加载状态 */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* 表单错误提示 */
.form-error {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.form-error::before {
    content: '⚠';
    margin-right: 0.25rem;
}

/* 成功提示 */
.form-success {
    color: #10B981;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.form-success::before {
    content: '✓';
    margin-right: 0.25rem;
}

/* 毛玻璃效果增强 */
.glass-effect-strong {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 浮动动作按钮 */
.fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #22C55E, #10B981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    z-index: 30;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .app-container {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .glass-effect {
        background: rgba(31, 41, 55, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 社区页面样式 */
.post-filter-tab {
    @apply flex flex-col items-center justify-center py-3 px-2 rounded-xl text-xs font-medium text-gray-600 transition-all duration-200;
}

.post-filter-tab.active {
    @apply bg-white text-tennis shadow-sm;
}

.post-filter-tab i {
    @apply text-base;
}

.post-type-btn {
    @apply transition-all duration-200;
}

.post-type-btn.active i {
    @apply text-tennis;
}

.post-type-btn:not(.active):hover {
    @apply border-gray-300 bg-gray-50;
}

/* 帖子卡片样式 */
.post-card {
    @apply bg-white rounded-2xl p-4 card-shadow transition-all duration-200;
}

.post-card:hover {
    @apply shadow-lg transform -translate-y-1;
}

.post-type-badge {
    @apply inline-flex items-center px-2 py-1 rounded-full text-xs font-medium;
}

.post-type-badge.动态 {
    @apply bg-blue-100 text-blue-700;
}

.post-type-badge.约球 {
    @apply bg-green-100 text-green-700;
}

.post-type-badge.活动 {
    @apply bg-orange-100 text-orange-700;
}

.post-tag {
    @apply inline-flex items-center px-2 py-1 rounded-full text-xs bg-gray-100 text-gray-700;
}

.post-actions {
    @apply flex items-center space-x-4 pt-3 border-t border-gray-100;
}

.post-action-btn {
    @apply flex items-center space-x-1 text-gray-500 hover:text-tennis transition-colors duration-200 text-sm;
}

.post-action-btn.liked {
    @apply text-red-500;
}

.user-avatar {
    @apply w-10 h-10 rounded-full bg-gradient-to-br from-tennis to-green-400 flex items-center justify-center text-white font-bold;
}

/* 标签输入样式 */
.tag-item {
    @apply inline-flex items-center px-3 py-1 rounded-full text-sm bg-tennis bg-opacity-10 text-tennis;
}

.tag-item button {
    @apply ml-2 text-tennis hover:text-red-500 transition-colors;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.3s ease-out;
}

/* 社区统计卡片动画 */
.stats-card {
    @apply transition-transform duration-200;
}

.stats-card:hover {
    @apply transform scale-105;
}

/* ==============================================
   蓝绿风格社区优化样式 (替代小红书红色系)
   ============================================== */

/* 蓝绿配色方案 */
:root {
    --primary-blue: #4A90E2;
    --primary-green: #10B981;
    --blue-gradient-start: #007AFF;
    --blue-gradient-end: #5AC8FA;
    --green-gradient-start: #00C896;
    --green-gradient-end: #22C55E;
    --blue-green-light: #E8F5FF;
    --blue-green-gray: #F0F9FF;
    --blue-green-dark: #1E3A8A;
    --blue-green-shadow: rgba(74, 144, 226, 0.15);
}

/* 社区头部样式优化 */
.community-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 0 0 24px 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px var(--blue-green-shadow);
}

.community-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.community-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.community-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-stat-card:hover::before {
    opacity: 1;
}

.community-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 筛选标签优化 */
.filter-tabs {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 4px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

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

.filter-tab {
    flex: 1;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    min-width: 80px;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    transform: scale(1.02);
    box-shadow: 0 6px 20px var(--blue-green-shadow);
}

.filter-tab:not(.active):hover {
    background: var(--blue-green-light);
    color: var(--primary-blue);
}

/* 帖子卡片重新设计 */
.xiaohongshu-post-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.xiaohongshu-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.post-header {
    padding: 16px 20px 12px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.xiaohongshu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
    position: relative;
    box-shadow: 0 4px 12px var(--blue-green-shadow);
}

.xiaohongshu-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.user-meta {
    flex: 1;
}

.username {
    font-weight: 600;
    color: var(--blue-green-dark);
    font-size: 14px;
    margin-bottom: 2px;
}

.post-time {
    font-size: 12px;
    color: #999;
}

.xiaohongshu-post-badge {
    position: absolute;
    top: 16px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.xiaohongshu-post-badge.动态 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.xiaohongshu-post-badge.约球 {
    background: linear-gradient(135deg, var(--blue-gradient-start), var(--green-gradient-start));
    color: white;
}

.xiaohongshu-post-badge.活动 {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-gradient-end));
    color: white;
}

.post-content {
    padding: 0 20px 16px;
}

.post-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-green-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-location {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.post-location i {
    margin-right: 4px;
    color: var(--primary-blue);
}

.xiaohongshu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.xiaohongshu-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--blue-green-light), #fff);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: var(--primary-blue);
    font-weight: 500;
}

/* 动作按钮重新设计 */
.xiaohongshu-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #f5f5f5;
    background: linear-gradient(135deg, #fafafa, #fff);
}

.action-group {
    display: flex;
    gap: 20px;
}

.xiaohongshu-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 12px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.xiaohongshu-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.xiaohongshu-action-btn:hover::before {
    opacity: 0.1;
}

.xiaohongshu-action-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.xiaohongshu-action-btn i {
    font-size: 16px;
    transition: all 0.3s ease;
}

.xiaohongshu-action-btn span {
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 点赞按钮特殊效果 */
.xiaohongshu-action-btn.liked {
    color: #E11D48;
    background: rgba(225, 29, 72, 0.1);
}

.xiaohongshu-action-btn.liked i {
    animation: heartPulse 0.6s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 约球特殊按钮 */
.join-match-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green)) !important;
    color: white !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px var(--blue-green-shadow);
}

.join-match-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--blue-green-shadow);
}

/* 发布按钮优化 */
.xiaohongshu-fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 32px var(--blue-green-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    border: 3px solid white;
    cursor: pointer;
}

.xiaohongshu-fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.3);
}

/* 加载状态优化 */
.xiaohongshu-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, var(--blue-green-light) 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: xiaohongshuSkeleton 1.5s infinite;
    border-radius: 12px;
}

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

/* 模态框优化 */
.xiaohongshu-modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.xiaohongshu-modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 评论区优化 */
.comment-item {
    padding: 12px;
    border-radius: 16px;
    background: var(--blue-green-light);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .community-stats-grid {
        gap: 8px;
    }
    
    .community-stat-card {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .xiaohongshu-post-card {
        margin-bottom: 12px;
        border-radius: 16px;
    }
    
    .post-header {
        padding: 12px 16px 8px;
    }
    
    .post-content {
        padding: 0 16px 12px;
    }
    
    .xiaohongshu-actions {
    padding: 12px 16px;
    }
}

/* 平滑动画类 */
.smooth-entrance {
    animation: smoothEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==============================================
   装备页面专用样式
   ============================================== */

/* 装备网格布局 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.equipment-grid.list-view {
    grid-template-columns: 1fr;
}

/* 装备卡片样式 */
.equipment-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.equipment-card.list-view {
    display: flex;
    align-items: center;
    padding: 16px;
}

.equipment-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f8f9fa;
}

.equipment-card.list-view .equipment-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-right: 16px;
}

.equipment-info {
    padding: 16px;
}

.equipment-card.list-view .equipment-info {
    flex: 1;
    padding: 0;
}

.equipment-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-green-dark);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.equipment-brand {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.equipment-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
}

.price-unit {
    font-size: 12px;
    color: #666;
    margin-left: 2px;
}

.equipment-rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.equipment-rating i {
    color: #FFD700;
    margin-right: 4px;
}

/* 装备特征标签 */
.equipment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.feature-tag {
    padding: 2px 6px;
    background: var(--blue-green-light);
    color: var(--primary-blue);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
}

/* 装备动作按钮 */
.equipment-actions {
    display: flex;
    gap: 8px;
}

.equipment-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.equipment-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
}

.equipment-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--blue-green-shadow);
}

.equipment-btn.secondary {
    background: white;
    color: var(--primary-blue);
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.equipment-btn.secondary:hover {
    background: var(--blue-green-light);
}

/* 租赁标识 */
.rental-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--green-gradient-start), var(--green-gradient-end));
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 200, 150, 0.3);
}

/* 分类徽章 */
.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(10px);
}

.category-badge.网球拍 {
    background: rgba(74, 144, 226, 0.9);
}

.category-badge.专业球鞋 {
    background: rgba(16, 185, 129, 0.9);
}

.category-badge.运动服饰 {
    background: rgba(139, 92, 246, 0.9);
}

.category-badge.辅助装备 {
    background: rgba(245, 101, 101, 0.9);
}

/* 视图切换按钮 */
.view-toggle {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.view-toggle:hover:not(.active) {
    background: var(--blue-green-light);
    color: var(--primary-blue);
}

/* 装备详情页面样式 */
.equipment-detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

.equipment-detail-header {
    margin-bottom: 20px;
}

.equipment-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-green-dark);
    margin-bottom: 8px;
}

.equipment-detail-brand {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 12px;
}

.equipment-detail-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.detail-price-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #FFD700;
    font-size: 16px;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* 装备规格展示 */
.equipment-specifications {
    background: var(--blue-green-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.specifications-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-green-dark);
    margin-bottom: 12px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.spec-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.spec-value {
    font-size: 14px;
    color: var(--blue-green-dark);
    font-weight: 600;
}

/* 租赁信息样式 */
.rental-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
}

.rental-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.rental-title i {
    margin-right: 8px;
    font-size: 20px;
}

.rental-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.rental-option {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rental-option:hover {
    background: rgba(255, 255, 255, 0.25);
}

.rental-option.selected {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.rental-period {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rental-price {
    font-size: 16px;
    font-weight: 700;
}

.rental-deposit {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
}

/* 评价区域样式 */
.reviews-section {
    margin-top: 20px;
}

.reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-green-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.add-review-btn {
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.review-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.review-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-green-dark);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #FFD700;
    font-size: 12px;
}

.review-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

/* 推荐装备样式 */
.recommended-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.recommended-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.recommended-info {
    padding: 12px;
}

.recommended-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-green-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green);
}

/* 搜索结果高亮 */
.search-highlight {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(74, 144, 226, 0.3);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .equipment-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .rental-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .equipment-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .equipment-btn {
        width: 100%;
    }
}

/* 加载动画优化 */
.equipment-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.equipment-loading i {
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

/* 空状态样式 */
.equipment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.equipment-empty i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.equipment-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.equipment-empty p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

/* 过滤器动画 */
.filter-tabs .filter-tab {
    position: relative;
    overflow: hidden;
}

.filter-tabs .filter-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.filter-tabs .filter-tab.active::before {
    opacity: 1;
}

.filter-tabs .filter-tab span,
.filter-tabs .filter-tab i {
    position: relative;
    z-index: 1;
}

/* 租赁预订弹窗样式 */
.pickup-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.pickup-option:hover {
    border-color: var(--primary-blue);
    background: var(--blue-green-light);
    }

.pickup-option.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--blue-green-light), white);
    box-shadow: 0 4px 12px var(--blue-green-shadow);
}

.pickup-option i {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.pickup-option div {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-green-dark);
    margin-bottom: 4px;
}

.pickup-option small {
    font-size: 12px;
    color: #666;
}

.rental-summary {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

.rental-summary .flex {
    font-size: 14px;
}

.rental-summary .flex.font-bold {
    font-size: 16px;
    border-top: 1px solid #d1d5db;
    padding-top: 8px;
    margin-top: 8px;
}


