/* 鸟蛋识别系统 - 主样式 */
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --bg: #f7f8fa;
    --card-bg: #fff;
    --text: #323233;
    --text-secondary: #969799;
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.page-container {
    min-height: calc(100vh - 46px);
    padding-bottom: 0;
}

.page-container.has-tabbar {
    padding-bottom: 50px;
}

.page {
    padding: 0 0 20px;
}

/* Hero 区域 */
.hero {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: #fff;
    border-radius: 0 0 30px 30px;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero p {
    font-size: 14px;
    opacity: 0.9;
}

/* 操作按钮 */
.action-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 区块 */
.section {
    padding: 0 16px;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* 鸟类卡片网格 */
.bird-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bird-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
    cursor: pointer;
}

.bird-card:active {
    transform: scale(0.95);
}

.bird-card-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.bird-card-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bird-card-family {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 详情页 */
.detail-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 0 0 30px 30px;
}

.detail-icon {
    font-size: 64px;
    margin-bottom: 8px;
}

.detail-header h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.detail-header .english-name {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

/* 识别结果 */
.result-image {
    text-align: center;
    padding: 16px;
}

.result-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 操作栏 */
.action-bar {
    padding: 16px 20px;
}

/* 个人中心 */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: #fff;
    border-radius: 0 0 30px 30px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.profile-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-header p {
    font-size: 13px;
    opacity: 0.8;
}

/* 登录/注册 */
.auth-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.auth-header h2 {
    font-size: 24px;
    margin-top: 8px;
}

/* 卡片组间距 */
.van-cell-group {
    margin-bottom: 12px;
}

/* 加载状态 */
.van-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* 空状态 */
.van-empty {
    padding: 40px 0;
}

/* 下拉刷新 */
.van-pull-refresh {
    min-height: 60vh;
}
