/* ========================================
   LORI 2027 — Academic Minimal System (Redesigned)
   四川大学 哲学系 / 逻辑、科学与文化研究所
   主色: #8B0012 (川大红)
   ======================================== */

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

:root {
  --lori-red: #8B0012;
  --lori-red-dark: #5C000C;
  --lori-red-light: #C62E2E;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --line: #E8E8E8;
  --text-primary: #1A1A1A;
  --text-secondary: #555;
  --text-light: #888;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body {
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", "思源黑体", sans-serif;
  background: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lori-red); }

/* ===== Sticky Top Nav (Redesigned) ===== */
.top-nav {
  background: var(--lori-red);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}


.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.nav-brand .scu-logo {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-brand .scu-text-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.3);
  margin: 0 4px;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.nav-brand .brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: white;
}

.nav-brand .brand-sub {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: white;
  border-bottom-color: white;
}

/* ===== 导航项与下拉菜单 ===== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 20px 16px;
  border-bottom: 2px solid transparent;
  letter-spacing: .2px;
  transition: all 0.25s;
  display: inline-block;
  white-space: nowrap;
}

.nav-item:hover > a,
.nav-item > a.active {
  color: white;
  border-bottom-color: white;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--lori-red);
  flex-shrink: 0;
}

.dropdown a {
  display: block;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  width: 100%;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: #fdf2f2;
  color: var(--lori-red) !important;
}

/* Old header/navbar hidden */
header, .navbar, .nav-left, .nav-links, .nav-item, .scu-box,
.nav-banner-container, .nav-overlay, .nav-start, #sidebar, .menu-item,
.logo-small, .logo-scu, .lang-switch {
  /* New structure overrides below */
}

/* ===== Hero Banner (Home) ===== */
.hero-banner{
    position:relative;
    width:100%;
    height:420px;
    overflow:hidden;
    display:flex;
    align-items:center;
}

/* ===== Banner ===== */

.banner-slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity 1s ease;
    z-index:0;
}

.banner-slide.active{
    opacity:1;
}

.banner-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
}

.hero-banner::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(0,0,0,.20),
        rgba(0,0,0,.35)
    );
    z-index:1;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 5%;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: 52px;
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.hero-content .hero-sub {
  font-size: 22px;
  color: rgba(255,255,255,.92);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: white;
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 5%;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(139,0,18,0.25);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots span.active { background: var(--lori-red); }

/* ===== Page Banner (Subpages) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--lori-red) 0%, #a51a2e 100%);
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.page-banner h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.page-banner p {
  font-size: 14px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--lori-red);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lori-red);
  display: none; /* redesigned pages use section titles directly */
}

/* 3-column home grid */
.grid-3 {
  display: grid;
  grid-template-columns: 270px 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* 2-column subpage grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* ===== Card ===== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--lori-red);
  margin-bottom: 16px;
  border-left: 4px solid var(--lori-red);
  padding-left: 10px;
  line-height: 1.4;
}

.card p, .card li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== Tabs ===== */
.tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 0; }
.tab {
  padding: 10px 18px;
  cursor: pointer;
  background: #eee;
  border: 1px solid var(--line);
  border-bottom: none;
  margin-right: 4px;
  border-radius: 4px 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.tab:hover { background: #ddd; }
.tab.active { background: var(--lori-red); color: white; border-color: var(--lori-red); }

.tab-content-item { display: none; }

.tab-content {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 6px 6px;
  line-height: 1.8;
  font-size: 14px;
}

/* ===== Section block (subpages) ===== */
.section-block {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.section-block:last-child { border-bottom: none; }

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--lori-red);
  border-left: 5px solid var(--lori-red);
  padding-left: 14px;
  margin-bottom: 22px;
}

/* ===== Table ===== */
.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.clean-table th {
  background: var(--lori-red);
  color: white;
  padding: 10px 14px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--lori-red-dark);
}
.clean-table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: center;
}
.clean-table tr:nth-child(even) { background: var(--bg-light); }
.clean-table tr:hover { background: #f0e0e0; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 34px; margin: 16px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--lori-red);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--lori-red);
}
.timeline-date { font-size: 15px; font-weight: 700; color: var(--lori-red); }
.timeline-desc { font-size: 15px; margin-top: 2px; color: #555; }

/* ===== News sidebar ===== */
.news-grid { display: flex; flex-direction: column; gap: 10px; }
.news-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  transition: 0.2s;
  background: white;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.news-tag { color: var(--lori-red); font-size: 12px; font-weight: 700; }
.news-title { font-weight: 700; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-primary); }
.news-desc { font-size: 14px; color: var(--text-secondary); margin-top: 4px; line-height: 1.7; }
.news-link {
  color: var(--lori-red); text-decoration: none; font-size: 13px; display: inline-block; margin-top: 8px; font-weight: 600;
}
.news-link:hover { text-decoration: underline; }

