@import url("/assets/css/frontend.css");

:root {
    --peakline-bg: #edf2f4;
    --peakline-surface: #ffffff;
    --peakline-surface-2: #f4f7f8;
    --peakline-border: rgba(20, 46, 51, 0.1);
    --peakline-text: #10282c;
    --peakline-muted: #5d7378;
    --peakline-accent: #2a6864;
    --peakline-accent-strong: #163c40;
    --peakline-shadow: 0 14px 28px rgba(18, 40, 44, 0.07);
    --peakline-radius-lg: 20px;
    --peakline-radius-md: 15px;
    --peakline-radius-sm: 12px;
}

body.theme-peakline {
    background:
        radial-gradient(circle at top left, rgba(42, 104, 100, 0.12), transparent 26%),
        linear-gradient(180deg, #f4f8f8 0%, var(--peakline-bg) 100%);
    color: var(--peakline-text);
}

body.theme-peakline .container,
body.theme-peakline .detail-main,
body.theme-peakline .detail-side,
body.theme-peakline .col-main,
body.theme-peakline .col-side,
body.theme-peakline .route-card,
body.theme-peakline .home-route-item,
body.theme-peakline .camp-card {
    min-width: 0;
}

body.theme-peakline .peakline-shell-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(18px);
}

body.theme-peakline .peakline-topbar {
    background: rgba(13, 27, 31, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-peakline .peakline-topbar-inner,
body.theme-peakline .peakline-mainbar,
body.theme-peakline .peakline-nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.theme-peakline .peakline-topbar-inner {
    min-height: 36px;
    justify-content: space-between;
}

body.theme-peakline .peakline-status-pill,
body.theme-peakline .peakline-nav-note span,
body.theme-peakline .peakline-quick-actions a,
body.theme-peakline .peakline-footer-kicker,
body.theme-peakline .peakline-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.theme-peakline .peakline-status-pill,
body.theme-peakline .peakline-topbar-links a {
    color: rgba(239, 248, 248, 0.9);
}

body.theme-peakline .peakline-topbar-links,
body.theme-peakline .peakline-quick-actions,
body.theme-peakline .peakline-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.theme-peakline .peakline-topbar-links a,
body.theme-peakline .peakline-footer-links a,
body.theme-peakline .peakline-brand-name,
body.theme-peakline .peakline-user-dropdown a,
body.theme-peakline .peakline-user-entry,
body.theme-peakline .peakline-main-nav a {
    text-decoration: none;
}

body.theme-peakline .peakline-mainbar {
    padding: 10px 0;
    align-items: stretch;
}

body.theme-peakline .peakline-brand-block,
body.theme-peakline .peakline-command-search,
body.theme-peakline .peakline-user-panel {
    border-radius: var(--peakline-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--peakline-shadow);
}

body.theme-peakline .peakline-brand-block {
    flex: 0 0 240px;
    display: flex;
    gap: 10px;
    padding: 12px;
}

body.theme-peakline .peakline-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--peakline-accent), var(--peakline-accent-strong));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

body.theme-peakline .peakline-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.theme-peakline .peakline-brand-copy {
    display: grid;
    gap: 4px;
}

body.theme-peakline .peakline-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--peakline-text);
}

body.theme-peakline .peakline-brand-copy p,
body.theme-peakline .peakline-hero-copy p,
body.theme-peakline .peakline-footer p {
    margin: 0;
    color: var(--peakline-muted);
    line-height: 1.7;
}

body.theme-peakline .peakline-command-search {
    flex: 1 1 auto;
    padding: 12px;
    display: grid;
    gap: 8px;
}

body.theme-peakline .peakline-command-search form {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--peakline-radius-md);
    background: var(--peakline-surface-2);
}

body.theme-peakline .peakline-command-search input {
    border: 0;
    background: transparent;
    min-width: 0;
    font-size: 14px;
}

body.theme-peakline .peakline-command-search button,
body.theme-peakline .peakline-login-link,
body.theme-peakline .peakline-app-link {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--peakline-accent-strong);
    color: #fff;
}

body.theme-peakline .peakline-quick-actions a {
    background: #edf5f4;
    color: var(--peakline-accent-strong);
}

