// main.css
@font-face {
    font-family: 'YHW';
    src: url('/fonts/yhw.ttf?v=20250630') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+4E00-9FFF;
}

html, body, .parchment-container, .parchment-bg, .content-grid, .info-card, .header-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.content-grid {
    display: grid !important;
}

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

html {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

body {
    font-family: 'Georgia', 'Times New Roman', 'KaiTi', '楷体', serif;
    background: radial-gradient(circle at top left, #1e1548, #140b2e);
    color: #f0e6d2;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 1;
    visibility: visible;
    display: block;
}

body::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}

.parchment-scrollbar,
.level-table-container,
.articles-list,
.timeline,
.scrollable-container,
.info-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #8b5a2b #d4af7a;
}

.parchment-scrollbar::-webkit-scrollbar,
.level-table-container::-webkit-scrollbar,
.articles-list::-webkit-scrollbar,
.timeline::-webkit-scrollbar,
.scrollable-container::-webkit-scrollbar,
.info-table-wrapper::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.parchment-scrollbar::-webkit-scrollbar-track,
.level-table-container::-webkit-scrollbar-track,
.articles-list::-webkit-scrollbar-track,
.timeline::-webkit-scrollbar-track,
.scrollable-container::-webkit-scrollbar-track,
.info-table-wrapper::-webkit-scrollbar-track {
    background: linear-gradient(90deg, #d4af7a, #c49960);
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(93, 47, 0, 0.3);
}

.parchment-scrollbar::-webkit-scrollbar-thumb,
.level-table-container::-webkit-scrollbar-thumb,
.articles-list::-webkit-scrollbar-thumb,
.timeline::-webkit-scrollbar-thumb,
.scrollable-container::-webkit-scrollbar-thumb,
.info-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8b5a2b, #7a4f26);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #6b4423;
}

.parchment-scrollbar::-webkit-scrollbar-thumb:hover,
.level-table-container::-webkit-scrollbar-thumb:hover,
.articles-list::-webkit-scrollbar-thumb:hover,
.timeline::-webkit-scrollbar-thumb:hover,
.scrollable-container::-webkit-scrollbar-thumb:hover,
.info-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #7a4f26, #6b4423);
}

.parchment-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 40px);
    width: 100%;
    overflow-x: hidden;
    opacity: 1;
    visibility: visible;
    display: block;
}

.parchment-bg {
    border: none;
    border-radius: 0;
    padding: 40px 30px;
    position: relative;
    color: #1a0e08;
    min-height: calc(100vh - 40px);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: 100% 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: background-image 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    opacity: 1;
    visibility: visible;
    display: block;
}

@media (min-width: 769px) {
    .parchment-bg {
        background-image: url('/img/user/b_pc.png');
    }
}

@media (max-width: 768px) {
    .parchment-bg {
        background-image: url('/img/user/b_pe.png');
    }
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #5d2f00;
    padding-bottom: 20px;
    opacity: 1;
    visibility: visible;
    display: block;
}

.main-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3rem;
    font-weight: bold;
    color: #5d2f00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    font-family: 'YHW', 'Microsoft YaHei', '微软雅黑', 'SimSun', '宋体', 'KaiTi', '楷体', serif !important;
    font-size: 1.5rem;
    color: #7a3f00;
    margin-bottom: 10px;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    visibility: visible;
}

.info-card {
    background: rgba(93, 47, 0, 0.1);
    border: 2px solid #5d2f00;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    opacity: 1;
    visibility: visible;
    display: block;
}

.card-title {
    font-size: 1.3rem;
    color: #5d2f00;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #5d2f00;
    padding-bottom: 8px;
}

.card-action {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(93, 47, 0, 0.3);
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #daa520, #b8860b);
    color: #1a0e08;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(218, 165, 32, 0.3);
    border: 2px solid #8b5a2b;
}

.action-button:hover {
    background: linear-gradient(135deg, #b8860b, #daa520);
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.5);
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(218, 165, 32, 0.4);
}

.action-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.level-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.level-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #daa520, #ffd700);
    border: 3px solid #5d2f00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a0e08;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.level-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.level-info h3 {
    color: #5d2f00;
    margin-bottom: 5px;
}

.level-name {
    color: #3d1a00;
    font-size: 0.9rem;
}

.progress-section {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #3d1a00;
}

.progress-bar {
    height: 12px;
    background: rgba(93, 47, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #5d2f00;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #daa520, #ffd700, #ffeb3b);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.profile-intro {
    margin-top: 15px;
}

.profile-intro h4 {
    color: #5d2f00;
    margin-bottom: 8px;
}

.profile-intro p {
    color: #3d1a00;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid rgba(93, 47, 0, 0.3);
}

.info-table td {
    padding: 8px 12px;
    vertical-align: top;
    font-size: 0.95rem;
}

.info-table td:first-child {
    font-weight: bold;
    color: #5d2f00;
    width: 40%;
    white-space: nowrap;
}

.info-table td:last-child {
    color: #3d1a00;
}

.level-display {
    grid-column: span 2;
}

.level-table-container {
    margin-top: 15px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.level-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(93, 47, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 500px;
}

.level-table thead {
    background: rgba(93, 47, 0, 0.2);
}

.level-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    color: #5d2f00;
    border-bottom: 2px solid #5d2f00;
    font-size: 0.95rem;
    white-space: nowrap;
}

.level-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(93, 47, 0, 0.2);
    color: #3d1a00;
    vertical-align: middle;
}

