﻿:root {
  
  /* Education green accent */
  --color-warm: #588c5c;
  --color-warm-deep: #3d6b41;
  --ink: var(--color-ink, #33495b);
  --muted: var(--color-muted, #738598);
  --green: var(--color-green, #588c5c);
  --green-deep: var(--color-green-deep, #3d6b41);
  --warm: var(--color-warm, #588c5c);
  --warm-deep: var(--color-warm-deep, #3d6b41);
  --line: var(--color-line, rgba(88, 140, 92, 0.18));
  --glass: var(--color-glass, rgba(255, 255, 255, 0.78));
  --shadow: var(--shadow-soft, 0 22px 58px rgba(61, 107, 65, 0.12));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }

.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 max(34px,calc((100vw - 920px)/2)); background: rgba(255,255,255,0.48); border-bottom: 1px solid rgba(88,140,92,0.08); backdrop-filter: blur(18px); }
.brand,.hero p,.section-heading h2,.project-card h3,.thinking-card h3 { font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-weight: 400; letter-spacing: 0; }
.brand { color: #30495a; font-size: 25px; line-height: 1; }
.nav-links { display: flex; gap: clamp(24px,4vw,46px); color: #65798a; font-size: 15px; }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after { position: absolute; left: 50%; bottom: 0; width: 0; height: 1px; background: var(--warm); content: ""; transition: width .2s ease; transform: translateX(-50%); }
.nav-links a:hover { color: var(--warm-deep); }
.nav-links a:hover::after { width: 100%; }

.hero { position: relative; min-height: 590px; padding-top: 76px; display: grid; place-items: center; overflow: hidden; background: url("../assets/headerBg.jpg") center center / cover no-repeat; }
.hero::after { position: absolute; left: 0; right: 0; bottom: -1px; height: 190px; background: linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.62) 54%,#fff 100%); content: ""; pointer-events: none; }
.hero-content { position: relative; z-index: 2; margin-top: -22px; text-align: center; }
.hero p { margin: 0; color: #40596b; font-size: clamp(34px,5.8vw,62px); letter-spacing: 1px; line-height: 1.25; }
.hero-subtitle { margin-top: 12px; color: #64798d; font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif; font-size: clamp(14px,2vw,18px); letter-spacing: .16em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px; border-radius: 999px; font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif; font-size: 15px; font-weight: 600; transition: background .3s ease,color .3s ease; }
.hero-btn.primary { color: #fff; background: var(--warm-deep); }
.hero-btn.primary:hover { background: #2d5a3f; /* lift disabled */ }
.hero-btn.secondary { color: var(--warm-deep);  background: transparent; }
.hero-btn.secondary:hover { background: rgba(61,107,65,0.08); /* lift disabled */ }

.content-section { position: relative; padding: 72px max(24px,calc((100vw - 920px)/2)) 0; }
/* section glow removed */
.section-shell { width: 100%; }
.section-heading { margin-bottom: 28px; }
.section-heading span { display: block; margin-bottom: 7px; color: var(--warm-deep); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--warm-deep); font-size: clamp(30px,4vw,40px); line-height: 1.25; }

.story-stack { display: grid; gap: 0; overflow: hidden; /* border removed */border-radius: 8px; background: linear-gradient(180deg,rgba(255,255,255,0.9),rgba(255,255,255,0.72)),radial-gradient(ellipse at 18% 0%,rgba(88,140,92,0.09),transparent 36rem); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.story-card,.project-card,.thinking-card,.article-card { transition: background 1.2s ease,border-color 1.2s ease,box-shadow 1.2s ease,filter 1.2s ease; }
.project-card:hover,.thinking-card:hover,.article-card:hover { border-color: rgba(88,140,92,0.24); background: linear-gradient(180deg,rgba(255,255,255,0.99),rgba(255,250,244,0.86)),radial-gradient(ellipse at 80% 0%,rgba(88,140,92,0.14),transparent 18rem); box-shadow: 0 24px 62px rgba(61,107,65,0.11),0 12px 28px rgba(61,107,65,0.07); filter: saturate(1.02); /* lift disabled */ }
.project-card,.thinking-card { /* border removed */border-radius: 8px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.story-card { display: grid; grid-template-columns: 72px 1fr; align-items: start; gap: 20px; min-height: 132px; padding: 30px 36px; border: 0; border-bottom: 1px solid rgba(88,140,92,0.14); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.story-card:last-child { border-bottom: 0; }
.card-index { color: rgba(88,140,92,0.88); font-family: Georgia,"Times New Roman",serif; font-size: 26px; line-height: 1; }
.story-card p,.thinking-card p,.project-card li,.project-kicker { font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif; }
.story-card p { margin: 0; color: #566b7e; font-size: 17px; }

.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.project-card { padding: 28px 28px 24px; position: relative; overflow: hidden; background: linear-gradient(180deg,rgba(255,255,255,0.96),rgba(255,255,255,0.78)),radial-gradient(ellipse at 100% 0%,rgba(88,140,92,0.12),transparent 16rem); }
.project-card:hover::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--warm-deep); content: ""; z-index: 1; opacity: 0.7; }
.project-kicker { display: inline-flex; margin-bottom: 10px; padding: 3px 10px;  border-radius: 999px; color: #3d6b41; background: rgba(88,140,92,0.10); font-size: 14px; }
.project-card h3 { margin: 0 0 16px; color: #344e62; font-size: clamp(25px,3vw,30px); line-height: 1.25; }
.project-card p { margin: 0; color: #64798d; font-size: 15px; }
.pill-link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 34px; padding: 24px 0 0; border-top: 1px solid rgba(88,140,92,0.18); color: #60758a; font-size: 13px; font-weight: 400; transition: color .9s ease,border-color .9s ease,letter-spacing .9s ease; }
.pill-link::after { margin-left: 8px; content: ">"; }
.pill-link:hover { border-color: rgba(88,140,92,0.34); color: var(--warm-deep); letter-spacing: .02em; }

.thinking-section { padding-bottom: 74px; }
.thinking-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.thinking-card { min-height: 238px; padding: 28px 26px; display: flex; flex-direction: column; background: linear-gradient(180deg,rgba(255,255,255,0.96),rgba(255,255,255,0.84)),linear-gradient(90deg,rgba(61,107,65,0.08),transparent 42%); }
.thinking-card h3 { margin: 18px 0 12px; color: #344e62; font-size: 25px; line-height: 1.35; }
.thinking-card p { flex: 1; margin: 0; color: #64798d; font-size: 15px; }
.text-link { display: flex; width: 100%; justify-content: space-between; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(88,140,92,0.18); color: #60758a; font-size: 13px; font-weight: 400; transition: color .9s ease,border-color .9s ease,letter-spacing .9s ease; }
.text-link::after { margin-left: 6px; content: ">"; }
.text-link:hover { border-color: rgba(88,140,92,0.34); color: #2d5a3f; letter-spacing: .02em; }

.service-main { position: relative; overflow: hidden; padding: 154px max(24px,calc((100vw - 920px)/2)) 74px; isolation: isolate; }
.service-main::before { position: absolute; top: 0; right: 0; left: 0; z-index: 0; height: 370px; background: linear-gradient(180deg,rgba(255,255,255,0.08) 0%,rgba(255,255,255,0.6) 66%,#fff 100%),url("../assets/headerBg.jpg") center top / cover no-repeat; content: ""; opacity: 0.9; pointer-events: none; }
.service-main > * { position: relative; z-index: 1; }
.service-hero { margin-bottom: 34px; }
.service-hero h1 { margin: 0; color: var(--warm-deep); font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-size: clamp(34px,5vw,52px); font-weight: 400; line-height: 1.2; }
.service-hero p { max-width: 760px; margin: 18px 0 0; color: #64798d; font-size: 17px; }
.service-block { margin-top: 58px; }

.service-panel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.service-panel-header h3 { margin: 0; color: #344e62; font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-size: 26px; font-weight: 400; line-height: 1.3; flex: 1; }
.panel-icon { font-size: 24px; }
.service-horizontal { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 8px; }
.service-h-item { padding: 22px 24px; /* border removed */border-radius: 8px; background: linear-gradient(180deg,rgba(255,255,255,0.97),rgba(255,250,244,0.9)),radial-gradient(ellipse at 100% 0%,rgba(88,140,92,0.08),transparent 14rem); box-shadow: 0 12px 32px rgba(61,107,65,0.06); transition: border-color .9s ease,box-shadow .9s ease; }
.service-h-item:hover { border-color: rgba(88,140,92,0.3); box-shadow: 0 18px 44px rgba(61,107,65,0.1),0 8px 20px rgba(61,107,65,0.06); /* lift disabled */ }
.service-h-item strong { display: block; color: #344e62; font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-size: 18px; font-weight: 400; line-height: 1.35; }
.service-h-item .service-badge { display: inline-block; margin-top: 6px; padding: 3px 12px;  border-radius: 999px; color: var(--warm-deep); background: rgba(88,140,92,0.08); font-size: 12px; font-weight: 600; }
.service-h-item p { margin: 10px 0 0; color: #64798d; font-size: 14px; line-height: 1.65; }
.service-cases { margin-top: 18px; padding: 16px 18px; border-radius: 6px; background: rgba(88,140,92,0.05);  }
.service-cases-label { display: block; margin-bottom: 8px; color: var(--warm-deep); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.service-cases ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; }
.service-cases li { color: #64798d; font-size: 14px; }
.service-cases li::marker { color: var(--warm-deep); }

.project-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 24px; }

.article-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.article-card { min-height: 238px; padding: 26px 26px 24px; /* border removed */border-radius: 8px; background: linear-gradient(180deg,rgba(255,255,255,0.97),rgba(255,255,255,0.82)),radial-gradient(ellipse at 100% 0%,rgba(88,140,92,0.09),transparent 18rem); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.article-card span { display: inline-flex; margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.article-card h2 { margin: 0 0 14px; color: #344e62; font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-size: 26px; font-weight: 400; line-height: 1.35; }
.article-card p { margin: 0; color: #64798d; font-size: 15px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { /* border removed */border-radius: 8px; background: var(--glass); padding: 0; transition: background 1.2s ease,border-color 1.2s ease; }
.faq-item[open] { border-color: rgba(88,140,92,0.24); background: linear-gradient(180deg,rgba(255,255,255,0.99),rgba(255,250,244,0.86)),radial-gradient(ellipse at 80% 0%,rgba(88,140,92,0.08),transparent 18rem); }
.faq-item summary { padding: 18px 24px; color: #344e62; font-family: "Microsoft YaHei","PingFang SC","Noto Sans SC",Arial,sans-serif; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq-item summary::before { content: "+"; color: var(--warm-deep); font-size: 20px; font-weight: 300; flex-shrink: 0; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 24px 20px 24px; color: #64798d; font-size: 15px; line-height: 1.7; }

.site-footer { position: relative; z-index: 80; display: grid; grid-template-columns: 1fr; justify-items: center; align-items: end; gap: 18px; min-height: 330px; padding: 112px max(24px,calc((100vw - 1160px)/2)) 30px; text-align: center; background: url("../assets/alei-bottom.png") center bottom / 100% auto no-repeat; overflow: visible; }
.site-footer::before { position: absolute; z-index: 0; inset: 0 0 auto; height: 150px; background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,0.86) 26%,rgba(255,255,255,0) 100%); content: ""; pointer-events: none; }
.footer-brand,.social-links,.site-footer small { position: relative; z-index: 10; }
.footer-brand { display: grid; justify-items: center; gap: 10px; width: 210px; }
.brand-main { color: #071838; font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-size: clamp(20px,2.6vw,28px); font-weight: 400; line-height: 1; text-shadow: 0 2px 0 rgba(255,255,255,0.65); white-space: nowrap; }
.brand-contact { display: grid; gap: 4px; width: 100%; color: #5f7592; font-family: "Courier New","SFMono-Regular",Consolas,monospace; font-size: 11px; line-height: 1.2; text-align: center; }
.brand-contact span { display: block; }
.social-links { z-index: 30; display: flex; align-items: center; gap: 12px; justify-content: center; }
.social-link { position: relative; z-index: 31; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #2d5a3f; font-size: 11px; font-weight: 800; }
.social-link:nth-child(3) { background: #ef3f35; }
.github-link { width: auto; min-width: 64px; padding: 0 12px; border-radius: 999px; background: rgba(7,24,56,0.88); }
.qr-popover { position: absolute; left: 50%; bottom: calc(100% + 14px); display: grid; place-items: center; width: 148px; height: 166px; padding: 12px;  border-radius: 8px; color: #2d5a3f; background: rgba(255,255,255,0.96); box-shadow: 0 18px 38px rgba(40,80,55,0.18); opacity: 0; pointer-events: none; transform: translate(-50%,8px); transition: opacity .18s ease; z-index: 9999; }
.qr-popover img { display: block; width: 124px; height: 124px; object-fit: cover; border-radius: 6px; }
.qr-popover em { display: block; color: #2d5a3f; font-style: normal; font-size: 13px; line-height: 1.6; text-align: center; }
.social-link:hover .qr-popover,.social-link:focus-visible .qr-popover { opacity: 1; transform: translate(-50%,0); }
.site-footer small { grid-column: 1 / -1; color: #627698; font-size: 12px; text-align: center; }

.section-heading h2 { font-size: 34px !important; }
.service-panel-header h3 { font-size: 26px !important; color: #344e62; font-family: "Songti SC","STSong","Noto Serif SC","SimSun",serif; font-weight: 400; }
.service-h-item strong { font-size: 18px !important; }
.thinking-card h3 { font-size: 22px !important; }
.service-h-item p,.thinking-card p,.story-card p,.project-card p,.project-card li,.article-card p,.faq-item p { font-size: 15px !important; }
.hero-subtitle { font-size: 15px !important; }
.hero p { font-size: clamp(36px,5.8vw,52px) !important; }
.services-section { padding-top: 36px !important; }

@media (max-width: 900px) {
  .project-grid,.thinking-grid,.article-list,.service-horizontal,.service-horizontal--three { grid-template-columns: 1fr; }
  .project-grid-full { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; align-items: center; text-align: center; min-height: 360px; padding: 116px 20px 24px; background-size: auto 100%; }
  .footer-brand,.social-links { justify-self: center; }
  .site-footer small { grid-column: auto; }
}
@media (max-width: 640px) {
  .site-header { align-items: center; flex-direction: column; gap: 10px; height: auto; min-height: 68px; padding: 16px 22px; }
  .site-header .brand { width: 100%; text-align: center; }
  .nav-links { width: 100%; justify-content: center; gap: 12px; font-size: 14px; }
  .hero { min-height: 500px; }
  .intro-section { padding-top: 28px; }
  .story-card { grid-template-columns: 1fr; padding: 24px; }
  .content-section { padding-top: 56px; }
}

/* Default shadow for all content blocks */
.project-card, .thinking-card, .story-card, .faq-item {
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}

/* Hover top line - left-to-right expand 1s */
.project-card:hover::before,
.thinking-card:hover::before,
.story-card:hover::before,
.faq-item:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--warm-deep);
  z-index: 1;
  width: 0;
  animation: lineGrow 1s ease forwards;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 100%; }
}

/* Default shadow & transition for cards */
.project-card, .thinking-card, .story-card, .faq-item {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* Hover: background shift + enhanced shadow */
.project-card:hover,
.project-card:hover, .thinking-card:hover, .story-card:hover, .faq-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 70%, rgba(88,140,92,0.06) 100%);
  box-shadow: 0 24px 62px rgba(88,140,92,0.12), 0 12px 28px rgba(88,140,92,0.08);
}

/* Hover top line - left-to-right expand 1s  */
.project-card:hover::before,
.thinking-card:hover::before,
.story-card:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--warm-deep);
  z-index: 1;
  width: 0;
  animation: lineGrow 1s ease forwards;
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 100%; }
}


/* FAQ section bottom spacing */
.faq-section {
  padding-bottom: 80px !important;
}





