:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --gray: #e0e0e0;
    --gray-dark: #9e9e9e;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--gray-light);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 70px;
}
body.has-bottom-bar { padding-bottom: 80px; }
a:visited {
    color: var(--primary-dark);
}

/* ========== Layout ========== */
.content-wrap { padding: 0; }
.content-wrap.mt { margin-top: 16px; }
.spacer { height: 20px; }
.load-more { text-align: center; padding: 20px; color: var(--text-light); font-size: 13px; }
.link-item { text-decoration: none; color: inherit; }
.link-block { display: block; text-decoration: none; color: inherit; }

/* ========== Flex Utilities ========== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 8px; }
.flex-gap-lg { display: flex; align-items: center; gap: 10px; }
.flex-gap-xl { display: flex; align-items: center; gap: 12px; }
.flex-start { display: flex; align-items: flex-start; gap: 12px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

/* ========== Spacing Utilities ========== */
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

/* ========== Text Utilities ========== */
.text-muted { font-size: 12px; color: var(--text-light); }
.text-secondary { font-size: 13px; color: var(--text-secondary); }
.text-primary-sm { font-size: 12px; color: var(--primary); }
.text-success-sm { font-size: 12px; color: var(--success); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }
.fs-28 { font-size: 28px; }
.text-clamp-2 {
    font-size: 13px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-text { font-size: 15px; color: var(--text-secondary); line-height: 1.678; padding: 10px 0 5px 0; }
.article-text > p {margin: 0.1rem 0 0.2rem 0; padding: 0 0 0.2rem 0;}
.article-text > p img {max-width: 100%; height: auto; display: block; margin: 0 auto;}
.article-text img{max-width: 100%; height: auto;}
.article-body { font-size: 13px; color: var(--text-secondary); line-height: 1.789; }
.article-body ul { padding-left: 20px; margin-top: 8px; }
/* ========== Page Header ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white); padding: 16px 20px;
    position: sticky; top: 0; z-index: 100;
}
.page-header h1 { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 0;}
.page-header .header-left,
.page-header .header-right { position: absolute; top: 50%; transform: translateY(-50%); }
.page-header .header-left { left: 16px; }
.page-header .header-right { right: 16px; }
.page-header a { color: var(--white); text-decoration: none; font-size: 20px; }

/* ========== Tab Bar ========== */
.tab-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 750px; background: var(--white);
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 0; border-top: 1px solid var(--gray);
    z-index: 100; box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}
.tab-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: var(--text-light); font-size: 11px;
    padding: 4px 12px; transition: color 0.2s;
}
.tab-item i { font-size: 22px; margin-bottom: 2px; }
.tab-item.active { color: var(--primary); }

/* ========== Card ========== */
.card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); margin: 10px; padding: 15px; overflow: hidden;
    width:calc(100% - 20px); box-sizing: border-box;
}
.card-mt { margin-top: 16px; }
.card-archive { margin-top: -10px; border-top-left-radius: 16px; border-top-right-radius: 16px; }
.card-no-pad { padding: 0; }
.card-body { padding: 14px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }

/* ========== Section Title ========== */
.section-title {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    margin: 0 0 10px 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px;
}
.section-title .more { font-size: 12px; color: var(--text-light); text-decoration: none; }

/* ========== Buttons ========== */
button { appearance: none; -webkit-appearance: none; }