/* ===== Current News Pointer ===== */

.news-card.current{
    border-color: var(--lori-red);
    box-shadow: 0 4px 14px rgba(139,0,18,.15);
}

/* 左侧川大红指针 */

.news-card.current::before{
    content:"";
    position:absolute;
    left:-14px;
    top:50%;
    transform:translateY(-50%);
    width:0;
    height:0;

    border-top:7px solid transparent;
    border-bottom:7px solid transparent;
    border-left:10px solid var(--lori-red);
}

/* Right panel (conference info) */
.conference-title { font-size: 28px; font-weight: 700; color: var(--lori-red); margin-bottom: 8px; }
.conference-subtitle { font-size: 17px; line-height: 1.6; color: #666; margin-bottom: 12px; }
.conference-meta { font-size: 14px; color: var(--text-secondary); text-align: center; margin: 12px 0; }
.conference-text { font-size: 15px; line-height: 1.9; text-align: justify; color: #555; margin-bottom: 12px; }

/* ===== Sponsor grid ===== */
.sponsor-title { text-align: center; font-size: 18px; font-weight: 700; color: var(--lori-red); margin: 50px 0 20px; }
.sponsor-grid {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 20px 0 40px;
}
.sponsor-grid div,
.sponsor-grid a {
  width: 135px; height: 135px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
}
.sponsor-grid img { max-width: 100%; max-height: 100%; }
.sponsor-grid img.sponsor-red { filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(5600%) hue-rotate(340deg) brightness(103%) contrast(103%); }

/* ===== Contact card ===== */
.contact-card {
  background: var(--bg-light);
  padding: 12px 16px;
  margin: 8px 0;
  border-left: 3px solid var(--lori-red);
  border-radius: 0 4px 4px 0;
  font-size: 14px;
}
.contact-card .name { font-weight: 700; font-size: 15px; }
.contact-card .email { color: var(--lori-red); font-size: 13px; }

/* ===== Card grid (hotels/attractions) ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.card-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
}
.card-item-inner { padding: 14px; }
.card-item h4 { color: var(--lori-red); font-size: 15px; margin-bottom: 6px; font-weight: 700; }
.card-item p { font-size: 13px; margin-bottom: 3px; color: var(--text-secondary); }

/* ===== Schedule pagination buttons ===== */
.page-btn {
  margin: 0 5px;
  padding: 8px 18px;
  border: 1px solid var(--lori-red);
  background: white;
  color: var(--lori-red);
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.page-btn.active {
  background: var(--lori-red);
  color: white;
}
.page-btn:hover:not(.active) {
  background: rgba(139,0,18,0.06);
}

/* ===== Footer ===== */
footer {
  margin-top: 70px;
  padding: 36px 24px;
  background: #111;
  text-align: center;
  color: #aaa;
  font-size: 13px;
  line-height: 1.8;
}
footer a { color: #aaa; }
footer a:hover { color: var(--lori-red-light); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .top-nav { padding: 0 16px; flex-wrap: wrap; height: auto; min-height: 64px; }
  .nav-menu a { padding: 8px 10px; font-size: 13px; }
  .hero-content h1 { font-size: 32px; }
  .hero-banner { height: 260px; }
}

/* Utility for old structure compatibility */
header { display: none; }