body.theme-peakline .peakline-user-panel {
    flex: 0 0 188px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

body.theme-peakline .peakline-user-card {
    position: relative;
}

body.theme-peakline .peakline-user-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--peakline-text);
    font-weight: 700;
}

body.theme-peakline .peakline-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

body.theme-peakline .peakline-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: none;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--peakline-border);
    box-shadow: var(--peakline-shadow);
}

body.theme-peakline .peakline-user-card:hover .peakline-user-dropdown {
    display: grid;
}

body.theme-peakline .peakline-user-dropdown a {
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--peakline-text);
}

body.theme-peakline .peakline-nav-wrap {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(20, 46, 51, 0.06);
}

body.theme-peakline .peakline-nav-inner {
    justify-content: space-between;
    min-height: 46px;
}

body.theme-peakline .peakline-main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.theme-peakline .peakline-main-nav a,
body.theme-peakline .peakline-nav-note span {
    color: var(--peakline-muted);
    font-weight: 700;
}

body.theme-peakline .peakline-main-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

body.theme-peakline .peakline-main-nav a.active,
body.theme-peakline .peakline-main-nav a:hover {
    background: #e8f2f1;
    color: var(--peakline-accent-strong);
}

body.theme-peakline .peakline-nav-note {
    display: flex;
    gap: 8px;
}

body.theme-peakline .peakline-nav-note span {
    background: rgba(42, 104, 100, 0.08);
}

body.theme-peakline .peakline-site-main {
    padding-top: 14px;
}

body.theme-peakline .peakline-hero-section {
    margin-bottom: 14px;
}

body.theme-peakline .peakline-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 12px;
}

body.theme-peakline .peakline-hero-copy,
body.theme-peakline .peakline-hero-panel,
body.theme-peakline .route-card,
body.theme-peakline .home-route-item,
body.theme-peakline .camp-card,
body.theme-peakline .page-header,
body.theme-peakline .notice-bar,
body.theme-peakline .detail-content,
body.theme-peakline .map-section,
body.theme-peakline .comment-section,
body.theme-peakline .video-section,
body.theme-peakline .contribution-rank-card,
body.theme-peakline .batch-export-bar,
body.theme-peakline .sidebar-card,
body.theme-peakline .circle-posts-two-col-layout,
body.theme-peakline .demand-item,
body.theme-peakline .friend-links-wrapper {
    border-radius: var(--peakline-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: var(--peakline-shadow);
}

body.theme-peakline .peakline-hero-copy {
    padding: 20px;
    background: linear-gradient(135deg, #12363a 0%, #255a58 56%, #3b8578 100%);
    color: #f5fafa;
}

body.theme-peakline .peakline-kicker,
body.theme-peakline .peakline-footer-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: #f5fbfb;
}

body.theme-peakline .peakline-hero-copy h1 {
    margin: 10px 0 10px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

body.theme-peakline .peakline-hero-copy p {
    color: rgba(245, 250, 250, 0.78);
    max-width: 720px;
}

body.theme-peakline .peakline-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

body.theme-peakline .peakline-hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

body.theme-peakline .peakline-hero-panel {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.theme-peakline .peakline-metric-card {
    padding: 14px;
    border-radius: var(--peakline-radius-md);
    background: linear-gradient(180deg, #f7fafb, #eef4f4);
    display: grid;
    gap: 8px;
}

body.theme-peakline .peakline-metric-card strong {
    font-size: 28px;
    line-height: 1;
}

body.theme-peakline .section,
body.theme-peakline .center-section {
    padding-top: 0;
    padding-bottom: 14px;
}

body.theme-peakline .section-header {
    margin-bottom: 10px;
}

body.theme-peakline .section-title,
body.theme-peakline .detail-info h1,
body.theme-peakline .page-header h1 {
    letter-spacing: -0.03em;
}

body.theme-peakline .page-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #f7fbfb, #ebf3f3);
}

body.theme-peakline .two-col,
body.theme-peakline .detail-layout {
    gap: 12px;
}

body.theme-peakline .two-col {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
}

body.theme-peakline .route-grid {
    gap: 12px;
}

body.theme-peakline.page-mod-route .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.theme-peakline .route-card .card-link,
body.theme-peakline .home-route-item .item-link {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

body.theme-peakline .route-card .card-cover,
body.theme-peakline .home-route-item .item-cover,
body.theme-peakline .detail-cover {
    overflow: hidden;
}

body.theme-peakline .route-card .card-cover img,
body.theme-peakline .home-route-item .item-cover img,
body.theme-peakline .detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.theme-peakline .route-card .card-body,
body.theme-peakline .home-route-item .item-info,
body.theme-peakline .camp-card-body,
body.theme-peakline .detail-info,
body.theme-peakline .detail-content,
body.theme-peakline .comment-section,
body.theme-peakline .video-section,
body.theme-peakline .sidebar-card {
    padding: 15px;
}

body.theme-peakline.page-mod-route .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: var(--peakline-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--peakline-shadow);
}

body.theme-peakline.page-mod-route .filter-group {
    padding: 10px 12px;
    border-radius: var(--peakline-radius-md);
    background: #f4f8f8;
}

body.theme-peakline.page-mod-route .route-list-header,
body.theme-peakline.page-mod-route .batch-export-bar {
    padding: 12px 14px;
}

body.theme-peakline.page-mod-route #routeContainer.list-view {
    gap: 12px;
}

body.theme-peakline.page-mod-route .route-grid.list-view .route-card .card-link {
    display: flex;
    flex-direction: row;
    gap: 14px;
}

body.theme-peakline.page-mod-route .route-grid.list-view .route-card .card-cover {
    width: 220px;
    height: 148px;
    flex-shrink: 0;
}

body.theme-peakline.page-mod-route .route-grid.list-view .route-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

body.theme-peakline.page-mod-route .route-grid.list-view .route-card .card-title {
    white-space: normal;
    line-height: 1.45;
}

body.theme-peakline.page-mod-route .pagination-wrap {
    padding-top: 8px;
}

body.theme-peakline.page-mod-route .empty-state {
    border-radius: var(--peakline-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--peakline-shadow);
}

body.theme-peakline.page-act-detail .detail-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.78fr);
}