.btn-primary {
    background: var(--primary); color: var(--white); border: none;
    border-radius: var(--radius-sm); padding: 10px 24px; font-size: 14px;
    cursor: pointer; transition: background 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    height: auto; line-height: 1; white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
    background: transparent; color: var(--primary); border: 1px solid var(--primary);
    border-radius: var(--radius-sm); padding: 8px 20px; font-size: 13px;
    cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    height: auto; line-height: 1; white-space: nowrap;
}
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }
.btn-sm { font-size: 12px; padding: 4px 14px; }
.btn-white-outline { border-color: #fff; color: #fff; font-size: 12px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 4px; height: auto; line-height: 1; }

/* ========== Badge ========== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #e6f4ea; color: var(--success); }
.badge-warning { background: #fef7e0; color: #f59e0b; }
.badge-banner { background: rgba(255,255,255,0.2); color: #fff; }
.badge-ended { background: #e0e0e0; color: #999; }
.badge-skill { background: #f3e8ff; color: #9333ea; }
.badge-health { background: #fce8e6; color: #ea4335; }
.badge-art { background: #e0f2fe; color: #0284c7; }
.badge-green { background: rgba(52,168,83,0.8); color: #fff; }

/* ========== List Item ========== */
.list-item {
    display: flex; align-items: center; padding: 10px 0;
    border-bottom: 1px solid var(--gray-light); text-decoration: none; color: var(--text-primary);
}
.list-item:last-child { border-bottom: none; }
.list-item .item-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px; font-size: 20px;
}
.list-item .item-content { flex: 1; }
.list-item .item-title { font-size: 14px; font-weight: 500; }
.list-item .item-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.list-item .item-arrow { color: var(--gray-dark); font-size: 16px; }
.list-item-sm .item-title { font-size: 13px; }

