/* journal.css - Modern International Medical Academic Style & 3D Book Stage */

:root {
    --j-primary: #1b3a2b;     /* 翡翠深黛绿 */
    --j-primary-light: #2c5c45; /* 亮艾草绿 */
    --j-accent: #c5a880;      /* 烫金/古雅金 */
    --j-bg: #FAF9F6;          /* 古雅宣纸米 */
    --j-card-bg: #FFFFFF;     /* 纯白卡片 */
    --j-text: #2c3e50;         /* 灰黑 */
    --j-text-sub: #5c6b73;     /* 灰蓝 */
    --j-border: #e2e8f0;      /* 柔和边界 */
}

.journal-hero-banner {
    position: relative;
    height: 450px;
    margin-top: 70px;
    background: #12281e url('/assets/addons/cms/img/journal_banner.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.j-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(197, 168, 128, 0.15) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.journal-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    margin-top: 30px;
}

.journal-hero-content h1 {
    font-family: 'Times New Roman', Georgia, serif;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Page Layout */
.journal-page-container {
    background-color: var(--j-bg);
    padding: 60px 0 100px;
    min-height: 800px;
}

.journal-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 3D Hero Section */
.j-hero-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    background: var(--j-card-bg);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    margin-bottom: 50px;
    align-items: center;
}

/* CSS 3D Book Stage */
.j-3d-stage {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 380px;
}

.j-cover-card {
    position: relative;
    width: 240px;
    height: 330px;
    background: linear-gradient(135deg, var(--j-primary) 0%, #0d1e16 100%);
    border-radius: 4px 12px 12px 4px;
    box-shadow: 
        -5px 5px 20px rgba(0, 0, 0, 0.25),
        -1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: rotateY(-22deg) rotateX(8deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
    border-left: 5px solid rgba(255, 255, 255, 0.15);
}

/* Book Spine depth effect */
.j-cover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 3px 0 0 3px;
}

.j-cover-card:hover {
    transform: rotateY(-10deg) rotateX(5deg) rotateZ(-1deg) scale(1.03);
}

.j-cover-title {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--j-accent);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    border-bottom: 2px solid var(--j-accent);
    padding-bottom: 15px;
}

.j-cover-card .j-cover-sub {
    font-size: 0.8rem;
    color: #a3b8cc;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

.j-cover-card .j-cover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
    color: #fff;
    font-size: 0.75rem;
    font-family: monospace;
}

/* Info Column */
.j-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.j-tag {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--j-accent);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.25);
}

.j-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--j-text);
    margin-bottom: 30px;
}

.j-btn-row {
    display: flex;
    gap: 20px;
}

.j-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 1px;
}

.j-btn-fill {
    background-color: var(--j-primary);
    color: #FFFFFF;
    border: 2px solid var(--j-primary);
}

.j-btn-fill:hover {
    background-color: var(--j-primary-light);
    border-color: var(--j-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 58, 43, 0.2);
}

.j-btn-outline {
    background-color: transparent;
    color: var(--j-primary);
    border: 2px solid var(--j-primary);
}

.j-btn-outline:hover {
    background-color: var(--j-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 58, 43, 0.1);
}

/* Academic Services Grid */
.j-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.j-service-card {
    background: var(--j-card-bg);
    padding: 30px 24px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--j-border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.j-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(27, 58, 43, 0.08);
    border-color: var(--j-primary-light);
}

.j-service-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.j-service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--j-primary);
    margin-bottom: 8px;
}

.j-service-desc {
    font-size: 0.85rem;
    color: var(--j-text-sub);
    line-height: 1.5;
}

/* Sections & Boxes */
.j-preview-section {
    background: var(--j-card-bg);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.02);
    border: 1px solid var(--j-border);
    margin-bottom: 40px;
}

