.jgj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.jgj-card {
    background-color: #faf9f6;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #D2691E;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jgj-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: #8B4513;
}

.jgj-card a {
    font-size: 1.5em;
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.jgj-card .translation-link {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.jgj-card .translation-link:hover {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.jgj-detail {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #D2691E;
}

.jgj-detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #D2691E;
}

.jgj-detail-header h2 {
    font-size: 3em;
    color: #8B4513;
    margin-bottom: 15px;
}

.jgj-detail-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f5f0e1;
    border-radius: 8px;
}

.jgj-detail-content {
    line-height: 2.2;
    font-size: 1.2em;
    text-align: justify;
}

.jgj-detail-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #8B4513;
    font-size: 1.8em;
    font-weight: bold;
    padding-left: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.jgj-detail-content h3 > span:first-child {
    flex: 1;
}

.jgj-detail-content .original {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-family: "KaiTi", "楷体", serif;
    line-height: 2.5;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.jgj-detail-content .translation {
    background-color: #f5f0e1;
    padding: 25px;
    border-radius: 8px;
    line-height: 2.2;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.jgj-full-original {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #D2691E;
    margin-bottom: 30px;
}

.jgj-full-original h2 {
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #D2691E;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.jgj-full-original h2 > span:first-child {
    flex: 1;
    text-align: center;
}

.read-aloud-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-left: auto;
}

.read-aloud-btn:hover {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.read-aloud-btn:active {
    transform: translateY(0);
}

.read-aloud-btn.playing {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.read-aloud-btn.paused {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.jgj-full-original .full-original-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    font-family: "KaiTi", "楷体", serif;
    line-height: 2.0;
    font-size: 1.2em;
    text-align: justify;
}

.jgj-full-original .chapter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.jgj-full-original .chapter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.jgj-full-original .chapter-title {
    font-size: 1.3em;
    color: #8B4513;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.jgj-full-original .chapter-title a {
    color: #8B4513;
    text-decoration: none;
    transition: all 0.3s ease;
}

.jgj-full-original .chapter-title a:hover {
    color: #D2691E;
    text-decoration: underline;
}

.jgj-full-original .chapter-original {
    padding: 5px;
    background-color: #fafafa;
    border-radius: 5px;
    margin-top: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.jgj-full-original .chapter-original.highlight {
    background-color: #fff9c4;
    box-shadow: 0 0 10px rgba(210, 105, 30, 0.3);
}