/* ========== Icon Colors ========== */
.icon-blue { background: #e8f0fe; color: #1a73e8; }
.icon-green { background: #e6f4ea; color: #34a853; }
.icon-yellow { background: #fef7e0; color: #f59e0b; }
.icon-red { background: #fce8e6; color: #ea4335; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-cyan { background: #e0f2fe; color: #0284c7; }
.icon-gold { background: linear-gradient(135deg, #ffd700, #ffed4a); color: #b8860b; }
.icon-gray { background: var(--gray-light); color: var(--text-secondary); }

/* ========== Search Bar ========== */
.search-bar {
    display: flex; align-items: center; background: var(--white);
    border-radius: 20px; padding: 8px 14px; margin: 10px; box-shadow: var(--shadow);
}
.search-bar input { flex: 1; border: none; outline: none; font-size: 14px; margin-left: 8px; background: transparent; }
.search-bar i { color: var(--gray-dark); font-size: 18px; }

/* ========== Grid Nav ========== */
.grid-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 5px 0; }
.grid-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-primary); }
.grid-nav-item .nav-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 6px;
}
.grid-nav-item span { font-size: 12px; }

/* ========== Banner / Swiper ========== */
.banner {
    margin: 10px; border-radius: var(--radius); overflow: hidden;
    position: relative; height: 160px;
    background: linear-gradient(135deg, #1a73e8 0%, #3b8cff 100%);
}
.banner-content { padding: 24px 20px; color: var(--white); }
.banner-content h2 { font-size: 20px; margin-bottom: 8px; }
.banner-content p { font-size: 13px; opacity: 0.9; }

.swiper-wrap { margin: 10px; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 200px; }
.swiper-track { display: flex; height: 100%; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.swiper-slide { min-width: 100%; height: 100%; display: flex; align-items: center; text-decoration: none; position: relative; overflow: hidden; }
.swiper-bg-icon { position: absolute; right: 20px; bottom: 10px; font-size: 80px; color: rgba(255,255,255,0.15); }
.swiper-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.swiper-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.swiper-dot.active { width: 18px; background: #fff; }

/* ========== Quick Entry (Index) ========== */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 10px; }
.checkin-card.quick-card {
    margin: 0; display: flex; flex-direction: column; align-items: center;
    text-align: center; text-decoration: none; gap: 0;
    background: linear-gradient(135deg, #e8f0fe 0%, #dbeafe 100%);
    color: var(--primary);
}
.quick-card i { font-size: 28px; }
.quick-card h3 { font-size: 14px; }
.quick-card p { font-size: 11px; opacity: 0.75; }
.quick-card .checkin-btn { font-size: 12px; padding: 6px 16px; color: var(--primary); }
.checkin-card.quick-card-orange {
    background: linear-gradient(135deg, #fff4cc 0%, #fde68a 100%);
    color: #b77900;
}
.quick-card-orange .checkin-btn { color: #b77900; }

/* ========== Course Card ========== */
.course-card-list{padding: 0 10px;}
.course-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px;
}
.course-card .course-cover {
    width: 100%; height: 140px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.course-card .course-cover i { font-size: 40px; color: var(--primary); }
.course-card .course-cover .duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: var(--white);
    padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.course-card .course-info { padding: 12px; }
.course-card .course-title {
    font-size: 16px; font-weight: 500; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card .course-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-light); }
.course-card .course-desc { font-size: 13px; color: var(--text-light); margin: 4px 0; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.course-grid .course-card { margin: 0; }

.course-card-h { display: flex; text-decoration: none; color: inherit; }
.course-cover-h {
    width: 130px; min-width: 130px; height: 110px; border-radius: 8px 0 0 8px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.course-cover-h i { font-size: 48px; color: var(--primary); }
.course-cover-h .duration {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: var(--white);
    padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.course-cover-sm { width: 130px; min-width: 120px; height: 110px; border-radius: 8px 0 0 8px; }
.course-info-flex { flex: 1; }
.course-progress-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.course-progress-wrap { margin: 6px 0; }
.course-continue { font-size: 12px; color: var(--primary); }

.cover-yellow { background: linear-gradient(135deg, #fef7e0, #fde68a); }
.cover-yellow i { color: #f59e0b; }
.cover-green { background: linear-gradient(135deg, #e6f4ea, #bbf7d0); }
.cover-green i { color: #34a853; }
.cover-purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }
.cover-purple i { color: #9333ea; }
.cover-red { background: linear-gradient(135deg, #fce8e6, #fecaca); }
.cover-red i { color: #ea4335; }
.cover-cyan { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.cover-cyan i { color: #0284c7; }

/* ========== Filter Tabs ========== */
.filter-tabs { display: flex; overflow-x: auto; padding: 10px; gap: 8px; -webkit-overflow-scrolling: touch; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
    flex-shrink: 0; padding: 6px 16px; border-radius: 20px; font-size: 13px;
    background: var(--white); color: var(--text-secondary); text-decoration: none;
    border: 1px solid var(--gray); transition: all 0.2s;
}
.filter-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== Progress Bar ========== */
.progress-bar { height: 6px; background: var(--gray); border-radius: 3px; overflow: hidden; }
.progress-bar .progress { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }
.progress-bar-lg { height: 8px; }
.progress-success .progress { background: var(--success); }

/* ========== Live Card ========== */
.live-card { background: linear-gradient(135deg, var(--primary), #4a90d9); color: #fff; }

/* ========== Checkin Card ========== */
.checkin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius); padding: 18px; margin: 10px;
    color: var(--white); display: flex; align-items: center; justify-content: space-between;
}
.checkin-btn {
    background: var(--white); color: #764ba2; border: none;
    border-radius: 20px; padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ========== User Header (Profile) ========== */
.user-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 20px 30px; color: var(--white); text-align: center;
}
.user-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,0.2); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 12px; font-size: 32px;
}
.user-name { font-size: 18px; font-weight: 600; }
.user-subtitle { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.user-stats { display: flex; justify-content: space-around; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); }
.user-stats .stat-item { text-align: center; }
.user-stats .stat-value { font-size: 20px; font-weight: 600; }
.user-stats .stat-label { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.progress-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.progress-value span { font-size: 13px; font-weight: 400; color: var(--text-light); }
.progress-percent { font-size: 24px; font-weight: 700; color: var(--success); }
.progress-label { font-size: 12px; color: var(--text-light); }

/* ========== Video Player ========== */
.video-player { 
    width: 100%; 
    max-width: 100%; 
    background: #000; 
    position: relative; 
    aspect-ratio: 16/9; 
    overflow: hidden;
    box-sizing: border-box;
}
.video-player .video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    display: block;
}
.video-bg { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a2e, #16213e); display: flex; align-items: center; justify-content: center; }
.video-bg img { width: 100%; height: 100%; object-fit: cover; }
.no-video-tip { color: rgba(255,255,255,0.5); font-size: 14px; }
.doc-preview {
    width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; padding: 24px; box-sizing: border-box;
}
.doc-preview .doc-icon { font-size: 64px; color: var(--primary); margin-bottom: 12px; }
.doc-preview .doc-name { font-size: 15px; color: rgba(255,255,255,0.9); margin-bottom: 20px; max-width: 90%; word-break: break-all; }
.doc-preview .doc-download-link { text-decoration: none; }
.video-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
}
.video-player .play-btn {
    width: 60px; height: 60px; background: rgba(255,255,255,0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: transform 0.2s;
}
.video-player .play-btn:hover { transform: scale(1.1); }
.video-player .play-btn i { font-size: 28px; color: var(--primary); margin-left: 4px; }
.video-controls {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex; align-items: center; gap: 12px;
    z-index: 10;
}
.video-controls .time { color: var(--white); font-size: 12px; min-width: 40px; }
.video-controls .progress-track { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; position: relative; cursor: pointer; }
.video-controls .progress-fill { height: 100%; width: 0%; background: var(--primary); border-radius: 2px; transition: width 0.1s; }
.ctrl-btn { color: #fff; cursor: pointer; font-size: 16px; }
.ctrl-btn:hover { opacity: 0.8; }
.ctrl-play { font-size: 18px; }
.ctrl-speed { font-size: 12px; min-width: 32px; text-align: center; }
.ctrl-full { font-size: 18px; }

/* ========== Detail Header ========== */
.detail-header { background: var(--white); padding: 16px; position: sticky; top: 0; z-index: 50; }
.detail-header h1 { font-size: 18px; font-weight: 600; margin: 0; }
.detail-header p { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

/* ========== Info Grid (Course Detail) ========== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-item { display: flex; align-items: center; gap: 8px; }
.info-item i { color: var(--primary); }
.info-label { font-size: 12px; color: var(--text-light); }
.info-value { font-size: 13px; font-weight: 500; }

/* ========== Chapter List ========== */
.chapter-active { background: var(--primary-light); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.chapter-icon {
    background: var(--primary); color: #fff;
    width: 32px; height: 32px; min-width: 32px;
    font-size: 14px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; margin-right: 12px;
}
.chapter-icon-locked { background: var(--gray-light); color: var(--text-secondary); }

/* ========== Bottom Bar ========== */
.bottom-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 750px; background: var(--white);
    padding: 12px 16px; display: flex; gap: 12px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08); z-index: 100;
}
.bottom-bar .btn-outline { flex: 1; }
.bottom-bar .btn-primary { flex: 2; }

/* ========== Activity Hero ========== */
.activity-hero {
    height: 200px; background: linear-gradient(135deg, #1a73e8, #4a90d9);
    display: flex; align-items: center; justify-content: center;
    color: #fff; position: relative;
}
.activity-hero i { font-size: 64px; opacity: 0.6; }
.hero-badges { position: absolute; bottom: 12px; left: 16px; display: flex; gap: 8px; }
.card-overlap { margin-top: -10px; position: relative; z-index: 10; }

/* ========== Detail Info ========== */
.detail-info-row { display: flex; align-items: center; gap: 10px; }
.detail-info-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

/* ========== Activity Card ========== */
.activity-cover {
    height: 120px; display: flex; align-items: center; justify-content: center; color: #fff;
}
.activity-cover i { font-size: 48px; opacity: 0.8; }
.activity-cover-sm { height: 100px; }
.activity-cover-sm i { font-size: 40px; }
.bg-blue { background: linear-gradient(135deg, #1a73e8, #4a90d9); }
.bg-green { background: linear-gradient(135deg, #34a853, #4ade80); }
.bg-yellow { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.bg-purple { background: linear-gradient(135deg, #9333ea, #a855f7); }
.bg-activity-banner { height: 140px; background: linear-gradient(135deg, #667eea, #764ba2); }
.news-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--text-light); }

/* ========== Timeline ========== */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--gray); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute; left: -20px; top: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary); border: 2px solid var(--primary-light);
}
.timeline-dot-end { background: var(--success); border-color: #e6f4ea; }
.timeline-time { font-size: 13px; font-weight: 500; }
.timeline-desc { font-size: 12px; color: var(--text-light); }

/* ========== News Card ========== */
.news-card-title {
    font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-h { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px; align-items: center; }
.news-card-thumb {
    width: 110px; min-width: 110px; height: 80px;
    border-radius: 6px; overflow: hidden;
    background: var(--gray-light); flex-shrink: 0;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { flex: 1; min-width: 0; }

/* ========== News Detail ========== */
.news-detail-title { font-size: 18px; font-weight: 700; line-height: 1.345; margin-bottom: 10px; }
.news-detail-meta {
    display: flex; align-items: center; gap: 16px; font-size: 12px;
    color: var(--text-light); padding-bottom: 10px; border-bottom: 1px solid var(--gray-light);
}
.news-sign { text-align: right; color: var(--text-light); }

/* ========== Notification ========== */
.notif-body { display: flex; align-items: flex-start; gap: 12px; }
.notif-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notif-icon i { font-size: 18px; }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; }
.notif-time { font-size: 11px; color: var(--text-light); }
.notif-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); display: inline-block; margin-top: 6px; }
.unread-label { font-size: 11px; color: var(--danger); margin-left: 4px; }

/* ========== Checkin Page ========== */
.checkin-stats { display: flex; justify-content: space-around; margin-bottom: 16px; }
.checkin-stat { text-align: center; }
.checkin-stat-value { font-size: 28px; font-weight: 700; }
.checkin-stat-value.blue { color: var(--primary); }
.checkin-stat-value.green { color: var(--success); }
.checkin-stat-value.yellow { color: #f59e0b; }
.checkin-stat-label { font-size: 12px; color: var(--text-light); }
.divider-v { width: 1px; background: var(--gray); }

.calendar-header { text-align: center; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-head { font-size: 11px; color: var(--text-light); padding: 4px 0; }
.cal-empty { padding: 6px 0; font-size: 12px; color: var(--text-light); }
.cal-day { padding: 6px 0; font-size: 12px; border-radius: 6px; color: var(--text-secondary); }
.cal-day.checked { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.cal-day.today { background: var(--primary); color: #fff; font-weight: 600; }

.record-meta { text-align: right; }
.record-time { font-size: 12px; color: var(--text-light); }
.record-points { font-size: 11px; color: var(--primary); }

/* ========== Certificate ========== */
.cert-header { margin: 5px 0; }
.cert-badge {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    display: flex; align-items: center; justify-content: center;
}
.cert-badge i { font-size: 24px; color: #b8860b; }

.cert-card {
    border-radius: 12px; padding: 24px 20px; margin: 10px;
    position: relative; overflow: hidden; text-align: center;
}
.cert-card::before {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 80px; height: 80px; border-radius: 50%;
}
.cert-card::after {
    content: ''; position: absolute; bottom: -25px; left: -25px;
    width: 60px; height: 60px; border-radius: 50%;
}
.cert-card .cert-icon { font-size: 40px; margin-bottom: 8px; position: relative; z-index: 1; }
.cert-card .cert-name { font-size: 16px; font-weight: 600; margin: 8px 0 4px; position: relative; z-index: 1; }
.cert-card .cert-desc { font-size: 12px; position: relative; z-index: 1; }
.cert-card .cert-btn { margin-top: 14px; font-size: 12px; padding: 6px 18px; position: relative; z-index: 1; }

.cert-gold {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}
.cert-gold::before { background: rgba(255,215,0,0.2); }
.cert-gold::after { background: rgba(255,215,0,0.15); }
.cert-gold .cert-icon { color: #b8860b; }
.cert-gold .cert-name { color: #8b6914; }
.cert-gold .cert-desc { color: #a08520; }
.cert-gold .cert-btn { border-color: #b8860b; color: #b8860b; }

.cert-green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
}
.cert-green::before { background: rgba(52,168,83,0.12); }
.cert-green::after { background: rgba(52,168,83,0.08); }
.cert-green .cert-icon { color: #16a34a; }
.cert-green .cert-name { color: #15803d; }
.cert-green .cert-desc { color: #22863a; }
.cert-green .cert-btn { border-color: #16a34a; color: #16a34a; }

.cert-available { background: var(--gray-light); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.cert-available:last-child { margin-bottom: 0; }
.cert-available-title { font-size: 14px; font-weight: 500; }
.cert-available-sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.cert-available-pct { font-size: 18px; font-weight: 700; color: var(--primary); }
.cert-available-hint { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* ========== Settings ========== */
.settings-avatar-area { text-align: center; margin-bottom: 20px; }
.settings-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--primary-light); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 8px; cursor: pointer;
}
.settings-avatar i { font-size: 32px; color: var(--primary); }
.phone-row { display: flex; gap: 10px; }
.phone-row input { flex: 1; }
.code-btn { white-space: nowrap; padding: 10px 14px; font-size: 13px; }

/* ========== About ========== */
.about-hero { text-align: center; padding: 40px 20px 20px; }
.about-logo {
    width: 80px; height: 80px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.about-logo i { font-size: 36px; color: #fff; }
.about-copyright { text-align: center; padding: 20px; font-size: 12px; color: var(--text-light); }

/* ========== Contact ========== */
.contact-hero { text-align: center; }
.contact-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary-light); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 12px;
}
.contact-icon i { font-size: 28px; color: var(--primary); }

/* ========== Feedback ========== */
.feedback-hero { text-align: center; padding: 10px 0 20px; }
.feedback-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary-light); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 12px;
}
.feedback-icon i { font-size: 28px; color: var(--primary); }
.upload-area { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-btn-wrap {
    width: 80px; height: 80px; border: 2px dashed var(--gray); border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-light);
}
.upload-btn-wrap i { font-size: 24px; }
.upload-btn-wrap span { font-size: 11px; }
.required-star { color: var(--danger); }

/* ========== Empty State ========== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* ========== Form ========== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray);
    border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ========== Popup Styles ========== */
.popup-center { text-align: center; padding: 20px 15px; }
.popup-center > p{text-align: center; padding: 1px 0; margin: 0 0 0.25rem 0;}
.popup-qr-icon img { width: 160px; height: 160px; }
.popup-title { font-size: 16px; font-weight: 600; margin-top: 10px; }
.popup-desc { font-size: 12px; color: #999; margin-top: 5px; }

.popup-form { padding: 20px 16px; }
.popup-form-header { text-align: center; margin-bottom: 16px; }
.popup-form-header i { font-size: 32px; color: var(--primary); }
.popup-form-header p { font-size: 14px; font-weight: 600; margin-top: 6px; }
.popup-form-header .popup-desc { margin-top: 2px; }
.popup-field { margin-bottom: 14px; }
.popup-field:last-child { margin-bottom: 4px; }
.popup-label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.popup-input {
    width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0;
    border-radius: 8px; font-size: 14px; outline: none; box-sizing: border-box;
}

.popup-cert {
    text-align: center; padding: 20px;
}
.popup-cert-inner {
    border: 3px solid #b8860b; border-radius: 12px; padding: 30px 20px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    position: relative; overflow: hidden;
}
.popup-cert-inner::before {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(255,215,0,0.15);
}
.popup-cert-inner::after {
    content: ''; position: absolute; bottom: -40px; left: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,215,0,0.1);
}
.popup-cert-inner i { font-size: 48px; color: #b8860b; position: relative; z-index: 1; }
.popup-cert-inner h3 { color: #8b6914; margin: 12px 0; position: relative; z-index: 1; }
.popup-cert-inner .cert-line { font-size: 14px; color: #333; margin: 8px 0; position: relative; z-index: 1; }
.popup-cert-inner .cert-sub { font-size: 13px; color: #666; position: relative; z-index: 1; }
.popup-cert-inner .cert-award { font-size: 16px; font-weight: 600; color: #b8860b; margin: 12px 0; position: relative; z-index: 1; }
.popup-cert-inner .cert-footer { font-size: 12px; color: #999; margin-top: 16px; position: relative; z-index: 1; }
