/* 寄居蟹AI识种实验室 - 马卡龙软萌风格 */
/* 主色调：淡粉 #FFD1DC、薄荷绿 #C1E1C1、奶油黄 #FFF2CC、淡紫 #E0BBE4 */

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

body {
    font-family: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #FFF5F7 0%, #F0FFF0 40%, #FFFACD 75%, #E8F4F8 92%, #C8E6F0 100%);
    min-height: 100vh;
    color: #5A4E4E;
    overflow-x: hidden;
    position: relative;
}

/* ========== 全局图片安全兜底 ========== */
img {
    max-width: 100%;
    height: auto;
}

/* 底部海浪装饰 */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2387CEEB' fill-opacity='0.25' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom center no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

/* ========== 彩虹漂浮寄居蟹 ========== */
.rainbow-crabs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.rainbow-crab {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    opacity: 0.18;
    filter: blur(1px);
    animation: crab-drift 18s infinite ease-in-out;
}
.crab-float-1 { top: 8%; left: 5%; animation-delay: 0s; }
.crab-float-2 { top: 15%; right: 6%; animation-delay: -4s; width: 40px; height: 40px; }
.crab-float-3 { top: 50%; left: 3%; animation-delay: -8s; width: 36px; height: 36px; }
.crab-float-4 { bottom: 25%; right: 4%; animation-delay: -12s; }
.crab-float-5 { bottom: 10%; left: 8%; animation-delay: -16s; width: 42px; height: 42px; }

@keyframes crab-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -15px) rotate(5deg); }
    50% { transform: translate(-10px, -30px) rotate(-3deg); }
    75% { transform: translate(15px, -10px) rotate(4deg); }
}

/* ========== 品种画廊网格 ========== */
.gallery-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #8B6B8B;
    margin-bottom: 12px;
    text-align: center;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}
.gallery-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.gallery-item:hover {
    transform: scale(1.08);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid #FFD1DC;
    box-shadow: 0 4px 12px rgba(255,182,193,0.3);
    background: #FFF5F7;
}
.gallery-item span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8B6B8B;
    margin-top: 4px;
}
.gallery-item em {
    display: block;
    font-size: 0.6rem;
    color: #C0A0C0;
    font-style: normal;
}

/* ========== 按钮内嵌蟹图标 ========== */
.btn-crab-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}
.cloud {
    position: fixed;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}
.cloud-1 { width: 120px; height: 60px; top: 10%; left: 5%; animation-delay: 0s; }
.cloud-1::before { width: 80px; height: 80px; top: -40px; left: 20px; }
.cloud-1::after { width: 60px; height: 60px; top: -30px; left: 60px; }
.cloud-2 { width: 100px; height: 50px; top: 30%; right: 8%; animation-delay: -7s; }
.cloud-2::before { width: 70px; height: 70px; top: -35px; left: 15px; }
.cloud-2::after { width: 50px; height: 50px; top: -25px; left: 50px; }
.cloud-3 { width: 90px; height: 45px; bottom: 20%; left: 12%; animation-delay: -14s; }
.cloud-3::before { width: 60px; height: 60px; top: -30px; left: 15px; }
.cloud-3::after { width: 45px; height: 45px; top: -22px; left: 45px; }

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(15px) translateY(-10px); }
    50% { transform: translateX(-10px) translateY(5px); }
    75% { transform: translateX(10px) translateY(-5px); }
}

/* ========== 主容器 ========== */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    position: relative;
    z-index: 1;
}

/* ========== 品牌Logo ========== */
.brand-logo {
    text-align: center;
    margin-bottom: 14px;
}
.logo-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(255,182,193,0.4));
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
}

