@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary: #246B2B;
    --secondary: #E1DF36;
    --bg-color: #F9F9F7;
}

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

body { 
    font-family: 'Microsoft YaHei', 'SimHei', 'PingFang SC', 'Noto Sans SC', sans-serif; 
    background-color: var(--bg-color); 
    color: #1a1a1a; 
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 16px;
}

p {
    font-size: 16px;
}

h1, h2, h3, h4, .serif { 
    font-family: 'Microsoft YaHei', 'SimHei', 'PingFang SC', 'Noto Sans SC', sans-serif; 
}

/* Custom Utilities */
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.text-secondary { color: var(--secondary); }
.bg-secondary { background-color: var(--secondary); }
.border-primary { border-color: var(--primary); }

.tracking-editorial { letter-spacing: 0.15em; }
.leading-editorial { line-height: 1.8; }

/* Hairline Decoration */
.hairline { 
    height: 1px; 
    background-color: rgba(36, 107, 43, 0.2); 
    width: 100%; 
}

/* Image Overlay */
.img-overlay {
    position: relative;
}
.img-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(36, 107, 43, 0.1);
    mix-blend-mode: multiply;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .serif {
        letter-spacing: normal;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
}
::-webkit-scrollbar-thumb:hover {
    background: #1a4d1f;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 1s ease-out forwards;
}

/* PDF Modal Styles */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}
.pdf-modal.active {
    display: flex;
}
.pdf-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.pdf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 3001;
    color: #333;
    font-size: 24px;
    transition: all 0.3s;
}
.pdf-modal-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}
.pdf-modal-content {
    width: 100%;
    height: 100%;
    border: none;
}
