body {
    font: 15px/1.5 "MicroSoft Yahei", arial, simsun, simhei, sans-serif, Tahoma, Helvetica;
    margin: 0;
    padding: 10px;
    background: #ffffff;
    position: relative;
}
p { margin: 5px 0; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; line-height: 1.5; text-indent: 0; }
h1 { margin: 0; font-size: 20px; }
.title { font-size: 20px; text-align: center; font-weight: bold; padding-bottom: 10px; }
.view { font-size: 15px; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ddd; padding: 8px; }

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 888px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 10px 0;
}
@media (min-width: 768px) {
    .gallery.multiple-images {
        grid-template-columns: repeat(2, 1fr);
    }
}
.img-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: auto;
}
.img-placeholder {
    width: 100%;
    position: relative;
    background: #f1f2f3;
}
.img-placeholder::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* Default PPT ratio 16:9 */
}
.img-lazy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    vertical-align: middle;
}
.img-lazy.loaded {
    opacity: 1;
}
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
    background-repeat: repeat;
    display: none;
}
.trial-end {
    grid-column: 1 / -1;
    text-align: center;
    margin: 30px 10px;
    color: #666;
    font-size: 20px;
    border-bottom: 1px dashed #999;
    line-height: 0px;
}
.trial-tip {
    font-weight: bold;
    text-align: center;
    color: #fd0000;
    width: 100%;
    line-height: 1.2;
    margin-top: 10px;
    grid-column: 1 / -1;
}

/* Word Document styling */
.word-content {
    width: 100%;
    max-width: 888px;
    margin: 0 auto;
    min-height: 400px;
}
.trial-content-box {
    max-height: 1050px; /* A4 page height limit */
    overflow: hidden;
    position: relative;
}
.trial-content-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
#loadingText {
    text-align: center;
    color: #666;
    margin-top: 50px;
    font-size: 16px;
}
