
        :root {
            --primary: #2d8a6e;
            --primary-light: #e8f5f1;
            --secondary: #ff6b35;
            --dark: #1a1a2e;
            --light-bg: #f8faf9;
            --border: #e0e8e4;
            --text-muted: #888;
        }
        * { box-sizing: border-box; }
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: var(--light-bg);
            color: var(--dark);
            margin: 0;
            padding: 0;
        }
        /* ===== Header ===== */
        .frs-header {
            background: white;
            border-bottom: 2px solid var(--primary);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(45,138,110,0.08);
        }
        .frs-header .container { display: flex; align-items: center; gap: 1rem; }
        .frs-logo {
            display: flex; align-items: center; gap: 0.5rem;
            text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.3rem;
        }
        .frs-logo img { height: 38px; }
        .frs-nav { display: flex; gap: 0.25rem; margin-left: auto; flex-wrap: wrap; }
        .frs-nav a {
            padding: 0.4rem 0.9rem; border-radius: 20px;
            text-decoration: none; color: #555; font-size: 0.9rem;
            transition: all 0.2s;
        }
        .frs-nav a:hover, .frs-nav a.active {
            background: var(--primary); color: white;
        }
        .header-user {
            display: flex; align-items: center; gap: 0.5rem;
            margin-left: 0.5rem; position: relative;
        }
        .header-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            background: var(--primary); color: white;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; cursor: pointer; font-size: 0.85rem;
        }
        .user-dropdown {
            position: absolute; top: calc(100% + 8px); right: 0;
            background: white; border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.12);
            min-width: 160px; padding: 0.5rem; display: none; z-index: 200;
        }
        .user-dropdown.show { display: block; }
        .user-dropdown a {
            display: flex; align-items: center; gap: 0.5rem;
            padding: 0.6rem 0.9rem; border-radius: 8px;
            text-decoration: none; color: #555; font-size: 0.9rem;
        }
        .user-dropdown a:hover { background: var(--primary-light); color: var(--primary); }
        /* ===== Hero ===== */
        .hero-section {
            background: linear-gradient(135deg, var(--primary), #1a6b52);
            padding: 3rem 0 2rem; color: white; text-align: center;
        }
        .hero-section h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; }
        .hero-section p { opacity: 0.85; font-size: 1.05rem; margin-bottom: 1.5rem; }
        .search-bar {
            max-width: 560px; margin: 0 auto;
            display: flex; gap: 0.5rem;
        }
        .search-bar input {
            flex: 1; padding: 0.7rem 1rem; border: none; border-radius: 25px;
            font-size: 1rem; outline: none;
        }
        .search-bar button {
            padding: 0.7rem 1.5rem; border: none; border-radius: 25px;
            background: var(--secondary); color: white; font-weight: 600;
            cursor: pointer; transition: opacity 0.2s;
        }
        .search-bar button:hover { opacity: 0.9; }
        /* ===== Main Content ===== */
        .main-content { padding: 2rem 0 3rem; }
        .section-title {
            font-size: 1.4rem; font-weight: 700; color: var(--dark);
            margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
        }
        .section-title .count {
            background: var(--primary); color: white;
            font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 12px;
        }
        /* ===== Filter ===== */
        .filter-bar {
            display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
        }
        .filter-tag {
            padding: 0.4rem 1rem; border-radius: 20px; border: 1.5px solid var(--border);
            background: white; color: #666; font-size: 0.88rem; cursor: pointer;
            transition: all 0.2s;
        }
        .filter-tag:hover, .filter-tag.active {
            border-color: var(--primary); background: var(--primary); color: white;
        }
        /* ===== Journal Cards ===== */
        .journals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
        .journal-card {
            background: white; border-radius: 14px; overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            transition: transform 0.25s, box-shadow 0.25s; cursor: pointer;
        }
        .journal-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(45,138,110,0.15);
        }
        .jc-img {
            height: 180px; display: flex; align-items: center; justify-content: center;
            position: relative; overflow: hidden;
        }
        .jc-img .dest-tag {
            position: absolute; top: 10px; left: 10px;
            background: rgba(0,0,0,0.5); color: white;
            padding: 0.25rem 0.7rem; border-radius: 12px;
            font-size: 0.8rem; display: flex; align-items: center; gap: 0.3rem;
        }
        .jc-img .author-badge {
            position: absolute; bottom: 10px; right: 10px;
            background: rgba(255,255,255,0.9); color: #555;
            padding: 0.2rem 0.6rem; border-radius: 10px; font-size: 0.78rem;
        }
        .jc-body { padding: 1rem 1.1rem; }
        .jc-title {
            font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem;
            color: var(--dark); line-height: 1.4;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .jc-content {
            font-size: 0.88rem; color: #777; line-height: 1.6;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; margin-bottom: 0.8rem;
        }
        .jc-footer {
            display: flex; align-items: center; gap: 1rem;
            font-size: 0.82rem; color: #999; padding-top: 0.7rem;
            border-top: 1px solid #f0f0f0;
        }
        .jc-footer .like-btn {
            display: flex; align-items: center; gap: 0.3rem;
            color: #e74c3c; cursor: pointer; border: none; background: none;
            font-size: 0.85rem; padding: 0; transition: transform 0.2s;
        }
        .jc-footer .like-btn:hover { transform: scale(1.1); }
        .jc-footer .liked { color: #e74c3c; }
        .jc-footer .liked .bi { fill: #e74c3c; }
        /* ===== Write Section ===== */
        .write-section {
            background: white; border-radius: 14px; padding: 1.5rem;
            margin-bottom: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }
        .write-section h3 {
            font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem;
            display: flex; align-items: center; gap: 0.5rem;
        }
        .form-control { border-radius: 10px; border-color: var(--border); }
        .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45,138,110,0.1); }
        .btn-publish {
            background: var(--primary); color: white; border: none;
            padding: 0.65rem 1.8rem; border-radius: 25px; font-weight: 600;
            transition: opacity 0.2s;
        }
        .btn-publish:hover { opacity: 0.88; }
        .btn-cancel {
            background: #f0f0f0; color: #888; border: none;
            padding: 0.65rem 1.2rem; border-radius: 25px;
        }
        .char-count { font-size: 0.78rem; color: #aaa; text-align: right; }
        /* ===== Pagination ===== */
        .pagination-wrap { display: flex; justify-content: center; margin-top: 2rem; gap: 0.4rem; }
        .pagination-wrap button {
            padding: 0.45rem 0.9rem; border-radius: 8px; border: 1px solid var(--border);
            background: white; color: #555; cursor: pointer; font-size: 0.88rem;
            transition: all 0.2s;
        }
        .pagination-wrap button:hover, .pagination-wrap button.active {
            background: var(--primary); color: white; border-color: var(--primary);
        }
        /* ===== Modal ===== */
        .modal-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.55);
            z-index: 500; display: none; align-items: center; justify-content: center;
            padding: 1rem;
        }
        .modal-overlay.show { display: flex; }
        .modal-box {
            background: white; border-radius: 16px; width: 100%; max-width: 680px;
            max-height: 88vh; overflow-y: auto; position: relative;
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .modal-close {
            position: absolute; top: 12px; right: 14px;
            width: 32px; height: 32px; border-radius: 50%;
            background: rgba(0,0,0,0.08); border: none; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.1rem; color: #555; z-index: 10;
            transition: background 0.2s;
        }
        .modal-close:hover { background: rgba(0,0,0,0.15); }
        .modal-hero {
            height: 220px; display: flex; align-items: center; justify-content: center;
            position: relative; border-radius: 16px 16px 0 0;
        }
        .modal-hero .dest-tag {
            position: absolute; top: 14px; left: 14px;
            background: rgba(0,0,0,0.55); color: white;
            padding: 0.3rem 0.8rem; border-radius: 12px;
            font-size: 0.85rem;
        }
        .modal-body-journal { padding: 1.5rem; }
        .modal-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); }
        .modal-meta {
            font-size: 0.82rem; color: #aaa; margin-bottom: 1.2rem;
            display: flex; align-items: center; gap: 1rem;
        }
        .modal-content-text {
            font-size: 0.96rem; line-height: 1.8; color: #444;
            white-space: pre-wrap; margin-bottom: 1.5rem;
        }
        .modal-actions {
            display: flex; gap: 0.75rem; align-items: center;
            padding-top: 1rem; border-top: 1px solid #f0f0f0;
        }
        .action-btn {
            display: flex; align-items: center; gap: 0.4rem;
            padding: 0.5rem 1rem; border-radius: 20px; border: 1.5px solid var(--border);
            background: white; color: #666; font-size: 0.88rem; cursor: pointer;
            transition: all 0.2s;
        }
        .action-btn:hover { border-color: var(--primary); color: var(--primary); }
        .action-btn.liked { border-color: #e74c3c; color: #e74c3c; background: #fff5f5; }
        /* ===== Toast ===== */
        .toast-box {
            position: fixed; bottom: 24px; right: 24px; z-index: 9999;
            display: flex; flex-direction: column; gap: 0.5rem;
        }
        .toast-msg {
            background: var(--dark); color: white; padding: 0.7rem 1.2rem;
            border-radius: 10px; font-size: 0.9rem;
            animation: fadeIn 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        .toast-msg.success { background: #27ae60; }
        .toast-msg.error { background: #e74c3c; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
        /* ===== Loading ===== */
        .loading-spinner {
            text-align: center; padding: 3rem; color: var(--primary);
        }
        .empty-state {
            text-align: center; padding: 3rem; color: #aaa;
        }
        .empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }
        /* ===== Responsive ===== */
        @media (max-width: 768px) {
            .hero-section h1 { font-size: 1.6rem; }
            .frs-nav { display: none; }
            .journals-grid { grid-template-columns: 1fr; }
            .search-bar { flex-direction: column; }
            .search-bar button { border-radius: 10px; }
        }
    

.skip-link{position:absolute;left:-9999px;top:0;z-index:9999;padding:.6rem 1rem;background:#2d8a6e;color:#fff;border-radius:0 0 .5rem 0;text-decoration:none;font-size:.9rem}
.skip-link:focus{left:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #2d8a6e;outline-offset:2px}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