.level-table tr {
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-table tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

.level-table tr:last-child td {
    border-bottom: none;
}

.current-level {
    background: rgba(218, 165, 32, 0.15) !important;
    font-weight: 500;
}

.current-level td {
    color: #5d2f00;
}

.locked-level {
    opacity: 0.7;
}

.locked-level td {
    color: #6b4423;
}

.level-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #daa520, #ffd700);
    border: 2px solid #5d2f00;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a0e08;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.level-badge-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.level-badge-small.locked {
    background: linear-gradient(45deg, #888, #aaa);
    border-color: #666;
    color: #333;
}

.level-badge-small.locked img {
    opacity: 0.6;
    filter: grayscale(80%);
}

.level-table td:nth-child(2) {
    font-weight: 500;
    white-space: nowrap;
}

.level-table td:nth-child(3) {
    font-weight: bold;
    color: #b8860b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.level-table td:nth-child(4) {
    font-weight: bold;
    color: #b8860b;
    white-space: nowrap;
}

.locked-level td:nth-child(3) {
    color: #6b4423;
}

.locked-level td:nth-child(4) {
    color: #6b4423;
}

.level-table td:nth-child(5) {
    font-size: 0.9rem;
    line-height: 1.4;
    min-width: 200px;
}

.line-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notes-section {
    grid-column: span 2;
    margin-top: 20px;
}

.notes-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #5d2f00;
}

.notes-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 0;
    background: rgba(93, 47, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 50px;
}

.notes-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
    align-items: center;
}

.notes-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.action-button-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    gap: 6px;
    white-space: nowrap;
}

.action-button-small .action-icon {
    width: 14px;
    height: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #2a1400;
    white-space: nowrap;
}

.articles-list {
    margin-top: 20px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.articles-container {
    width: 100%;
    min-width: 400px;
}

.article-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(93, 47, 0, 0.2);
    transition: background-color 0.3s ease;
    gap: 15px;
}

.article-item:hover {
    background-color: rgba(218, 165, 32, 0.1);
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-date {
    font-size: 0.9rem;
    color: #2a1400;
    width: 100px;
    flex-shrink: 0;
}

.article-title {
    flex: 1;
    color: #3d1a00;
    font-weight: 500;
    min-width: 200px;
}

.article-stats {
    font-size: 0.85rem;
    color: #2a1400;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline {
    margin-top: 20px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.timeline-container {
    width: 100%;
    min-width: 400px;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(93, 47, 0, 0.2);
    gap: 15px;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6b4423;
    width: 120px;
    flex-shrink: 0;
}

.timeline-content {
    color: #3d1a00;
    flex: 1;
    min-width: 250px;
}

.timeline-badge {
    width: 20px;
    height: 20px;
    background: #daa520;
    border-radius: 50%;
    flex-shrink: 0;
}

.backup-info h3 {
    color: #5d2f00;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.scrollable-container {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.info-table-wrapper {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
}

.content-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6b4423;
}

.placeholder-message h2 {
    color: #5d2f00;
    margin-bottom: 15px;
    font-size: 2rem;
}

.placeholder-message p {
    font-size: 1.2rem;
    color: #8b5a2b;
    margin-bottom: 40px;
}

.transparent-login-section {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transparent-login-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    color: #5d2f00;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.transparent-login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(184, 134, 11, 0.1));
    border: 2px solid rgba(139, 90, 43, 0.3);
    border-radius: 30px;
    transition: all 0.4s ease;
    z-index: -1;
}

.transparent-login-button:hover::before {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2), rgba(184, 134, 11, 0.2));
    border-color: rgba(139, 90, 43, 0.6);
    transform: scale(1.05);
}

.transparent-login-button:hover {
    color: #4a2000;
    transform: translateY(-2px);
    text-shadow: 0 1px 3px rgba(93, 47, 0, 0.3);
}

.transparent-login-button:active {
    transform: translateY(0);
}

.transparent-login-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
}

.transparent-login-button:hover::after {
    width: 200px;
    height: 200px;
}

