/* 健身力量训练网站样式 */

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 导航栏 ========== */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), #0066cc);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: var(--transition);
}

/* ========== 按钮样式 ========== */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ========== Hero区域 ========== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), #0066cc);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== 通用Section样式 ========== */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-color);
}

/* ========== 快速打卡区域 ========== */
.quick-checkin-section {
    background: white;
}

.checkin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.checkin-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-icon {
    font-size: 3rem;
}

.status-text {
    font-size: 1.2rem;
}

.consecutive-days {
    text-align: center;
    font-size: 1.1rem;
}

.consecutive-days strong {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

/* ========== 训练记录区域 ========== */
.training-section {
    background: #f9f9f9;
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.records-list {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    min-height: 200px;
}

.record-item {
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.record-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.record-exercise {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.record-date {
    color: #666;
    font-size: 0.9rem;
}

.record-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.record-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.record-detail-item strong {
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* ========== 动作库区域 ========== */
.exercises-section {
    background: white;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exercise-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.exercise-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.exercise-content {
    padding: 1rem;
}

.exercise-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.exercise-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.exercise-category {
    background: var(--light-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.exercise-difficulty {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

.exercise-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== 数据统计区域 ========== */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-section .section-title {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ========== 模态框 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

.modal-lg {
    max-width: 700px;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.close {
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 1.5rem;
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.range-value {
    margin-top: 0.5rem;
    color: #666;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .checkin-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .training-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        flex-direction: column;
    }

    .exercises-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .record-details {
        grid-template-columns: 1fr;
    }
}

/* ========== 加载动画 ========== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 提示消息 ========== */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    color: white;
    z-index: 3000;
    animation: slideInRight 0.3s;
    box-shadow: var(--box-shadow);
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--danger-color);
}

.toast-warning {
    background: var(--warning-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== 今日打卡统计 ========== */
.today-stats-section {
    background: white;
    padding: 3rem 0;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.stat-box-icon {
    font-size: 3rem;
}

.stat-box-content {
    flex: 1;
}

.stat-box-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-box-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== 社区打卡动态 ========== */
.community-checkins-section {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    padding: 3rem 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.checkins-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.checkin-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.checkin-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.checkin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.checkin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.user-info-details h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.user-info-details .checkin-date {
    color: #999;
    font-size: 0.9rem;
}

.checkin-mood {
    font-size: 2rem;
}

.checkin-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkin-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkin-detail-label {
    font-size: 0.85rem;
    color: #999;
}

.checkin-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.checkin-notes {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.checkin-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.checkin-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-container .btn {
    min-width: 200px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-box-value {
        font-size: 2rem;
    }
    
    .checkin-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .checkin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ========== 超小屏幕优化 (338*745及类似尺寸) ========== */
@media (max-width: 400px) {
    /* 导航栏优化 */
    .navbar .container {
        padding: 0 10px;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .nav-auth {
        gap: 0.5rem;
    }
    
    .nav-auth .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Hero区域优化 */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* 打卡卡片优化 */
    .quick-checkin-section {
        padding: 1.5rem 0;
    }
    
    .checkin-card {
        padding: 1.2rem;
    }
    
    .status-icon {
        font-size: 2rem;
    }
    
    .status-text {
        font-size: 0.9rem;
    }
    
    .consecutive-days {
        font-size: 0.9rem;
        margin-top: 1rem;
    }
    
    /* 今日统计优化 */
    .today-stats-section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .stat-box {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-box-icon {
        font-size: 2rem;
    }
    
    .stat-box-value {
        font-size: 1.8rem;
    }
    
    .stat-box-label {
        font-size: 0.85rem;
    }
    
    /* 社区打卡动态优化 */
    .community-checkins-section {
        padding: 1.5rem 0;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-top: -0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .checkin-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .user-info-details h4 {
        font-size: 0.9rem;
    }
    
    .user-info-details .checkin-date {
        font-size: 0.8rem;
    }
    
    .checkin-mood {
        font-size: 1.5rem;
    }
    
    .checkin-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .checkin-detail-label {
        font-size: 0.75rem;
    }
    
    .checkin-detail-value {
        font-size: 0.95rem;
    }
    
    .checkin-notes {
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .load-more-container .btn {
        min-width: 150px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* 训练记录优化 */
    .training-section {
        padding: 1.5rem 0;
    }
    
    .training-header {
        gap: 0.8rem;
    }
    
    .training-header .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .filter-group select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .record-card {
        padding: 1rem;
    }
    
    .record-header {
        margin-bottom: 0.8rem;
    }
    
    .record-exercise {
        font-size: 1rem;
    }
    
    .record-date {
        font-size: 0.8rem;
    }
    
    .record-details {
        gap: 0.6rem;
    }
    
    .record-detail-item {
        font-size: 0.85rem;
    }
    
    .record-notes {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
    
    /* 动作库优化 */
    .exercises-section {
        padding: 1.5rem 0;
    }
    
    .search-bar {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .search-bar input,
    .search-bar select {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .exercise-card {
        padding: 1rem;
    }
    
    .exercise-name {
        font-size: 1rem;
    }
    
    .exercise-category {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .exercise-equipment {
        font-size: 0.8rem;
    }
    
    /* 数据统计优化 */
    .stats-section {
        padding: 1.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-desc {
        font-size: 0.75rem;
    }
    
    /* 模态框优化 */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .form-row {
        gap: 0.8rem;
    }
    
    /* Toast提示优化 */
    .toast {
        top: 60px;
        right: 10px;
        left: 10px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    /* 页脚优化 */
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* ========== 超小屏幕进一步优化 (320px及以下) ========== */
@media (max-width: 340px) {
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.4rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .checkin-content {
        grid-template-columns: 1fr;
    }
}
