/* 📌 当前文件相对路径: isaste_en_project/app/static/css/style.css */

/* 【这段代码的具体作用是什么？】统一全站的基础字体。 */
/* 【为什么要在这里做这样的修改？】为了让严肃的学术网站拥有高级的阅读体验，正文使用传统的衬线体，而导航等UI元素使用无衬线体。我们把它抽离到这里，全站都能复用。 */
body { 
    font-family: 'Georgia', 'Times New Roman', serif; 
}
.font-sans-serif { 
    font-family: system-ui, -apple-system, sans-serif; 
}

/* 【这段代码的具体作用是什么？】定义“幕布拉开”的动画轨迹与时间。 */
.curtain-panel {
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.curtain-loaded .curtain-left { transform: translateX(-100%); }
.curtain-loaded .curtain-right { transform: translateX(100%); }

/* 【这段代码的具体作用是什么？】定义网页主体内容“从下往上浮现”的动画，并注入了极其底层的 3D 硬件加速指令。 */
.content-reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 0.3s; 
}
.content-loaded {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* 【这段代码的具体作用是什么？】定义全站唯一、绝对权威的内容约束容器。 */
.global-container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================
   【顶级学术白皮书：全局排版协议 1.0 (白皮书专用)】
   ========================================== */
.academic-prose {
    font-family: system-ui, -apple-system, sans-serif; 
    font-size: 16px;        
    line-height: 1.75;      
    color: #374151;         
}
.academic-prose h2 {
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: 1.5rem;
    font-weight: 700;
    color: #0b1b3d;         
    margin-top: 2.5rem;     
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6; 
}
.academic-prose h3 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1b3d;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.academic-prose p {
    margin-bottom: 1.5rem;
    text-align: justify; 
}
.academic-prose ul, .academic-prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.academic-prose ul { list-style-type: disc; }
.academic-prose ol { list-style-type: decimal; }
.academic-prose li { margin-bottom: 0.5rem; }
.academic-prose strong {
    color: #111827;
    font-weight: 700;
}

/* ==========================================
   【全站排版协议 2.0 (Global Typography Protocol)】
   ========================================== */
/* 【这段代码的具体作用是什么？】建立全站级别的文本规矩，彻底接管 HTML 里的散装代码！ */
/* 【为什么要在这里做这样的修改？】日后领导说“全站导航栏字号调大一号”，您只需要改这里的一行代码，全站瞬间生效！这就是大厂的设计系统（Design System）。 */

/* 1. 导航栏主菜单协议 */
.proto-nav-link {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    color: #4b5563; /* text-gray-600 */
    transition: color 0.3s;
    display: flex;
    align-items: center;
    height: 100%;
}
.proto-nav-link:hover {
    color: #0b1b3d; /* hover 专属深蓝色 */
}

/* 2. 导航栏下拉子菜单协议 */
.proto-nav-dropdown-item {
    font-family: system-ui, -apple-system, sans-serif;
    display: block;
    padding: 0.75rem 1.25rem; /* py-3 px-5 */
    font-size: 0.875rem;
    color: #374151; /* text-gray-700 */
    border-bottom: 1px solid #f9fafb;
    transition: all 0.3s;
}
.proto-nav-dropdown-item:hover {
    background-color: #eff6ff; /* hover:bg-blue-50 */
    color: #0b1b3d;
}

/* 3. 页脚文本协议 */
.proto-footer-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem; /* text-xs */
    letter-spacing: 0.05em;
    color: #9ca3af; /* text-gray-400 */
}
.proto-footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb; /* text-gray-200 */
    margin-bottom: 0.5rem;
}

/* ==========================================
   【全站排版协议 3.0 (前台组件与卡片通用规范)】
   ========================================== */
/* 【为什么要在这里做这样的修改？】彻底剥离首页、会议页、学者页 HTML 中的字体代码。实现“一处修改字号/颜色，全站前台瞬间同步”的大厂级 Design System！ */

/* A. 页面顶部横幅协议 (Banner) */
.proto-banner-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #0b1b3d;
}
.proto-banner-desc {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;
    color: #6b7280;
}

/* B. 列表与卡片内容协议 (Cards / List Items) */
.proto-item-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0b1b3d;
    line-height: 1.375;
    transition: color 0.3s;
}
.proto-item-title:hover {
    color: #2563eb;
}
.proto-item-subtitle {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.proto-item-meta {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
}
.proto-item-summary {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.625;
}
.proto-item-link {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0b1b3d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: border-color 0.3s, color 0.3s;
    border-bottom: 1px solid #0b1b3d;
    padding-bottom: 0.125rem;
    display: inline-block;
}
.proto-item-link:hover {
    color: #2563eb;
    border-color: #2563eb;
}

/* C. 首页专属巨幕与板块标题协议 (Hero & Sections) */
.proto-hero-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}
@media (min-width: 768px) {
    .proto-hero-title { font-size: 3.75rem; }
}
.proto-hero-desc {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.625;
}
.proto-section-heading {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.875rem;
    color: #0b1b3d;
}

/* ==========================================
   【全站排版协议 4.0 (加密后台 CMS 专属规范)】
   ========================================== */
/* 【为什么要在这里做这样的修改？】彻底洗净后台表单和表格中极其冗长、重复的 Tailwind 原子类。 */

.proto-admin-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #0b1b3d;
}

/* 1. 后台数据表格协议 */
.proto-table-th {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    color: #6b7280; /* text-gray-500 */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    text-align: left;
}
.proto-table-td {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
    padding: 1rem 1.5rem; /* py-4 px-6 */
}

/* 2. 后台万能表单协议 */
.proto-label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.5rem;
    display: block;
}
.proto-input {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    width: 100%;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.25rem; /* rounded */
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s;
}
.proto-input:focus {
    outline: none;
    border-color: #3b82f6; /* focus:border-blue-500 */
    box-shadow: 0 0 0 1px #3b82f6; /* focus:ring-1 */
}

/* 后台表单补充：下拉框与文本域更易点击/编辑 */
select.proto-input {
    height: 2.75rem;
    background-color: #ffffff;
}
textarea.proto-input {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.6;
}