.login-icon {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.transparent-login-button:hover .login-icon {
    transform: translateX(3px);
}

.transparent-login-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.3);
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .level-display {
        grid-column: span 1;
    }

    .notes-section {
        grid-column: span 1;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .parchment-bg {
        padding: 20px 15px;
    }

    .level-table {
        font-size: 0.85rem;
    }

    .level-table th,
    .level-table td {
        padding: 8px 10px;
    }

    .level-table td:nth-child(5) {
        font-size: 0.8rem;
    }

    .notes-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 12px;
    }

    .notes-stats {
        width: 100%;
        gap: 15px;
        justify-content: flex-start;
    }

    .notes-action {
        width: 100%;
        text-align: center;
    }

    .transparent-login-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 660px) and (min-width: 461px) {
    body {
        padding: 15px;
    }

    .parchment-container {
        max-width: calc(100vw - 30px);
        overflow-x: hidden;
    }

    .parchment-bg {
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .level-display,
    .notes-section {
        grid-column: span 1;
    }

    .info-card {
        padding: 18px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .level-table-container,
    .articles-list,
    .timeline,
    .info-table-wrapper {
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
    }

    .level-table {
        min-width: 520px;
        font-size: 0.9rem;
    }

    .level-table th,
    .level-table td {
        padding: 10px 12px;
    }

    .articles-container {
        min-width: 450px;
    }

    .timeline-container {
        min-width: 450px;
    }

    .info-table {
        min-width: 300px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .notes-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .notes-stats {
        width: 100%;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .notes-action {
        width: 100%;
        text-align: center;
    }

    .level-table-container::-webkit-scrollbar,
    .articles-list::-webkit-scrollbar,
    .timeline::-webkit-scrollbar,
    .info-table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .transparent-login-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .level-table {
        table-layout: auto;
        min-width: 500px;
    }

    .level-table th,
    .level-table td {
        white-space: nowrap;
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .level-table td:nth-child(1) { min-width: 50px; }
    .level-table td:nth-child(2) { min-width: 120px; }
    .level-table td:nth-child(3) { min-width: 80px; }
    .level-table td:nth-child(4) { min-width: 60px; }
    .level-table td:nth-child(5) { 
        min-width: 180px;
        white-space: normal;
        word-wrap: break-word;
    }

    .notes-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }

    .notes-stats {
        width: 100%;
        gap: 12px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .notes-action {
        width: 100%;
        text-align: center;
    }

    .level-section {
        align-items: flex-start;
    }

    .level-info {
        min-width: 0;
        flex: 1;
    }

    .level-info h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .level-name {
        font-size: 0.85rem;
    }

    .level-table th,
    .level-table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .level-table td:nth-child(5) {
        font-size: 0.75rem;
    }

    .articles-container {
        min-width: 420px;
    }

    .article-item {
        flex-wrap: nowrap;
        gap: 10px;
        min-width: 400px;
    }

    .article-date {
        width: 80px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .article-title {
        font-size: 0.9rem;
        flex: 1;
        min-width: 150px;
    }

    .article-stats {
        font-size: 0.8rem;
        flex-shrink: 0;
        width: 120px;
    }

    .timeline-container {
        min-width: 420px;
    }

    .timeline-item {
        flex-wrap: nowrap;
        gap: 10px;
        min-width: 400px;
    }

    .timeline-date {
        width: 80px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .timeline-content {
        font-size: 0.85rem;
        flex: 1;
        min-width: 200px;
    }

    .timeline-badge {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .info-table {
        min-width: 280px;
    }

    .content-grid {
        gap: 20px;
    }

    .info-card {
        padding: 15px;
    }

    .progress-label {
        font-size: 0.85rem;
    }

    .action-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .transparent-login-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .placeholder-message h2 {
        font-size: 1.8rem;
    }

    .placeholder-message p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 460px) {
    body {
        padding: 10px;
    }

    .parchment-bg {
        padding: 15px 10px;
    }

    .content-grid {
        gap: 15px;
    }

    .info-card {
        padding: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .parchment-container {
        max-width: calc(100vw - 20px);
        overflow: hidden;
    }

    .level-table-container::-webkit-scrollbar,
    .articles-list::-webkit-scrollbar,
    .timeline::-webkit-scrollbar,
    .info-table-wrapper::-webkit-scrollbar {
        height: 5px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .level-table {
        min-width: 480px;
    }

    .articles-container {
        min-width: 400px;
    }

    .timeline-container {
        min-width: 400px;
    }

    .info-table {
        min-width: 260px;
    }

    .notes-stats-row {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .notes-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .notes-action {
        width: 100%;
        text-align: center;
    }

    .action-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .action-button-small {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .action-icon {
        width: 14px;
        height: 14px;
    }

    .action-button-small .action-icon {
        width: 12px;
        height: 12px;
    }

    .transparent-login-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .login-icon {
        width: 16px;
        height: 16px;
    }

    .placeholder-message h2 {
        font-size: 1.6rem;
    }

    .placeholder-message p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}

@media (min-width: 1024px) {
    .notes-stats-row {
        padding: 15px 20px;
        min-height: 60px;
    }

    .notes-stats {
        gap: 30px;
    }

    .action-button-small {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .transparent-login-button {
        padding: 18px 35px;
        font-size: 1.1rem;
        gap: 12px;
    }

    .transparent-login-button:hover::after {
        width: 250px;
        height: 250px;
    }
}