* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 12px;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.location-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #666;
}

/* 地点选择器样式 */
.location-selector {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.location-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.location-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.location-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.location-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.location-name {
    font-weight: 600;
    white-space: nowrap;
}

/* 日期选择器 */
.date-selector {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.date-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.date-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.date-btn:hover {
    background: #5a6268;
}

.date-btn:disabled {
    background: #adb5bd !important;
    cursor: not-allowed;
    opacity: 0.6;
}

#datePicker {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
}

/* 潮况信息样式 */
.tide-condition {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.tide-condition h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.condition-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.condition-item {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.lunar-item {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e1bee7;
}

/* 潮汐时间样式 */
.tide-times {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.tide-times h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: center;
}

.tide-list {
    display: grid;
    gap: 6px;
}

.tide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
}

.tide-item.high-tide {
    border-left: 3px solid #dc3545;
}

.tide-item.low-tide {
    border-left: 3px solid #007bff;
}

.tide-time {
    font-weight: bold;
    color: #2c3e50;
}

.tide-type {
    color: #6c757d;
    font-size: 0.75rem;
}

.tide-height {
    font-weight: bold;
    color: #dc3545;
}

/* 涨退潮时间样式 */
.tide-flow {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.tide-flow h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tide-flow h3::before {
    content: "";
    font-size: 0.9rem;
}

.flow-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.flow-item {
    background: #f8f9fa;
    color: #495057;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.flow-item:hover {
    background: #e9ecef;
}

.flow-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.flow-type {
    background: #007bff;
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.flow-height {
    background: #6c757d;
    color: white;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* 最佳鱼口时间样式 */
.best-fishing-time {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.best-fishing-time h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.best-fishing-time h3::before {
    content: "";
    font-size: 0.9rem;
}

.fishing-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.fishing-period {
    background: #fff3cd;
    color: #856404;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #ffeaa7;
}

.fishing-period:hover {
    background: #ffeaa7;
}

/* 天气信息样式 */
.weather-info {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.weather-info h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: center;
}

.weather-details {
    display: grid;
    gap: 6px;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
    font-size: 0.85rem;
}

.weather-item .label {
    font-weight: bold;
    color: #495057;
    min-width: 40px;
}

.weather-item .value {
    color: #2c3e50;
    font-weight: 500;
}

/* 无数据提示样式 */
.no-data-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    border: 1px solid #e0e0e0;
}

.no-data-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.no-data-message {
    font-size: 1rem;
    color: #dc3545;
    margin-bottom: 8px;
    font-weight: 500;
}

.no-data-tip {
    font-size: 0.8rem;
    color: #6c757d;
    opacity: 0.8;
}

.loading {
    text-align: center;
    padding: 25px;
    color: #6c757d;
    font-size: 0.9rem;
}

.no-data {
    text-align: center;
    padding: 12px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 6px 0;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
}

/* 加载提示样式 */
.loading-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin: 15px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 6px;
    }
    
    .location-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .location-btn {
        padding: 5px 6px;
        font-size: 0.75rem;
    }
    
    .flow-times {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .flow-item {
        padding: 6px;
    }
    
    .fishing-times {
        gap: 4px;
    }
    
    .fishing-period {
        padding: 5px 6px;
        font-size: 0.75rem;
    }
    .loading-container {
        padding: 30px 15px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .location-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .flow-times {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tide-flow,
    .best-fishing-time {
        padding: 8px;
    }
    
    .flow-item,
    .fishing-period {
        padding: 4px;
    }
    .loading-container {
        padding: 25px 10px;
    }
    
    .loading-spinner {
        width: 25px;
        height: 25px;
        border-width: 2px;
    }
    
    .loading-text {
        font-size: 0.75rem;
    }
} 