/* FishPost页面专用样式 */

/* 强制固定fishpost页面header - 最高优先级 */
.fishpost-page .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    width: 100% !important;
}

.fishpost-page .main-content {
    margin-top: 160px !important;
}

/* 照片显示区域样式 */
.photo-display-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 12px 0;
}

/* 没有照片提示样式 */
.no-photo-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 12px 0;
    padding: 20px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item .photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.8) 0%, rgba(0, 242, 254, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay .zoom-icon {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* 照片放大浏览模态框 */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.photo-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.photo-modal-close:hover {
    color: #4facfe;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.photo-modal-info {
    margin-top: 16px;
    text-align: center;
    color: white;
    max-width: 500px;
}

.photo-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4facfe;
}

.photo-modal-description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

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

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* 浏览模式专用样式 */
.browse-mode .photo-item {
    cursor: pointer;
}

.browse-mode .photo-item::after {
    content: '🔍';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.browse-mode .photo-item:hover::after {
    opacity: 1;
}


/* 进度条容器 */
.progress-container {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
    width: 25%;
    /* 移除动画效果，保持静态 */
    transition: none;
}

/* 步骤导航 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: #2ed573;
    color: white;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 14px;
}

/* 有照片的步骤 - 绿色 */
.step-item.has-photos .step-number {
    background: #2ed573;
    color: white;
}

.step-item.has-photos .step-number::after {
    content: '✓';
    font-size: 14px;
}

/* 没有照片的步骤 - 灰色 */
.step-item.no-photos .step-number {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

/* 可点击的步骤 */
.step-item.clickable-step {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item.clickable-step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.step-item.clickable-step:hover .step-label {
    color: white;
}

.step-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.2;
}

.step-item.active .step-label {
    color: white;
    font-weight: 500;
}

/* 步骤内容 */
.step-content {
    display: none;
    padding: 16px;
    padding-bottom: 100px; /* 为底部操作栏留出空间 */
}

.step-content.active {
    display: block;
}

/* 步骤卡片 */
.step-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 步骤头部 */
.step-header {
    text-align: center;
    margin-bottom: 24px;
}

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

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #4facfe;
    background: #f0f8ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    font-size: 48px;
    opacity: 0.6;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.upload-tip {
    font-size: 12px;
    color: #999;
}

/* 上传预览 */
.upload-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-image-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

/* 上传进度容器 */
.upload-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 0 0 16px 16px;
}

.upload-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.upload-progress {
    height: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.upload-progress.completed {
    background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
}

.upload-progress.failed {
    background: linear-gradient(135deg, #ff6b35 0%, #ffa726 100%);
}

.upload-status {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}

/* 多图上传容器 */
.multi-upload-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.multi-upload-container .upload-area {
    flex: 1;
    margin-bottom: 0;
}

/* 识别结果 */
.recognition-result {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

/* 鱼获识别结果 */
.result-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fish-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fish-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.fish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fish-details {
    flex: 1;
}

.fish-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.fish-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.fish-weight {
    font-size: 14px;
    color: #666;
}

.fish-star {
    display: flex;
    align-items: center;
}

.fish-map {
    font-size: 16px;
    color: #4facfe;
    font-weight: 900;
    padding: 4px 8px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

/* 可点击的鱼信息栏样式 */
.clickable-fish-info {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-fish-info:hover {
    background: #f8f9fa;
    border-color: #4facfe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.15);
}

.click-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-fish-info:hover .click-hint {
    opacity: 1;
}

.star-icon {
    width: 20px;
    height: 20px;
}

/* 地图选择 */
.map-selection {
    margin-bottom: 20px;
}

.selection-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.map-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-option:hover {
    border-color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 172, 254, 0.2);
}

.map-option.selected {
    border-color: #4facfe;
    background: #f0f8ff;
    color: #4facfe;
}

.map-name {
    font-size: 14px;
    font-weight: 500;
}

/* 识别结果表格 */
.result-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    width: 60px;
    flex-shrink: 0;
}

.table-value {
    flex: 1;
    font-size: 14px;
    color: #666;
    margin: 0 12px;
}

.edit-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #4facfe;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: rgba(79, 172, 254, 0.1);
}

/* 装备标签 */
.equipment-tags {
    margin-top: 12px;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.equipment-label {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.equipment-value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.equipment-tag {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    display: inline-block;
}

/* 装备分类样式 */
.equipment-category {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px 0;
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* 窝料标签 */
.bait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bait-tag {
    background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* 窝料分类样式 */
.chum-category {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px 0;
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}

.chum-tag {
    background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px 4px 2px 0;
    display: inline-block;
}

/* 窝料项目样式 */
.chum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.chum-label {
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 12px;
}

.chum-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chum-label {
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chum-value {
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* 卡米数输入 */
.card-meter-input {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.card-meter-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.card-meter-label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.card-meter-value {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    min-width: 30px;
    text-align: center;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.card-meter-value:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #0056b3;
}

.card-meter-unit {
    font-size: 14px;
    color: #6c757d;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meter-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.meter-input:focus {
    border-color: #4facfe;
}

.input-unit {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.save-button {
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.3s ease forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.save-button:hover {
    background: #0056b3;
}

.save-button:active {
    background: #004085;
}

/* 跳过按钮 */
.skip-section {
    text-align: center;
    margin-top: 20px;
}

.skip-btn {
    background: none;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-btn:hover {
    border-color: #4facfe;
    color: #4facfe;
}

/* 确认页面 */
.confirm-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.confirm-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-section:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.edit-section-btn {
    background: none;
    border: none;
    color: #4facfe;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.edit-section-btn:hover {
    background: rgba(79, 172, 254, 0.1);
}

.section-content {
    font-size: 14px;
    color: #666;
}

/* 信息项样式 */
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 4px 0;
}

.info-label {
    font-weight: 500;
    color: #333;
    min-width: 80px;
    margin-right: 8px;
    flex-shrink: 0;
}

.info-value {
    color: #666;
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
}

/* 确认信息样式 */
.confirm-fish {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-fish img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.confirm-location {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-item {
    font-size: 13px;
    color: #666;
}

.confirm-equipment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirm-equipment .equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.confirm-equipment .equipment-tag {
    font-size: 11px;
    padding: 4px 8px;
}

.card-meter {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.confirm-bait {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirm-bait .bait-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.confirm-bait .bait-tag {
    font-size: 11px;
    padding: 4px 8px;
}

/* 底部操作栏 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.action-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.action-btn.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.action-btn.secondary-btn {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.action-btn.secondary-btn:hover:not(:disabled) {
    border-color: #4facfe;
    color: #4facfe;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .step-card {
        padding: 20px 8px;
        margin: 0 4px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-desc {
        font-size: 13px;
    }
    
    .upload-area {
        padding: 30px 16px;
    }
    
    .upload-icon {
        font-size: 40px;
    }
    
    .upload-text {
        font-size: 15px;
    }
    
    .multi-upload-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .map-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .map-option {
        padding: 12px 8px;
    }
    
    .map-name {
        font-size: 13px;
    }
    
    .table-row {
        padding: 10px 12px;
    }
    
    .table-label {
        font-size: 13px;
        width: 50px;
    }
    
    .table-value {
        font-size: 13px;
        margin: 0 8px;
    }
    
    .equipment-tag,
    .bait-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .bottom-actions {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* 移动端：当只有下一步按钮时，让它居中显示 */
    .bottom-actions.next-only {
        justify-content: center !important;
    }
    
    /* 移动端固定header调整 */
    .fishpost-page .main-content {
        margin-top: 140px !important; /* 移动端header高度调整 */
    }
    
    .progress-container {
        margin: 12px -8px 0 -8px;
        padding: 0 8px 12px 8px;
    }
    
    .progress-steps {
        padding: 0 4px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .step-label {
        font-size: 11px;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .upload-area:hover {
        border-color: #e0e0e0;
        background: #fafafa;
    }
    
    .upload-area:active {
        border-color: #4facfe;
        background: #f0f8ff;
    }
    
    .map-option:hover {
        transform: none;
        box-shadow: none;
    }
    
    .map-option:active {
        transform: scale(0.98);
    }
    
    .confirm-section:hover {
        transform: none;
        box-shadow: none;
    }
    
    .confirm-section:active {
        transform: scale(0.98);
    }
    
    .action-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .action-btn:active:not(:disabled) {
        transform: scale(0.98);
    }
}

/* 地图选择模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.maps-list {
    margin-bottom: 0;
}

.map-item {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

.map-item:hover {
    border-color: #4facfe;
    background: #f0f8ff;
    transform: translateY(-1px);
}

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

.map-item:last-child {
    margin-bottom: 0;
}

.modal-footer {
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 16px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
}

/* 卡米编辑图标样式 */
.card-meter-edit-icon {
    cursor: pointer;
    margin-left: 8px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
    opacity: 0.7;
}

.card-meter-edit-icon:hover {
    opacity: 1;
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* 卡米编辑对话框样式 */
.card-meter-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-meter-dialog-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-meter-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.card-meter-dialog-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.card-meter-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.card-meter-dialog-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

.card-meter-dialog-body {
    padding: 0 20px;
}

.card-meter-input-group {
    margin-bottom: 20px;
}

.card-meter-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.card-meter-input-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    cursor: pointer;
    height: 56px;
}

/* 增大数字输入框的滚动箭头 */
.card-meter-input-group input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}

.card-meter-input-group input[type="number"]::-webkit-outer-spin-button,
.card-meter-input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.card-meter-input-group input[type="number"]::-webkit-inner-spin-button {
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 4px 4px 0 0;
}

.card-meter-input-group input[type="number"]::-webkit-outer-spin-button {
    background: linear-gradient(to top, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 0 0 4px 4px;
    margin-top: -1px;
}

.card-meter-input-group input[type="number"]::-webkit-inner-spin-button:hover,
.card-meter-input-group input[type="number"]::-webkit-outer-spin-button:hover {
    background: #e0e0e0;
}

.card-meter-input-group input:focus {
    outline: none;
    border-color: #007bff;
}

.card-meter-dialog-tips {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.card-meter-dialog-tips p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.card-meter-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
    min-height: 48px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.modal-footer .btn {
    min-width: 120px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 60vh;
    }
    
    .map-item {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
    
    .modal-footer .btn {
        min-width: 100px;
        font-size: 14px;
    }
}

/* 坐标显示样式 */
.coordinate-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coordinate-text {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.coordinate-text span {
    color: #4facfe;
    font-weight: bold;
}

.manual-input-btn {
    background: #4facfe;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.manual-input-btn:hover {
    background: #3d8bfe;
}

/* 手工输入图标样式 */
.manual-input-icon {
    cursor: pointer;
    margin-left: 8px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
    opacity: 0.7;
}

.manual-input-icon:hover {
    opacity: 1;
    background-color: #f0f0f0;
    transform: scale(1.1);
}

/* 坐标输入对话框样式 */
.coordinate-modal .modal-content {
    width: 400px;
    max-width: 90%;
}

.coordinate-input-group {
    margin-bottom: 15px;
}

.coordinate-input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.coordinate-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: border-color 0.3s ease;
}

.coordinate-input:focus {
    outline: none;
    border-color: #4facfe;
}

.coordinate-input:hover {
    border-color: #4facfe;
}

.original-coordinate {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* 响应式坐标显示 */
@media (max-width: 480px) {
    .coordinate-display {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .coordinate-text {
        font-size: 14px;
    }
    
    .manual-input-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .coordinate-modal .modal-content {
        width: 95%;
    }
    
    /* 移动端信息区域优化 - 减少边距为文字留出更多空间 */
    .coordinate-section,
    .recognition-result,
    .equipment-info,
    .chum-info {
        padding: 8px 2px !important;
        margin: 4px 2px !important;
    }
    
    .photo-display-area {
        padding: 4px 2px !important;
        margin: 4px 2px !important;
    }
    
    .loading-content {
        padding: 4px 2px !important;
    }
    
    .loading-tip {
        padding: 4px 2px !important;
    }
    
    /* step3装备信息区域移动端优化 */
    .equipment-section,
    .equipment-display,
    .equipment-form {
        padding: 8px 2px !important;
        margin: 4px 2px !important;
    }
    
    .equipment-item {
        padding: 4px 2px !important;
        margin: 2px 1px !important;
    }
    
    .equipment-form .form-group {
        padding: 4px 2px !important;
    }
    
    .equipment-form input,
    .equipment-form select,
    .equipment-form textarea {
        padding: 6px 4px !important;
    }
    
    /* 移动端step3信息表优化 - 恢复第一列宽度 */
    .table-label {
        width: 60px !important; /* 恢复60px，确保三字在一行 */
        font-size: 12px !important;
    }
    
    .equipment-label {
        width: 60px !important; /* 装备标签列宽度优化 */
        font-size: 12px !important;
    }
    
    .chum-label {
        width: 60px !important; /* 窝料标签列宽度优化 */
        font-size: 12px !important;
    }
    
    /* 移动端外层白色大容器优化 - 减少边距 */
    .step-content {
        padding: 4px 2px !important;
        padding-bottom: 100px !important; /* 保持底部操作栏空间 */
    }
    
    /* 移动端step1鱼信息布局优化 - 左边图标，右边文字3行 */
    .fish-info {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .fish-info .fish-image {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0;
    }
    
    .fish-info .fish-details {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
    }
    
    .fish-info .fish-name-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
    }
    
    .fish-info .fish-weight-row {
        display: block;
        font-size: 14px;
        color: #666;
        margin-top: 4px;
        line-height: 1.2;
    }
    
    .fish-info .fish-location-row {
        display: block;
        font-size: 13px;
        color: #4facfe;
        font-weight: 500;
        margin-top: 4px;
        line-height: 1.2;
    }
    
    .fish-info .star-icon {
        width: 16px !important;
        height: 16px !important;
    }
}