/* ==============================================================================
   楚雄蓝天救援队 - 前台主样式表
   蓝色主题 #0066CC / #003d7a / #f0f6ff
   ============================================================================== */

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
    overflow-x: hidden;
}

a {
    color: #0066CC;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #003d7a;
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Variables ========== */
:root {
    --primary: #0066CC;
    --primary-dark: #003d7a;
    --primary-light: #f0f6ff;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --gray: #999;
    --gray-light: #f0f0f0;
    --gray-dark: #666;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========== Header ========== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 24px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-contact-item svg {
    opacity: 0.8;
}

.header-user a {
    color: #fff;
}

.header-divider {
    margin: 0 6px;
    opacity: 0.5;
}

.header-main {
    padding: 12px 0;
    background: #fff;
}

.header-main-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 1px;
}

/* ========== Navigation ========== */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 18px;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

.nav-link.nav-sos {
    background: var(--danger);
    color: #fff;
    font-weight: 600;
}

.nav-link.nav-sos:hover {
    background: #c0392b;
    color: #fff;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    list-style: none;
    padding: 8px 0;
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
}

/* ========== Main Content ========== */
.main-content {
    min-height: 60vh;
}

.page-wrap {
    padding: 30px 0;
}

.page-banner {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-dark);
}

/* ========== Info Public Page ========== */
.info-overview {
    margin-bottom: 40px;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.overview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    min-height: 160px;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.overview-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.overview-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.overview-label {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.info-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-nav-card {
    display: block;
    padding: 28px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.info-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.06) 0%, transparent 100%);
    border-radius: 0 0 0 80px;
    transition: all var(--transition);
}

.info-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.info-nav-card:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.04) 0%, transparent 100%);
}

.info-nav-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.info-nav-card p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .overview-cards,
    .info-nav {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .overview-card {
        padding: 22px 14px;
        min-height: 130px;
    }

    .overview-num {
        font-size: 1.6rem;
    }

    .info-nav-card {
        padding: 22px 18px;
    }

    .info-nav-card h3 {
        font-size: 1.1rem;
    }
}

/* ========== Banner Carousel ========== */
.banner-section {
    margin: -30px -20px 0;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    background: #000;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    position: relative;
}

