* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #2c7a7b;
}

.modal-content .tip {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    -webkit-appearance: none;
}

.modal-content input:focus {
    outline: none;
    border-color: #2c7a7b;
}

.modal-content button {
    width: 100%;
    padding: 14px;
    background: #2c7a7b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.modal-content button:active {
    background: #236c6d;
}

/* 评价选项 */
.rating-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.rating-options button {
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-good {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-good:active {
    background: #c8e6c9;
    transform: scale(0.98);
}

.btn-pigeon {
    background: #ffebee;
    color: #c62828;
}

.btn-pigeon:active {
    background: #ffcdd2;
    transform: scale(0.98);
}

/* 定位输入 */
.location-input {
    display: flex;
    gap: 8px;
}

.location-input input {
    flex: 1;
}

.btn-location {
    padding: 12px 16px;
    background: #2c7a7b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-location:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.location-status {
    font-size: 13px;
    color: #2c7a7b;
    margin-top: 6px;
    min-height: 20px;
}

/* 地址显示 */
.trip-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 6px;
}

.trip-address .icon {
    font-size: 14px;
}

/* 评价标签 */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 4px;
}

.rating-badge.good {
    background: #e8f5e9;
    color: #2e7d32;
}

.rating-badge.pigeon {
    background: #ffebee;
    color: #c62828;
}

/* 头部 */
.header {
    background: #2c7a7b;
    color: white;
    padding: 16px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.user-info {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.9;
}

/* 主内容 */
.main {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons button:first-child {
    grid-column: 1 / -1;
}

.btn-primary {
    padding: 14px 20px;
    background: #2c7a7b;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
    background: #236c6d;
}

.btn-secondary {
    padding: 12px 16px;
    background: white;
    color: #2c7a7b;
    border: 2px solid #2c7a7b;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    padding: 14px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* 表单区域 */
.form-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    -webkit-appearance: none;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c7a7b;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
}

.radio-group input,
.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: #2c7a7b;
}

.custom-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-buttons button {
    flex: 1;
}

/* 行程卡片 */
.trips-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.section-header h3 {
    color: #2c7a7b;
    font-size: 18px;
}

.search-bar {
    margin-bottom: 10px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: white;
}

.search-bar input:focus {
    outline: none;
    border-color: #2c7a7b;
}

.filter-bar {
    display: flex;
    gap: 10px;
}

/* 钓场详情 */
.spot-detail {
    background: #f0f7f7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    border-left: 3px solid #2c7a7b;
}

.spot-info-item {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}

.spot-info-item .label {
    color: #2c7a7b;
    font-weight: 600;
    margin-right: 4px;
}

.filter-bar select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.trip-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.trip-card.my-trip {
    border-left: 4px solid #2c7a7b;
}

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

.trip-date {
    font-weight: 700;
    color: #2c7a7b;
    font-size: 16px;
}

.trip-time {
    font-size: 13px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
}

.trip-info {
    margin-bottom: 10px;
}

.trip-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.trip-info-item .icon {
    font-size: 16px;
}

.trip-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    padding: 4px 10px;
    background: #e6f7f7;
    color: #2c7a7b;
    border-radius: 20px;
    font-size: 13px;
}

.tag.method {
    background: #fff3e0;
    color: #e65100;
}

.tag.fish {
    background: #e3f2fd;
    color: #1565c0;
}

.trip-members {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-bottom: 10px;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.member-tag {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.member-tag.me {
    background: #2c7a7b;
    color: white;
}

.trip-actions {
    display: flex;
    gap: 10px;
}

.trip-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-join {
    background: #2c7a7b;
    color: white;
}

.btn-joined {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.trip-note {
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* 组队结果 */
.team-group {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.team-group h4 {
    color: #2c7a7b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-group .team-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    padding: 4px 16px;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
}

.nav-item .icon {
    font-size: 22px;
}

.nav-item.active {
    color: #2c7a7b;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.tip {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trip-card {
    animation: fadeIn 0.3s ease;
}

/* 响应式 */
@media (min-width: 768px) {
    .main {
        padding: 24px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .action-buttons button:first-child {
        grid-column: auto;
    }
}