.j-preview-head {
    border-bottom: 2px solid var(--j-primary);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.j-preview-head h3 {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Cover Person Box */
.j-cover-person-box {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: center;
}

.j-cp-visual {
    width: 180px;
    height: 240px;
    background: linear-gradient(135deg, #FAF8F5 0%, #FAF6F0 100%);
    border-radius: 6px;
    border: 1px dashed var(--j-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.j-cp-visual span {
    font-size: 4rem;
    color: var(--j-accent);
    opacity: 0.6;
}

.j-cp-content h4 {
    font-size: 1.3rem;
    color: var(--j-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.j-cp-content p {
    font-size: 1rem;
    color: var(--j-text);
    line-height: 1.8;
}

/* Direction Cards Grid */
.j-direction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.j-direction-card {
    background: #FAF8F5;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--j-border);
    transition: all 0.3s ease;
}

.j-direction-card:hover {
    border-color: var(--j-accent);
    background: #FFFDFC;
}

.j-direction-card h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--j-primary);
    margin-bottom: 12px;
}

.j-direction-card p {
    font-size: 0.95rem;
    color: var(--j-text-sub);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Issues Display Grid */
.j-issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.j-issue-card {
    background: #FAF8F5;
    border: 1px solid var(--j-border);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.j-issue-card:hover {
    box-shadow: 0 8px 25px rgba(27, 58, 43, 0.06);
    border-color: var(--j-accent);
}

.j-issue-banner {
    background: linear-gradient(135deg, var(--j-primary) 0%, #152d21 100%);
    padding: 40px;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Shimmer scanline effect on issue cover */
.j-issue-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.j-issue-card:hover .j-issue-banner::after {
    left: 140%;
}

.j-issue-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--j-accent);
    color: #FFF;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.j-issue-banner h4 {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 1.6rem;
    color: var(--j-accent);
    margin-bottom: 8px;
}

.j-issue-info {
    padding: 24px;
}

.j-issue-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--j-primary);
    margin-bottom: 12px;
}

.j-issue-desc {
    font-size: 0.9rem;
    color: var(--j-text-sub);
    line-height: 1.6;
    margin-bottom: 20px;
}

.j-issue-btn {
    display: inline-block;
    color: var(--j-primary);
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.j-issue-btn:hover {
    color: var(--j-accent);
    transform: translateX(4px);
}

/* Modal Styling */
.j-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 30, 22, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.j-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.j-modal-card {
    background: #FFFFFF;
    width: 550px;
    max-width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.j-modal-overlay.active .j-modal-card {
    transform: scale(1);
}

.j-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.j-close-btn:hover {
    color: var(--j-primary);
}

.j-modal-header {
    border-bottom: 2px solid var(--j-primary);
    padding-bottom: 15px;
    margin-bottom: 24px;
}

.j-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--j-primary);
    margin: 0 0 5px;
}

.j-modal-desc {
    font-size: 0.9rem;
    color: var(--j-text-sub);
    margin: 0;
}

/* Forms in Modal */
.j-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.j-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--j-primary);
    margin-bottom: 8px;
}

.j-input, .j-select {
    padding: 12px 16px;
    border: 1px solid var(--j-border);
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.j-input:focus, .j-select:focus {
    border-color: var(--j-primary-light);
}

.j-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--j-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.j-submit-btn:hover {
    background: var(--j-primary-light);
}

/* Academic details layout in Modal */
.j-detail-content {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.8;
    color: var(--j-text);
    font-size: 0.95rem;
}

.j-detail-content::-webkit-scrollbar {
    width: 6px;
}

.j-detail-content::-webkit-scrollbar-thumb {
    background-color: var(--j-border);
    border-radius: 3px;
}

.j-detail-content h5 {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--j-primary);
    margin: 20px 0 8px;
}

.j-detail-content h5:first-of-type {
    margin-top: 0;
}

.j-detail-content ul {
    margin: 5px 0 15px;
    padding-left: 20px;
}

.j-detail-content li {
    margin-bottom: 6px;
}

/* Media Queries */
@media (max-width: 1024px) {
    .j-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .j-direction-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .j-hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    .j-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .j-cover-person-box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 25px;
    }
    .journal-hero-banner {
        height: 450px;
    }
}