body.theme-peakline.page-act-detail .detail-header {
    display: grid;
    grid-template-columns: minmax(360px, 0.96fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

body.theme-peakline.page-act-detail .detail-cover,
body.theme-peakline.page-act-detail .detail-info {
    border-radius: var(--peakline-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--peakline-shadow);
}

body.theme-peakline.page-act-detail .detail-cover {
    min-height: 300px;
}

body.theme-peakline.page-act-detail .detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.theme-peakline.page-act-detail .detail-actions .btn,
body.theme-peakline.page-act-detail .detail-actions button {
    min-height: 46px;
    border-radius: 14px;
}

body.theme-peakline .peakline-footer {
    margin-top: 8px;
    padding: 24px 0 18px;
    background: linear-gradient(180deg, #11282c, #0a181b);
    color: rgba(245, 251, 251, 0.88);
}

body.theme-peakline .peakline-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.theme-peakline .peakline-footer h3,
body.theme-peakline .peakline-footer h4 {
    margin: 0 0 12px;
    color: #fff;
}

body.theme-peakline .peakline-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

body.theme-peakline .peakline-footer-links a,
body.theme-peakline .peakline-footer-links li {
    color: rgba(245, 251, 251, 0.72);
}

body.theme-peakline .peakline-footer-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 1280px) {
    body.theme-peakline .peakline-mainbar,
    body.theme-peakline .peakline-hero-grid,
    body.theme-peakline .two-col,
    body.theme-peakline.page-act-detail .detail-layout,
    body.theme-peakline .peakline-footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    body.theme-peakline .peakline-user-panel,
    body.theme-peakline .peakline-brand-block {
        flex: initial;
    }

    body.theme-peakline.page-mod-route .route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.theme-peakline.page-mod-route .route-grid.list-view .route-card .card-cover {
        width: 180px;
        height: 126px;
    }

    body.theme-peakline.page-act-detail .detail-header {
        grid-template-columns: 1fr;
    }
}
