﻿/* 弘度共建中心专用样式 - 从 co-build.html 提取 */

/* === 文本工具类 === */
.co-text-muted-sm { font-size: 0.6875rem; color: #888888; }
.co-text-sm-label { font-size: 0.75rem; margin-top: 8px; color: #333333; font-weight: 500; }
.co-text-semibold { font-size: 0.875rem; font-weight: 600; color: #333333; }
.co-text-xs-light { font-size: 0.625rem; color: var(--legacy-text-light); }
.co-text-xs-light2 { font-size: 0.6875rem; color: var(--color-text-light); }
.co-text-sm-bold { font-size: 0.75rem; font-weight: 600; color: var(--color-text-dark); }
.co-text-right { text-align: right; }
.co-text-center-flex { text-align: center; flex: 1; }
.co-text-divider { color: #dddddd; font-size: 1.25rem; }

/* === 卡片区块 === */
.co-card-block { background: white; border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.co-card-content { padding: 16px; }
.co-card-section { margin-bottom: 20px; }

/* === 导航入口卡片（6个重复）=== */
.co-nav-item { display: flex; flex-direction: column; align-items: center; padding: 16px 8px; background: white; border-radius: var(--radius-lg); box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; cursor: pointer; }
.co-nav-item-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 1.5rem; }

/* === 通用布局 === */
.co-flex-center { display: flex; align-items: center; gap: 10px; }
.co-flex-center-gap12 { display: flex; align-items: center; gap: 12px; }
.co-flex-between { display: flex; align-items: center; justify-content: space-between; }
.co-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.co-grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.co-grid-auto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* === 标题 === */
.co-section-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.co-title-lg { font-size: 1.75rem; font-weight: bold; margin-bottom: 8px; }
.co-title-md { font-size: 1.25rem; font-weight: bold; }

/* === 登录表单 === */
.co-login-card { background: white; border-radius: 1rem; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.co-form-group { margin-bottom: 20px; }
.co-form-group-lg { margin-bottom: 24px; }
.co-label { font-size: 0.875rem; color: var(--legacy-text-secondary); display: block; margin-bottom: 8px; font-weight: 500; }
.co-input { width: 100%; padding: 14px; border: 1px solid #e0e0e0; border-radius: 0.625rem; font-size: 1rem; box-sizing: border-box; }
.co-input-flex { flex: 1; padding: 14px; border: 1px solid #e0e0e0; border-radius: 0.625rem; font-size: 1rem; box-sizing: border-box; }
.co-btn-primary { width: 100%; padding: 14px; background: linear-gradient(135deg, #ff6b35, #ff9a5c); color: white; border: none; border-radius: 0.625rem; font-size: 1rem; font-weight: 600; cursor: pointer; }
.co-btn-sms { padding: 12px 16px; background: linear-gradient(135deg, #ff6b35, #ff9a5c); color: white; border: none; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.co-btn-secondary { width: 100%; padding: 14px; background: var(--legacy-bg); color: var(--legacy-text-secondary); border: none; border-radius: var(--radius-md); font-size: 1rem; font-weight: 600; cursor: pointer; }
.co-btn-full { width: 100%; padding: 14px; border: none; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; cursor: pointer; }

/* === 统计卡片 === */
.co-stat-card { text-align: center; padding: 12px; background: #fff5e6; border-radius: 0.625rem; }
.co-stat-card-green { background: #f0fdf4; }
.co-stat-card-blue { background: var(--sky-blue-light); }
.co-stat-value { font-size: 1.5rem; font-weight: bold; }
.co-stat-value-orange { color: #ff6b35; }
.co-stat-value-green { color: var(--green-600); }
.co-stat-value-blue { color: var(--blue-600); }
.co-stat-label { font-size: 0.6875rem; color: #888888; }

/* === 排行榜行 === */
.co-rank-row { display: flex; align-items: center; padding: 12px; background: white; border-radius: var(--radius-md); margin-bottom: 8px; }
.co-rank-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 0.875rem; }
.co-rank-info { flex: 1; }
.co-rank-name { font-size: 0.875rem; font-weight: 600; color: #333333; }
.co-rank-score { font-size: 1rem; font-weight: bold; color: #ff6b35; }

/* === 弹窗 === */
.co-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: var(--z-modal); align-items: center; justify-content: center; }
.co-modal { background: white; border-radius: var(--radius-xl); width: 90%; max-width: 700px; max-height: 85vh; overflow-y: auto; }
.co-modal-header { background: linear-gradient(135deg, var(--legacy-red), var(--legacy-red)); color: white; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.co-modal-title { font-size: 1.125rem; font-weight: bold; }
.co-modal-close { background: rgba(255,255,255,0.2); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.co-modal-body { padding: 16px; font-size: 0.875rem; line-height: 1.8; }
.co-modal-banner { margin-bottom: 20px; text-align: center; background: linear-gradient(135deg, #ffebee, #ffcdd2); border-radius: var(--radius-lg); padding: 20px; }
.co-modal-emoji { font-size: 48px; margin-bottom: 8px; }
.co-modal-subtitle { font-size: 1.125rem; font-weight: 700; color: var(--legacy-red); }
.co-modal-desc { font-size: 0.8125rem; color: var(--color-text-light); line-height: 1.6; }
.co-modal-section-title { color: var(--legacy-red); margin-bottom: 12px; font-size: 1rem; }
.co-modal-feat-card { padding: 12px; border-radius: 0.625rem; }
.co-modal-feat-title { font-weight: 600; font-size: 0.8125rem; }
.co-modal-feat-desc { font-size: 0.6875rem; color: var(--color-text-light); }
.co-modal-process { margin-bottom: 20px; background: #f8fafc; border-radius: var(--radius-lg); padding: 16px; }
.co-modal-step { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.co-modal-step-text { text-align: center; flex: 1; font-size: 0.75rem; font-weight: 600; color: var(--color-text-dark); }
.co-modal-step-sub { font-size: 0.625rem; color: var(--legacy-text-light); }
.co-modal-arrow { color: #dddddd; font-size: 1.25rem; }

/* === 进度条 === */
.co-progress-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.co-progress-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.co-progress-fill-red { background: linear-gradient(90deg, var(--legacy-red), #ef4444); }
.co-progress-fill-orange { background: linear-gradient(90deg, #ff6b35, #ff9a5c); }
.co-progress-fill-green { background: linear-gradient(90deg, var(--green-600), #22c55e); }

/* === 徽章 === */
.co-badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: 0.6875rem; font-weight: 500; }
.co-badge-orange { background: #fff5e6; color: #ff6b35; }
.co-badge-green { background: #f0fdf4; color: var(--green-600); }
.co-badge-blue { background: var(--sky-blue-light); color: var(--blue-600); }

/* === 分割线 === */
.co-divider { border-top: 1px solid #e5e7eb; margin: 12px 0; }

/* === 操作行 === */
.co-action-row { display: flex; gap: 8px; margin-top: 12px; }
.co-action-btn { flex: 1; padding: 10px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; cursor: pointer; border: none; }
.co-action-btn-outline { background: white; border: 1px solid #e0e0e0; color: #64748b; }
.co-action-btn-primary { background: linear-gradient(135deg, var(--legacy-red), #ef4444); color: white; }

/* === 列表项 === */
.co-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.co-list-item:last-child { border-bottom: none; }
.co-list-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.co-list-content { flex: 1; }
.co-list-title { font-size: 0.875rem; font-weight: 600; color: #333333; }
.co-list-desc { font-size: 0.75rem; color: var(--legacy-text-light); }
.co-list-badge { padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; }

/* === 联系卡片 === */
.co-contact-card { background: var(--legacy-bg); border-radius: var(--radius-lg); padding: 16px; text-align: center; margin-bottom: 20px; }

/* === 首页 Banner 特殊 === */
.co-hero-gradient { background: linear-gradient(135deg, var(--legacy-red), var(--legacy-red), #2e7d32); border-radius: 1rem; padding: 28px 20px; margin-bottom: 16px; color: white; text-align: center; }

/* === 图标圆形背景 === */
.co-icon-circle { width: 80px; height: 80px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.co-icon-circle-sm { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* === 导航图标（渐变彩色） === */
.co-nav-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; }
.co-nav-icon-gold { background: linear-gradient(135deg, #ffb300, #ff8f00); box-shadow: 0 2px 8px rgba(255,179,0,0.25); }
.co-nav-icon-pink { background: linear-gradient(135deg, #d81b60, #ad1457); box-shadow: 0 2px 8px rgba(216,27,96,0.25); }
.co-nav-icon-orange { background: linear-gradient(135deg, var(--legacy-orange), var(--warm-amber)); box-shadow: 0 2px 8px rgba(255,152,0,0.25); }
.co-nav-icon-red { background: linear-gradient(135deg, var(--legacy-red), var(--legacy-red)); box-shadow: 0 2px 8px rgba(229,57,53,0.25); }

/* === 渐变按钮 === */
.co-gradient-btn { background: linear-gradient(135deg, #ff6b35, #ff9a5c); }
.co-gradient-btn-purple { background: linear-gradient(135deg, #9333ea, #a855f7); }

/* === 标签页 === */
.co-tab-item { padding: 12px 0; text-align: center; font-size: 0.875rem; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; flex: 1; }
.co-tab-item.active { color: var(--legacy-red); border-bottom-color: var(--legacy-red); font-weight: 600; }

/* === 空状态 === */
.co-empty { text-align: center; padding: 40px 20px; color: var(--legacy-text-light); }
.co-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* === 评分 === */
.co-rating { display: flex; gap: 4px; }
.co-rating-star { font-size: 1.25rem; color: #ffb300; }
.co-rating-star-empty { color: #e5e7eb; }

/* === 活动卡片 === */
.co-activity-card { display: flex; gap: 12px; padding: 12px; background: white; border-radius: var(--radius-lg); margin-bottom: 12px; }
.co-activity-img { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.co-activity-info { flex: 1; min-width: 0; }
.co-activity-tag { display: inline-block; padding: 2px 6px; background: #fee2e2; color: var(--legacy-red); border-radius: 4px; font-size: 0.6875rem; font-weight: 500; margin-bottom: 4px; }
.co-activity-title { font-size: 0.875rem; font-weight: 600; color: #333333; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-activity-desc { font-size: 0.75rem; color: #888888; margin-bottom: 6px; }
.co-activity-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; }

/* === 任务列表 === */
.co-task-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: white; border-radius: var(--radius-lg); margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.co-task-check { width: 24px; height: 24px; border: 2px solid #d1d5db; border-radius: 50%; flex-shrink: 0; }
.co-task-check-done { background: var(--success); border-color: var(--success); }
.co-task-content { flex: 1; }
.co-task-title { font-size: 0.875rem; font-weight: 500; color: #333333; }
.co-task-title-done { text-decoration: line-through; color: var(--legacy-text-light); }
.co-task-reward { font-size: 0.75rem; color: #ff6b35; font-weight: 600; }

/* === 签到 === */
.co-checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.co-checkin-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: 0.75rem; }
.co-checkin-cell.today { background: linear-gradient(135deg, var(--legacy-red), #ef4444); color: white; }
.co-checkin-cell.done { background: #fee2e2; color: var(--legacy-red); }
.co-checkin-cell.future { background: #f8fafc; color: #94a3b8; }

/* === 积分明细 === */
.co-points-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.co-points-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 12px; font-size: 1rem; }
.co-points-info { flex: 1; }
.co-points-desc { font-size: 0.8125rem; color: #333333; }
.co-points-time { font-size: 0.6875rem; color: #888888; }
.co-points-amount { font-size: 0.875rem; font-weight: 600; }
.co-points-amount-plus { color: var(--green-600); }
.co-points-amount-minus { color: #64748b; }

/* === 邀请 === */
.co-invite-card { background: linear-gradient(135deg, #fef3c7, #fffbeb); border-radius: var(--radius-lg); padding: 20px; text-align: center; margin-bottom: 16px; }
.co-invite-code { font-size: 1.5rem; font-weight: bold; color: #92400e; letter-spacing: 4px; margin: 12px 0; }
.co-invite-btn { display: inline-block; padding: 10px 24px; background: var(--legacy-red); color: white; border: none; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; cursor: pointer; }

/* === 公告 === */
.co-notice-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.co-notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--legacy-red); margin-top: 8px; flex-shrink: 0; }
.co-notice-text { font-size: 0.8125rem; color: #333333; line-height: 1.5; }

/* === 页脚提示 === */
.co-footer-hint { font-size: 0.75rem; color: var(--legacy-text-light); text-align: center; margin-top: 16px; }

/* === 进度环 === */
.co-ring-progress { position: relative; width: 60px; height: 60px; }
.co-ring-progress svg { transform: rotate(-90deg); }
.co-ring-progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.75rem; font-weight: 600; color: #333333; }
/* === 补充类 === */
.co-flex-1 { flex: 1; }
.co-text-center { text-align: center; }
.sticky-header {
    background: linear-gradient(135deg, var(--legacy-red), var(--legacy-red));
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: var(--z-card);
}