/* ========== 寄居蟹图片通用 ========== */
.upload-crab-img {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    object-fit: cover;
    border: 5px solid #FFB6C1;
    box-shadow:
        0 8px 24px rgba(255,182,193,0.45),
        0 0 0 10px rgba(255,209,220,0.25),
        inset 0 0 0 2px rgba(255,255,255,0.6);
    background: linear-gradient(135deg, #FFF5F7, #FFE4EC);
    padding: 5px;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}
.inline-crab {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
}
.name-crab-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
}
.title-crab-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 4px;
}
.scroll-crab {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 3px;
}
.footer-crab-img {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #FFD1DC;
    box-shadow:
        0 6px 18px rgba(255,182,193,0.4),
        0 0 0 8px rgba(255,209,220,0.2);
    background: linear-gradient(135deg, #FFF5F7, #FFE4EC);
    padding: 3px;
}
.footer-flower {
    font-size: 1.5rem;
}

/* ========== 头部 ========== */
.header {
    text-align: center;
    padding: 32px 24px 24px;
    background: linear-gradient(135deg, rgba(255,245,247,0.9) 0%, rgba(240,255,240,0.85) 50%, rgba(255,250,205,0.8) 100%);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.25), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 2px solid rgba(255, 209, 220, 0.5);
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: url('images/crab-pink.jpg') center/cover no-repeat;
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(4px);
}
.header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: url('images/crab-green.jpg') center/cover no-repeat;
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(4px);
}
.header-crabs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.header-crab-img {
    width: 56px;
    height: 56px;
    border-radius: 22px;
    object-fit: cover;
    border: 4px solid #FFD1DC;
    box-shadow:
        0 4px 14px rgba(255,182,193,0.45),
        0 0 0 6px rgba(255,209,220,0.25),
        inset 0 0 0 2px rgba(255,255,255,0.6);
    background: linear-gradient(135deg, #FFF5F7, #FFE4EC);
    padding: 3px;
    animation: crab-wave 2.5s infinite ease-in-out;
    transition: transform 0.3s;
}
.header-crab-img:nth-child(2) {
    width: 72px;
    height: 72px;
    border-radius: 28px;
    border: 6px solid #FFB6C1;
    box-shadow:
        0 8px 28px rgba(255,182,193,0.55),
        0 0 0 10px rgba(255,209,220,0.3),
        inset 0 0 0 2px rgba(255,255,255,0.7);
    background: linear-gradient(135deg, #FFF0F3, #FFD1DC);
    padding: 5px;
    animation: crab-wave 2s infinite ease-in-out;
}
.header-crab-img:hover {
    transform: scale(1.12) rotate(5deg);
}
@keyframes crab-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}
.header h1 {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF9A9E, #C1E1C1, #E0BBE4, #87CEEB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.header .badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(70,130,180,0.85), rgba(0,105,148,0.9), rgba(0,168,150,0.85));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 Q25 5 50 20 Q75 35 100 20 Q125 5 150 20 Q175 35 200 20 V40 H0 Z' fill='rgba(255,255,255,0.12)'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(70,130,180,0.85), rgba(0,105,148,0.9), rgba(0,168,150,0.85));
    background-size: 200px 100%, 100% 100%;
    background-repeat: repeat-x, no-repeat;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(0,105,148,0.35);
    animation: badge-wave 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes badge-wave {
    0%, 100% { background-position: 0% 0%, 0 0; }
    50% { background-position: 100% 0%, 0 0; }
}
.header .sub {
    font-size: 0.95rem;
    color: #A890A0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ========== 卡片通用 ========== */
.card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 24px 20px;
    margin-bottom: 22px;
    box-shadow: 0 6px 24px rgba(200, 180, 220, 0.15);
    border: 1.5px solid rgba(255, 209, 220, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(200, 180, 220, 0.25);
}
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B6B8B;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title .icon {
    font-size: 1.3rem;
}

/* ========== 上传区 ========== */
.upload-area {
    background: linear-gradient(135deg, #FFF5F7, #FFFACD, #F0FFF0);
    border: 2.5px dashed #FFB6C1;
    border-radius: 28px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.upload-area::before {
    content: '✨';
    position: absolute;
    font-size: 80px;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.upload-area:hover {
    background: linear-gradient(135deg, #FFE4EC, #FFF2CC, #E8F8E8);
    border-color: #FF9A9E;
    transform: scale(1.01);
}
.upload-area:active {
    transform: scale(0.99);
}
.upload-icon {
    font-size: 52px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.upload-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #D4819A;
    margin-bottom: 6px;
}
.upload-hint {
    font-size: 0.8rem;
    color: #B8A0B8;
}
#fileInput {
    display: none;
}

/* ========== 图片预览 ========== */
.preview-section {
    display: none;
    text-align: center;
    margin-top: 18px;
}
.preview-section.show {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.preview-section img {
    max-width: 85%;
    max-height: 38vh;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    object-fit: contain;
    border: 3px solid #FFD1DC;
}

/* ========== 识别结果 ========== */
.result-section {
    display: none;
    margin-top: 18px;
    animation: fadeIn 0.5s ease;
}
.result-section.show {
    display: block;
}
.result-card {
    background: linear-gradient(135deg, #FFF5F7, #FFFACD);
    border-radius: 24px;
    padding: 20px;
    border-left: 6px solid #FFB6C1;
    position: relative;
    overflow: hidden;
}
.result-card::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('images/crab-green.jpg') center/cover no-repeat;
    opacity: 0.1;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}
.species-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #D4819A;
    margin-bottom: 8px;
}
.confidence-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.confidence-label {
    font-size: 0.85rem;
    color: #A890A0;
}
.confidence-track {
    flex: 1;
    height: 10px;
    background: #F0E0F0;
    border-radius: 10px;
    overflow: hidden;
}
.confidence-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #FFD1DC, #C1E1C1, #E0BBE4);
    transition: width 0.8s ease;
}
.confidence-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: #8B6B8B;
    min-width: 45px;
    text-align: right;
}
.species-desc {
    font-size: 0.9rem;
    color: #6B5B6B;
    line-height: 1.65;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 16px;
}
.tips-box {
    background: linear-gradient(135deg, #E8F8E8, #FFF5F7);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #6B8B6B;
    line-height: 1.6;
    margin-bottom: 14px;
}
.tips-box strong {
    color: #5B8B5B;
}

/* ========== 操作按钮组 ========== */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn:active {
    transform: scale(0.96);
}
.btn-primary {
    background: linear-gradient(135deg, #FFD1DC, #FFB6C1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(255, 182, 193, 0.6);
    transform: translateY(-1px);
}
.btn-secondary {
    background: linear-gradient(135deg, #C1E1C1, #A8D8A8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 216, 168, 0.4);
}
.btn-warning {
    background: linear-gradient(135deg, #FFF2CC, #FFE4B5);
    color: #B8860B;
    box-shadow: 0 4px 12px rgba(255, 228, 181, 0.4);
}
.btn-danger {
    background: linear-gradient(135deg, #E0BBE4, #D8A8E0);
    color: #fff;
    box-shadow: 0 4px 12px rgba(224, 187, 228, 0.4);
}

/* ========== 进度条 ========== */
.progress-section {
    margin-bottom: 16px;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.progress-count {
    font-size: 0.9rem;
    color: #8B6B8B;
}
.progress-count strong {
    font-size: 1.5rem;
    color: #D4819A;
    font-weight: 800;
}
.progress-target {
    font-size: 0.8rem;
    color: #B8A0B8;
}
.progress-track {
    height: 18px;
    background: #F0E8F0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 6px;
}
.progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #FFD1DC, #C1E1C1, #E0BBE4, #FFF2CC);
    background-size: 300% 100%;
    animation: gradient-shift 3s ease infinite;
    transition: width 1s ease;
    position: relative;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.progress-fill::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('images/crab-green.jpg') center/cover no-repeat;
    border-radius: 50%;
    opacity: 0.7;
}
.progress-percent {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: #8B6B8B;
}

/* ========== 品种列表 ========== */
.species-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.species-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #FFF5F7, #F0FFF0);
    border: 1.5px solid #FFD1DC;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: #8B6B8B;
    transition: all 0.2s;
}
.species-tag:hover {
    background: linear-gradient(135deg, #FFE4EC, #E8F8E8);
    transform: scale(1.05);
}
.species-tag .count {
    background: #FFD1DC;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 2px;
}

/* ========== 每周汇报 ========== */
.weekly-report {
    background: linear-gradient(135deg, #F0FFF0, #FFF5F7);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1.5px dashed #C1E1C1;
}
.weekly-report .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(193, 225, 193, 0.3);
}
.weekly-report .stat-row:last-child {
    border-bottom: none;
}
.stat-label {
    font-size: 0.82rem;
    color: #8B8B8B;
}
.stat-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #D4819A;
}
.contributors-scroll {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 16px;
    max-height: 80px;
    overflow-y: auto;
    font-size: 0.82rem;
    color: #A890A0;
    line-height: 1.8;
}
.contributors-scroll::-webkit-scrollbar {
    width: 4px;
}
.contributors-scroll::-webkit-scrollbar-thumb {
    background: #FFD1DC;
    border-radius: 4px;
}
.next-goal {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #FFF2CC, #FFE4B5);
    border-radius: 16px;
    font-size: 0.85rem;
    color: #8B7010;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 光荣榜 ========== */
.leaderboard-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}
.leaderboard-list::-webkit-scrollbar {
    width: 5px;
}
.leaderboard-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD1DC, #E0BBE4);
    border-radius: 5px;
}
.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 16px;
    transition: all 0.2s;
}
.lb-item:hover {
    background: rgba(255,209,220,0.2);
    transform: translateX(4px);
}
.lb-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.lb-rank.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.lb-rank.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; }
.lb-rank.bronze { background: linear-gradient(135deg, #CD7F32, #B8860B); color: #fff; }
.lb-rank.normal { background: #F0E8F0; color: #8B6B8B; }
.lb-avatar {
    font-size: 1.5rem;
}
.lb-info {
    flex: 1;
}
.lb-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5A4E4E;
}
.lb-count {
    font-size: 0.75rem;
    color: #B8A0B8;
}
.lb-badge {
    font-size: 0.7rem;
    background: linear-gradient(135deg, #FFD1DC, #E0BBE4);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 24px 20px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    margin-top: 10px;
}
.footer-logo {
    font-size: 2rem;
    margin-bottom: 8px;
}
.footer p {
    font-size: 0.85rem;
    color: #B8A0B8;
    margin-bottom: 8px;
    line-height: 1.6;
}
.footer a {
    color: #D4819A;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.footer a:hover {
    color: #FF9A9E;
    text-decoration: underline;
}
.footer .slogan {
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD1DC, #C1E1C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
}

/* ========== 弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(90, 78, 78, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}
.modal {
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h3 {
    font-size: 1.2rem;
    color: #D4819A;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal label {
    display: block;
    font-size: 0.88rem;
    color: #8B6B8B;
    margin-bottom: 6px;
    font-weight: 600;
}
.modal input, .modal select, .modal textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #FFD1DC;
    border-radius: 16px;
    font-size: 0.92rem;
    color: #5A4E4E;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    margin-bottom: 14px;
    background: #FFF5F7;
}
.modal input:focus, .modal select:focus, .modal textarea:focus {
    border-color: #D4819A;
}
.modal textarea {
    resize: vertical;
    min-height: 70px;
}
.modal-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.modal-btn-row .btn {
    flex: 1;
}

/* ========== Loading ========== */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}
.loading-spinner.show {
    display: block;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #FFD1DC;
    border-top-color: #D4819A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-text {
    font-size: 0.9rem;
    color: #D4819A;
    font-weight: 600;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #C1E1C1, #A8D8A8);
    color: #fff;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(168, 216, 168, 0.4);
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    white-space: nowrap;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}
.toast.error {
    background: linear-gradient(135deg, #FFD1DC, #FFB6C1);
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.35rem;
    }
    .species-name {
        font-size: 1.3rem;
    }
    .btn {
        min-width: 100%;
    }
    .btn-group {
        flex-direction: column;
    }
}