.banner-default {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 60px 0;
    color: #fff;
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-desc {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.banner-link {
    display: inline-block;
    padding: 8px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition);
}

.banner-link:hover {
    background: #fff;
    color: var(--primary);
    text-decoration: none;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* ========== Stats Section ========== */
.stats-section {
    padding: 40px 0;
    background: var(--primary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    color: #fff;
    transition: transform var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-blue {
    background: linear-gradient(135deg, #0066CC, #004499);
}

.stat-dark-blue {
    background: linear-gradient(135deg, #003d7a, #002651);
}

.stat-light-blue {
    background: linear-gradient(135deg, #3385d6, #0066CC);
}

.stat-sky-blue {
    background: linear-gradient(135deg, #4d9fe8, #1a75c2);
}

.stat-icon {
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ========== Quick Section ========== */
.quick-section {
    padding: 40px 0;
    background: #fff;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    border-radius: var(--radius);
    color: #fff;
    transition: all var(--transition);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.quick-sos {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.quick-join {
    background: linear-gradient(135deg, #0066CC, #003d7a);
}

.quick-volunteer {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.quick-news {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.quick-icon {
    opacity: 0.9;
}

.quick-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========== Article Cards ========== */
.latest-news {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.section-more {
    font-size: 0.9rem;
    color: var(--primary);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.article-card-link:hover {
    text-decoration: none;
}

.article-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--primary-light);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.article-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
    opacity: 0.3;
}

.pin-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.article-body {
    padding: 16px;
}

.article-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-summary {
    font-size: 0.85rem;
    color: var(--gray-dark);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========== Notice & Media ========== */
.notice-media-section {
    padding: 40px 0;
    background: var(--gray-light);
}

.notice-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.notice-list {
    list-style: none;
}

.notice-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    transition: color var(--transition);
}

.notice-item a:hover {
    color: var(--primary);
    text-decoration: none;
}

.notice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-date {
    font-size: 0.8rem;
    color: var(--gray);
    flex-shrink: 0;
}

.notice-item.empty {
    text-align: center;
    color: var(--gray);
    padding: 30px 0;
}

.media-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.media-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.media-card:hover {
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.media-cover {
    height: 120px;
    overflow: hidden;
    background: var(--primary-light);
}

.media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
    opacity: 0.3;
}

.media-body {
    padding: 12px;
}

.media-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-summary {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-bottom: 6px;
}

.media-date {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ========== Bottom Intro ========== */
.bottom-intro {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
}

.intro-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.intro-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.intro-text p {
    font-size: 1rem;
    color: var(--gray-dark);
}

.intro-actions {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========== News List ========== */
.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.news-search-form {
    display: flex;
    gap: 8px;
}

.news-search-input {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    width: 280px;
}

.news-search-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.news-count {
    font-size: 0.85rem;
    color: var(--gray);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-list-item {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-lg);
}

.news-list-link {
    display: flex;
    gap: 0;
    color: inherit;
    text-decoration: none;
}

.news-list-link:hover {
    text-decoration: none;
}

.news-list-cover {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: var(--primary-light);
}

.news-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
    opacity: 0.3;
}

.news-list-body {
    flex: 1;
    padding: 16px 20px;
}

.news-list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.news-list-link:hover .news-list-title {
    color: var(--primary);
}

.news-list-summary {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* ========== News Tabs ========== */
.news-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary-light);
}

.news-tab {
    padding: 10px 20px;
    color: var(--gray-dark);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.news-tab:hover,
.news-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-decoration: none;
}

/* ========== Article Detail ========== */
.article-detail {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.article-detail-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-detail-cat {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.article-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gray);
}

.article-detail-summary {
    padding: 16px 20px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--gray-dark);
}

.article-detail-cover {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-detail-cover img {
    width: 100%;
}

.article-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.article-detail-content p {
    margin-bottom: 16px;
}

.article-detail-content h2,
.article-detail-content h3 {
    margin: 24px 0 12px;
    color: var(--primary-dark);
}

.article-detail-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.article-nav-prev:hover,
.article-nav-next:hover {
    background: #d6e8ff;
    text-decoration: none;
}

.article-nav-prev span,
.article-nav-next span {
    font-size: 0.8rem;
    color: var(--gray);
    display: block;
}

.article-nav-prev strong,
.article-nav-next strong {
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.article-nav-next {
    text-align: right;
}

.related-articles {
    background: #f9f9f9;
    border-radius: var(--radius);
    padding: 20px;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.related-list {
    list-style: none;
}

.related-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.9rem;
    color: #333;
}

.related-list li a:hover {
    color: var(--primary);
    text-decoration: none;
}

.related-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.related-date {
    font-size: 0.8rem;
    color: var(--gray);
    flex-shrink: 0;
}

/* ========== Search Bar ========== */
.search-bar {
    margin-bottom: 24px;
}

.search-bar-form {
    display: flex;
    gap: 8px;
}

.search-bar-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-bar-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-result-info {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #333;
    background: #fff;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-text {
    text-align: center;
    color: var(--gray);
    padding: 40px 0;
}

/* ========== Flash Message ========== */
.flash-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.95rem;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-info {
    background: var(--primary);
}

.flash-success {
    background: var(--success);
}

.flash-error {
    background: var(--danger);
}

.flash-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 50px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
}

.footer-link-list {
    list-style: none;
}

.footer-link-list li a {
    display: block;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-link-list li a:hover {
    color: #fff;
    opacity: 1;
}

.footer-contact-list {
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: rgba(255, 255, 255, 0.5);
}

.qr-text {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-divider {
    margin: 0 8px;
}

/* ========== Page Layout ========== */
.page-layout {
    display: flex;
    gap: 30px;
}

/* ========== Sidebar ========== */
.page-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #555;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.sidebar-badge {
    font-size: 0.75rem;
    background: var(--danger);
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
}

.sidebar-duty .duty-date-line {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 6px;
}

.sidebar-duty .duty-empty {
    color: var(--gray);
    font-size: 0.85rem;
    padding: 6px 0;
}

.sidebar-duty .duty-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar-duty .duty-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.duty-shift-badge {
    display: inline-block;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.duty-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.duty-phone {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

.duty-phone:hover {
    text-decoration: underline;
}

.duty-note {
    font-size: 0.8rem;
    color: var(--gray);
}

/* 近期排班 */
.sidebar-upcoming-duty .upcoming-duty-group {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}

.sidebar-upcoming-duty .upcoming-duty-date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
}

.sidebar-upcoming-duty .upcoming-date-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.sidebar-upcoming-duty .upcoming-weekday {
    font-size: 0.7rem;
    color: var(--gray);
}

.sidebar-upcoming-duty .upcoming-duty-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-upcoming-duty .upcoming-duty-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-upcoming-duty .upcoming-duty-item .duty-name {
    font-size: 0.82rem;
    font-weight: 500;
}

.sidebar-emergency {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-item {
    display: flex;
    flex-direction: column;
}

.emergency-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.emergency-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger);
}

/* ========== Page Main ========== */
.page-main {
    flex: 1;
    min-width: 0;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.sub-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 30px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.content-block {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.content-block p {
    margin-bottom: 16px;
}

/* ========== Forms ========== */
.form-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

select.form-input {
    cursor: pointer;
}

.form-actions {
    margin-top: 24px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========== Auth Page ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 0;
}

.auth-card {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 32px 24px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.auth-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 6px;
}

.auth-form {
    padding: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-footer p {
    margin: 6px 0;
}

.password-input-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    padding: 4px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* ========== Profile Page ========== */
.profile-page {
    padding: 30px 0;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary-light);
}

.profile-tab {
    padding: 10px 20px;
    color: var(--gray-dark);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.profile-tab:hover,
.profile-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-decoration: none;
}

.profile-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.avatar-placeholder-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.profile-info h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat {
    text-align: center;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.profile-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.profile-stat-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.password-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* ========== Volunteer Level Tags ========== */
.volunteer-level {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
}

.volunteer-level.volunteer {
    background: #95a5a6;
}

.volunteer-level.certified {
    background: #3498db;
}

.volunteer-level.reserve {
    background: #f39c12;
}

.volunteer-level.formal {
    background: #e74c3c;
}

.volunteer-level-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
}

.volunteer-level-tag.volunteer {
    background: #95a5a6;
}

.volunteer-level-tag.certified {
    background: #3498db;
}

.volunteer-level-tag.reserve {
    background: #f39c12;
}

.volunteer-level-tag.formal {
    background: #e74c3c;
}

.level-badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.level-badge.level-volunteer {
    background: #95a5a6;
}

.level-badge.level-certified {
    background: #3498db;
}

.level-badge.level-reserve {
    background: #f39c12;
}

.level-badge.level-formal {
    background: #e74c3c;
}

.path-step-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
}

.path-step-badge.level-volunteer {
    background: #95a5a6;
}

.path-step-badge.level-certified {
    background: #3498db;
}

.path-step-badge.level-reserve {
    background: #f39c12;
}

.path-step-badge.level-formal {
    background: #e74c3c;
}

/* ========== Volunteer Grid ========== */
.volunteer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.letter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    transition: var(--transition);
}

.letter-btn:hover,
.letter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.volunteer-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.volunteer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.volunteer-avatar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto 8px;
    background: var(--primary-light);
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.volunteer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.volunteer-avatar .avatar-placeholder {
    border-radius: 50%;
    font-size: 3rem;
}

.volunteer-level {
    position: static;
    vertical-align: middle;
    margin-left: 6px;
}

.volunteer-info {
    padding: 14px;
}

.volunteer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.volunteer-stars {
    margin-bottom: 8px;
}

.star {
    color: #ddd;
    font-size: 0.9rem;
}

.star.filled {
    color: #f1c40f;
}

.volunteer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.volunteer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.skill-tag {
    font-size: 0.7rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.volunteer-cert {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 6px;
}

.result-info {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ========== Ranking ========== */
.ranking-filter {
    margin-bottom: 24px;
}

.year-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year-select {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
}

.ranking-podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 40px;
}

.podium-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    color: #fff;
}

.podium-1 {
    background: linear-gradient(135deg, #ffd700, #c9a700);
    color: #5a4500;
    order: 2;
    transform: scale(1.1);
}

.podium-2 {
    background: linear-gradient(135deg, #c0c0c0, #999);
    color: #444;
    order: 1;
}

.podium-3 {
    background: linear-gradient(135deg, #cd7f32, #a06820);
    color: #fff;
    order: 3;
}

.podium-rank {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}

.podium-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podium-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.podium-level {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 8px;
}

.podium-hours {
    font-size: 1.1rem;
    font-weight: 600;
}

.podium-medal {
    font-size: 2rem;
    margin-top: 8px;
}

.ranking-table-wrap {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
}

.ranking-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.ranking-table tbody tr:hover {
    background: #f9f9f9;
}

.rank-cell {
    width: 60px;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-light);
    font-weight: 600;
    font-size: 0.85rem;
}

.rank-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.hours-cell {
    font-weight: 600;
    color: var(--primary);
}

/* ========== Honor Wall ========== */
.honor-filter {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.honor-tab {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    color: var(--gray-dark);
    font-weight: 500;
    transition: var(--transition);
}

.honor-tab:hover,
.honor-tab.active {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.honor-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.honor-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.honor-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.honor-image {
    height: 200px;
    overflow: hidden;
    background: var(--primary-light);
}

.honor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.honor-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary);
    opacity: 0.3;
}

.honor-body {
    padding: 16px;
}

.honor-type-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 8px;
}

.honor-type-tag.team {
    background: var(--primary);
}

.honor-type-tag.individual {
    background: var(--success);
}

.honor-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.honor-recipient,
.honor-org,
.honor-date,
.honor-desc {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 4px;
}

/* ========== Certificate Search ========== */
.cert-search-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.cert-search-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.cert-search-desc {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 24px;
}

.cert-search-form .form-row {
    flex-direction: row;
}

.cert-result {
    margin-top: 30px;
}

.cert-result-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cert-found {
    border-left: 4px solid var(--success);
}

.cert-result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--primary-light);
}

.cert-result-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
}

.cert-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-result-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 4px;
}

.cert-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.cert-result-details {
    padding: 20px 24px;
}

.cert-detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.cert-label {
    width: 100px;
    color: var(--gray);
    flex-shrink: 0;
}

.cert-value {
    color: #333;
    font-weight: 500;
}

.cert-value.skills {
    font-weight: normal;
}

.cert-not-found {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.cert-help {
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ========== SOS Page ========== */
.sos-page {
    padding: 30px 0;
}

.sos-banner {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: #fff;
    padding: 50px 20px;
}

.sos-banner .page-title {
    color: #fff;
}

.sos-banner .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.sos-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff3cd;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.sos-alert-icon {
    color: var(--warning);
}

.sos-alert-content h3 {
    font-size: 1rem;
    color: #856404;
    margin-bottom: 4px;
}

.sos-phone-big {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger);
}

.sos-divider {
    margin: 0 8px;
    color: var(--gray);
}

.sos-duty {
    margin-bottom: 24px;
}

.duty-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.duty-row .duty-shift-badge {
    font-size: 12px;
    padding: 2px 8px;
}

.duty-row .duty-phone {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.duty-row .duty-phone:hover {
    text-decoration: underline;
}

/* SOS 近期排班卡片 */
.upcoming-duty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.upcoming-duty-card {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 12px 16px;
}

.upcoming-duty-card-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.upcoming-duty-card-date .upcoming-date-day {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.upcoming-duty-card-date .upcoming-date-week {
    font-size: 0.8rem;
    color: var(--gray);
}

.upcoming-duty-card-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upcoming-duty-card-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.upcoming-duty-card-item .duty-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.upcoming-duty-card-item .duty-phone {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
}

.sos-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.gps-group {
    display: flex;
    gap: 8px;
}

.gps-group .form-input {
    flex: 1;
}

.sos-notice {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.sos-notice h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.sos-notice ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.sos-notice ul li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.sos-notice ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ========== Coop Page ========== */
.coop-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.coop-nav-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: inherit;
}

.coop-nav-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    text-decoration: none;
}

.coop-nav-card:hover h3 {
    color: var(--primary);
}

.coop-nav-icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.coop-nav-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
    transition: var(--transition);
}

.coop-nav-card p {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.coop-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 30px;
}

.coop-link-apply {
    font-weight: 600;
}

/* ========== Coop Page v2 (参考 bsr.gd.cn/cooperation) ========== */
.coop-page {
    padding-bottom: 0;
}

.coop-hero {
    background: linear-gradient(135deg, #003d7a 0%, #0066CC 60%, #0080ff 100%);
    color: #fff;
    padding: 60px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coop-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.coop-hero::after {
    content: "";
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.coop-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.coop-hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 合作类型导航 */
.coop-type-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: -30px auto 0;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px;
}

.coop-type-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 12px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: inherit;
    text-decoration: none;
}

.coop-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,102,204,0.15);
    text-decoration: none;
}

.coop-type-icon {
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.coop-type-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* 为什么选择我们 */
.coop-why-section {
    padding: 60px 0;
    background: #fff;
}

.coop-section-heading {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 40px;
    position: relative;
}

.coop-section-heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 12px auto 0;
}

.coop-section-heading-top {
    margin-bottom: 30px;
}

.coop-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.coop-feature-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8faff 0%, #eef5ff 100%);
    border: 1px solid #e8f0ff;
    transition: all 0.3s ease;
}

.coop-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.1);
}

.coop-feature-icon {
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.coop-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.coop-feature-card p {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* 动态版块 */
.coop-block {
    padding: 50px 0;
    background: #f5f8fc;
}

.coop-block-alt {
    background: #fff;
}

.coop-block-header {
    text-align: center;
    margin-bottom: 24px;
}

.coop-block-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.coop-block-subtitle {
    font-size: 1rem;
    color: var(--gray-dark);
}

.coop-block-desc {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    text-align: center;
}

.coop-block-desc p {
    margin-bottom: 12px;
}

/* 子项列表 */
.coop-sub-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.coop-sub-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.coop-block-alt .coop-sub-item {
    background: #f8faff;
    border: 1px solid #e8f0ff;
}

.coop-sub-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,102,204,0.08);
}

.coop-sub-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(0,102,204,0.15);
}

.coop-sub-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.coop-sub-content p {
    font-size: 0.85rem;
    color: var(--gray-dark);
    line-height: 1.5;
}

/* 案例区域 */
.coop-cases-section {
    max-width: 1100px;
    margin: 0 auto;
}

.coop-cases-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.coop-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.coop-case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.coop-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
}

.coop-case-cover {
    height: 120px;
    overflow: hidden;
    background: var(--primary-light);
}

.coop-case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.coop-case-card:hover .coop-case-cover img {
    transform: scale(1.08);
}

.coop-case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 2rem;
}

.coop-case-body {
    padding: 12px 14px;
}

.coop-case-body h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coop-case-body p {
    font-size: 0.8rem;
    color: var(--gray-dark);
    line-height: 1.4;
}

/* 合作伙伴墙 */
.coop-partners-section {
    padding: 50px 0;
    background: #f5f8fc;
}

.coop-partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.coop-partner-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.coop-partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-decoration: none;
}

.coop-partner-card img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.coop-partner-name {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* CTA 区域 */
.coop-cta-section {
    padding: 50px 0;
    background: #fff;
}

.coop-cta-box {
    background: linear-gradient(135deg, #003d7a 0%, #0066CC 100%);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.coop-cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.coop-cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.coop-cta-box p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.coop-btn-primary {
    display: inline-block;
    padding: 14px 48px;
    background: #fff;
    color: var(--primary);
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.coop-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--primary-dark);
}

.coop-btn-outline {
    display: inline-block;
    padding: 10px 32px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.coop-btn-outline:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* ========== Cases ========== */
.case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
}

.case-cover {
    height: 160px;
    overflow: hidden;
    background: var(--primary-light);
}

.case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-body {
    padding: 16px;
}

.case-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.case-summary {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.case-partner {
    font-size: 0.8rem;
    color: var(--primary);
}

/* ========== Case Page v2 (4列卡片式) ========== */
.case-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 0 50px;
}

.case-page-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
}

.case-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.case-page-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f7fa;
}

.case-page-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-page-card:hover .case-page-cover img {
    transform: scale(1.06);
}

.case-page-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.case-page-body {
    padding: 14px 16px 18px;
}

.case-page-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.case-page-partner {
    font-size: 0.78rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.case-page-partner svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.case-page-summary {
    font-size: 0.8rem;
    color: var(--gray-dark);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Projects ========== */
.projects-section {
    margin-bottom: 30px;
}

.project-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: inherit;
}

.project-case-card:hover {
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.project-case-cover {
    height: 160px;
    overflow: hidden;
    background: var(--primary-light);
}

.project-case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-case-body {
    padding: 16px;
}

.project-case-type {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.project-case-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.project-case-body p {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.project-case-partner {
    font-size: 0.8rem;
    color: var(--primary);
}

.partner-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.partner-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    transition: var(--transition);
}

.partner-card:hover {
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
    flex-shrink: 0;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.partner-logo-placeholder-lg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

.partner-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.partner-type {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    margin: 2px 0;
}

.partner-desc {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.partner-wall-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.partner-full-card {
    display: flex;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 16px;
    gap: 16px;
    transition: var(--transition);
}

.partner-full-card:hover {
    box-shadow: var(--shadow-lg);
}

.partner-full-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--primary-light);
    flex-shrink: 0;
}

.partner-full-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-full-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.partner-full-type {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary);
    margin: 4px 0;
}

.partner-full-desc {
    font-size: 0.85rem;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.partner-website {
    font-size: 0.85rem;
}

/* ========== About Page ========== */
.about-page .page-layout {
    margin-top: 0;
}

.about-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.highlight-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-body h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.highlight-body p {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 24px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.about-stat {
    text-align: center;
}

.about-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ========== Timeline Simple ========== */
.timeline-simple {
    position: relative;
    padding-left: 30px;
    margin: 30px 0;
}

.timeline-simple::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item-simple {
    position: relative;
    padding-bottom: 24px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
    display: block;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

/* ========== Org Chart ========== */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.org-level {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.org-line {
    width: 2px;
    height: 30px;
    background: #ddd;
}

.org-node {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 24px;
    text-align: center;
    min-width: 120px;
    box-shadow: var(--shadow);
}

.org-head {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
}

.org-deputy {
    background: var(--primary-light);
    border-color: var(--primary);
}

.org-branch {
    background: #fff;
    border-color: var(--primary);
}

.org-support {
    background: var(--primary-light);
    border-color: #99c2e6;
}

.org-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
}

.org-desc {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 4px;
}

.org-branches {
    flex-wrap: wrap;
}

.level-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.level-item p {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

/* ========== Anniversary ========== */
.anniversary-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    color: #fff;
    margin-bottom: 30px;
}

.anniversary-badge {
    display: inline-block;
    margin-bottom: 16px;
}

.anniversary-num {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.anniversary-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

.anniversary-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.anniversary-desc {
    font-size: 1rem;
    opacity: 0.85;
}

.anniversary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.ann-stat-card {
    text-align: center;
    padding: 20px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.ann-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ann-stat-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.ann-article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ann-article-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: inherit;
}

.ann-article-item:hover {
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.ann-article-cover {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--primary-light);
}

.ann-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ann-article-body {
    flex: 1;
    padding: 12px;
}

.ann-article-body h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 4px;
}

.ann-article-body p {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

.ann-article-date {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ========== Color Palette ========== */
.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.color-item {
    text-align: center;
}

.color-swatch {
    width: 100%;
    height: 80px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.color-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.color-code {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    font-family: monospace;
}

/* ========== Growth Path ========== */
.path-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px 0;
}

.path-step {
    flex: 1;
    max-width: 200px;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.path-step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.path-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.path-step-body h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.path-step-body p {
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.path-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.join-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    color: #fff;
    margin-top: 30px;
}

.cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.cta-content p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cta-actions {
    display: flex;
    gap: 12px;
}

.join-cta .btn-primary {
    background: #fff;
    color: var(--primary);
}

.join-cta .btn-primary:hover {
    background: var(--primary-light);
}

.join-cta .btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.join-cta .btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* ========== Guide ========== */
.guide-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.guide-section {
    margin-bottom: 30px;
}

.guide-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.guide-list {
    list-style: none;
    padding-left: 16px;
}

.guide-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 0.9rem;
    color: #555;
}

.guide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.process-step {
    text-align: center;
    padding: 16px 8px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.process-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.process-step h4 {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.process-step p {
    font-size: 0.8rem;
    color: var(--gray-dark);
}

/* ========== SOS List ========== */
.sos-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sos-item-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sos-item-card:hover {
    box-shadow: var(--shadow-lg);
}

.sos-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--primary-light);
}

.sos-item-no {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.sos-item-status {
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
}

.status-pending {
    background: var(--warning);
}

.status-processing {
    background: var(--primary);
}

.status-resolved {
    background: var(--success);
}

.status-closed {
    background: var(--gray);
}

.sos-item-body {
    padding: 16px;
}

.sos-item-row {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.85rem;
}

.sos-item-label {
    color: var(--gray);
    min-width: 80px;
}

.sos-urgency {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 1px 8px;
    border-radius: 10px;
    color: #fff;
}

.urgency-normal {
    background: var(--success);
}

.urgency-urgent {
    background: var(--warning);
}

.urgency-critical {
    background: var(--danger);
}

/* ========== Back Link ========== */
.back-link {
    margin-top: 24px;
    text-align: center;
}

/* ========== Error Page ========== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.error-desc {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========== Records Table ========== */
.records-table-wrap {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.records-table {
    width: 100%;
    border-collapse: collapse;
}

.records-table th,
.records-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
}

.records-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.records-table tbody tr {
    border-bottom: 1px solid #eee;
}

.records-table tbody tr:hover {
    background: #f9f9f9;
}

.status-verified {
    color: var(--success);
    font-size: 0.8rem;
}

.status-pending {
    color: var(--warning);
    font-size: 0.8rem;
}

/* ========== Form Validation ========== */
.form-input.is-invalid {
    border-color: #e74c3c;
    background-color: #fdf7f7;
}

.form-input.is-invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ========== Password Toggle Active ========== */
.password-toggle.active {
    color: var(--primary);
}

/* ========== Mobile Menu Toggle Active ========== */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Fixed Duty Card ========== */
.duty-card-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 900;
    overflow: hidden;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.duty-card-fixed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.duty-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 8px;
    border-bottom: 2px solid var(--primary);
}

.duty-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.duty-card-date {
    font-size: 0.78rem;
    color: var(--gray);
}

.duty-card-body {
    padding: 12px 16px;
    min-height: 50px;
}

.duty-card-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-wrap: wrap;
}

.duty-card-item + .duty-card-item {
    border-top: 1px dashed #eee;
    margin-top: 6px;
    padding-top: 10px;
}

.duty-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.duty-card-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.duty-card-phone {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: auto;
}

.duty-card-phone:hover {
    text-decoration: underline;
}

.duty-card-note {
    width: 100%;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 2px;
}

.duty-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 8px 16px 12px;
    font-size: 0.8rem;
}

.duty-card-rescue-label {
    color: var(--gray);
}

.duty-card-rescue-phone {
    color: var(--danger, #e74c3c);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.duty-card-rescue-phone:hover {
    text-decoration: underline;
}

.duty-card-loading,
.duty-card-empty {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    padding: 8px 0;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== Dropdown Menu Initial State (for JS hover) ========== */
.dropdown-menu {
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* ========== Table Wrapper ========== */
.table-wrapper {
    width: 100%;
}

/* ========== GPS Button Loading ========== */
.gps-group .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
