:root { --accent: #b8ff1b; }

/* Shared centered composition */
.section-band { padding-left: max(40px, calc((100vw - 1500px) / 2)); padding-right: max(40px, calc((100vw - 1500px) / 2)); }
.section-band > .section-number,
.section-band > .section-heading,
.section-band > .experience-list,
.section-band > .project-list,
.section-band > .skill-grid,
.section-band > .skill-actions,
.contact-section > :not(.section-number) { width: min(100%, 1320px); margin-left: auto; margin-right: auto; }
.section-number { letter-spacing: .16em; font-weight: 700; }

/* Navigation */
.sidebar.topbar { position: fixed; inset: 20px 0 auto; }
.topbar .side-nav { width: min(850px, calc(100vw - 280px)); min-height: 58px; padding: 7px; justify-content: space-around; border-radius: 34px; background: rgba(8, 17, 20, .86); }
.topbar .side-nav a { flex: 1; justify-content: center; height: 44px; border-radius: 25px; font-size: 15px; color: #a6afad; }
.topbar .side-nav a:hover { transform: none; }
.topbar-actions { right: max(26px, calc((100vw - 1500px) / 2)); }
.topbar .quiet-button { padding: 12px 20px; font-size: 14px; border-radius: 24px; }

/* Hero */
.hero.section-band { min-height: 1050px; height: auto; max-height: none; padding-top: 110px; padding-bottom: 40px; }
.hero-grid { width: min(100%, 1320px); max-width: none; height: auto; min-height: 600px; margin: 0 auto; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .8fr); gap: 42px; align-items: center; }
.hero-copy { max-width: 760px; padding-top: 0; }
.hero-copy .field-label:has(.title-input), .hero-copy .field-label:has(.english-input) { display: block !important; }
.title-input { height: 108px; color: var(--accent); font-size: clamp(66px, 7vw, 110px); }
.english-input { height: 72px; margin: 2px 0 16px; font-size: clamp(45px, 4.6vw, 72px); }
.role-input { height: 46px; font-size: clamp(24px, 2.2vw, 34px); }
.intro-input { max-width: 670px; }
.tag-editor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; gap: 10px; }
.tag-chip { position: relative; display: flex; flex-direction: column; justify-content: center; width: auto; min-height: 78px; padding: 12px 34px 12px 14px; overflow: visible; border-radius: 10px; background: var(--accent) !important; color: #10170f; }
.tag-chip::after { display: none !important; }
.tag-chip input { height: auto; padding: 0; color: #10170f; }
.tag-chip .tag-title { font-size: 14px; font-weight: 800; line-height: 1.35; }
.tag-chip .tag-subtitle { margin-top: 5px; color: #31402d; font-size: 11px; line-height: 1.35; }
.tag-chip button { position: absolute; top: 5px; right: 7px; padding: 1px; background: transparent; color: #31402d; opacity: .7; pointer-events: auto; transform: none; }
.avatar-shell { position: relative; top: auto; right: auto; width: min(35vw, 500px); margin: 0 auto; cursor: pointer; }
.avatar-upload { display: none !important; }
.avatar-mode { top: 13px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.availability-card { right: 0; bottom: 72px; }
.showcase-rail { position: relative; inset: auto; width: min(100%, 1320px); max-width: none; margin: 35px auto 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; align-items: start; overflow: visible; }
.showcase-item { min-width: 0; transition: transform .22s ease; }
.showcase-tile { width: 100%; max-width: none; min-width: 0; aspect-ratio: .78; padding: 0; border-radius: 22px; transform: none !important; overflow: hidden; background: linear-gradient(145deg, #17272c, #0a1114); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.showcase-tile:hover { transform: translateY(-5px) !important; }
.showcase-item.selected .showcase-tile { z-index: 4; transform: scale(1.1) translateY(-7px) !important; border-color: var(--accent); box-shadow: 0 16px 35px rgba(0,0,0,.45), 0 0 0 2px var(--accent); }
.showcase-item.selected { z-index: 5; }
.showcase-actions { min-height: 31px; margin-top: 10px; display: flex; justify-content: center; gap: 6px; }
.showcase-actions button { padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: transparent; color: #aeb9b5; font-size: 10px; }
.showcase-actions button:hover { border-color: var(--accent); color: var(--accent); }
.rail-controls { position: relative; inset: auto; transform: none; width: min(100%, 1320px); margin: 6px auto 0; }
.rail-controls .add-text-button { background: var(--accent); color: #0b120d; border: 0; }

/* Experience timeline */
.experience-section { min-height: 1040px; padding-top: 135px; padding-bottom: 90px; background: radial-gradient(circle at 8% 22%, rgba(74,130,74,.32), transparent 31%), #071117; }
.section-heading { margin-bottom: 55px; }
.section-title-input { width: 100%; font-size: clamp(52px, 6vw, 86px); font-weight: 800; }
.section-heading p { font-size: 16px; }
.experience-list { position: relative; display: grid; grid-template-columns: 1fr 84px 1fr; gap: 38px 0; border: 0; }
.experience-list::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--accent); }
.experience-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; min-height: 280px; padding: 30px; border: 1px solid rgba(184,255,27,.62); border-radius: 22px; background: rgba(104,135,62,.35); }
.experience-card:nth-child(odd) { grid-column: 1; }
.experience-card:nth-child(even) { grid-column: 3; background: #1b222b; border-color: rgba(255,255,255,.18); }
.experience-card:nth-child(1) { grid-row: 1; }
.experience-card:nth-child(2) { grid-row: 2; }
.experience-card:nth-child(3) { grid-row: 3; }
.experience-card:nth-child(4) { grid-row: 4; }
.experience-card:nth-child(5) { grid-row: 5; }
.experience-card:nth-child(6) { grid-row: 6; }
.experience-card:nth-child(7) { grid-row: 7; }
.experience-card:nth-child(8) { grid-row: 8; }
.experience-card .index { position: absolute; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 2px solid var(--accent); border-radius: 50%; background: #071117; color: var(--accent); transform: translateY(-50%); }
.experience-card:nth-child(odd) .index { right: -64px; }
.experience-card:nth-child(even) .index { left: -64px; }
.experience-card > div { grid-column: 1 / -1; }
.experience-company { font-size: 26px; }
.experience-role { font-size: 17px; }
.experience-summary { height: 135px; font-size: 14px; }
.experience-dates { position: absolute; top: 50%; width: 310px; transform: translateY(-50%); color: var(--accent); font-size: 22px; font-weight: 700; }
.experience-card:nth-child(odd) .experience-dates { left: calc(100% + 105px); }
.experience-card:nth-child(even) .experience-dates { right: calc(100% + 105px); text-align: right; }
.experience-card .icon-delete { position: absolute; right: 14px; bottom: 13px; }

/* Projects */
.project-section { min-height: 990px; padding-top: 135px; padding-bottom: 90px; background: radial-gradient(circle at 72% 10%, rgba(70,114,50,.22), transparent 31%), #081118; }
.project-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 285px); gap: 18px; }
.project-card { min-height: 0; display: block; border-radius: 24px; overflow: hidden; }
.project-card:first-child { grid-row: 1 / 3; }
.project-media { min-height: 100%; height: 100%; border: 0; background: linear-gradient(145deg, #3d5932, #0a1215); }
.project-media .upload-project { width: auto; height: auto; padding: 9px 14px; border-radius: 18px; font-size: 11px; }
.project-media .upload-project::after { content: ' 上传图片'; }
.project-meta { position: absolute; inset: auto 0 0; z-index: 2; padding: 70px 24px 24px; background: linear-gradient(transparent, rgba(4,9,11,.95)); }
.project-name { margin: 15px 0 7px; font-size: 23px; }
.project-description { height: 42px; }
.project-result { margin-top: 9px; padding-top: 8px; }
.project-result strong { font-size: 18px; }
.project-card:not(:first-child) .project-description { height: 31px; }
.project-card:not(:first-child) .project-result { display: none; }

/* Skills */
.skills-section { min-height: 900px; padding-top: 135px; padding-bottom: 100px; background: radial-gradient(circle at 85% 35%, rgba(104,145,54,.22), transparent 30%), #0a1114; }
.skill-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-card { min-height: 390px; padding: 28px 24px; border-radius: 20px; overflow: hidden; background: #111b20; }
.skill-card::after { content: '+'; position: absolute; right: 15px; bottom: -36px; color: var(--accent); font: 300 150px/1 'Manrope'; opacity: .78; }
.skill-card:nth-child(even)::after { content: '×'; }
.skill-card input { margin-top: 92px; font-size: 23px; }
.skill-card textarea { position: relative; z-index: 2; height: 100px; margin-top: 17px; font-size: 13px; }
.skill-actions { display: flex; justify-content: center; gap: 12px; margin-top: 45px; }
.skill-actions a { min-width: 126px; border-radius: 24px; }

/* Contact */
.contact-section { min-height: 800px; padding-top: 135px; padding-bottom: 90px; background: radial-gradient(circle at 84% 16%, rgba(87,137,51,.27), transparent 34%), #081216; }
.contact-title-input { width: min(850px, 100%); max-width: none; height: 180px; font-size: clamp(48px, 6vw, 84px); line-height: 1.08; }
.contact-copy-input { height: 60px; }
.contact-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.contact-tag { display: flex; align-items: center; min-height: 38px; padding-left: 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; }
.contact-tag input { width: 110px; border: 0; background: transparent; color: #d9e2dd; font-size: 12px; outline: 0; }
.contact-tag button { width: 30px; align-self: stretch; border-radius: 50%; background: transparent; color: #8f9a95; }
.contact-tag-add { display: block; width: auto !important; margin-left: auto !important; margin-right: auto !important; }
.contact-layout { margin-top: 50px; align-items: stretch; }
.contact-details { width: calc(100% - 260px); align-content: center; grid-template-columns: 90px 1fr; }
.contact-details input { font-size: 25px; }
.qr-shell { width: 205px; border-radius: 20px; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 390px; }
  .tag-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .showcase-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .experience-list { grid-template-columns: 1fr; gap: 18px; }
  .experience-list::before { left: 20px; }
  .experience-card:nth-child(n) { grid-column: 1; margin-left: 55px; }
  .experience-card:nth-child(n) .index { left: -56px; right: auto; }
  .experience-card:nth-child(n) .experience-dates { position: static; width: auto; transform: none; text-align: left; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .section-band { padding-left: 20px; padding-right: 20px; }
  .sidebar.topbar { position: fixed; inset: 8px 0 auto; }
  .topbar .side-nav { width: calc(100vw - 20px); min-height: 44px; padding: 4px; overflow: hidden; }
  .topbar .side-nav a { min-width: 0; height: 34px; padding: 0 5px; font-size: 10px; }
  .hero.section-band { min-height: 1310px; padding-top: 73px; padding-bottom: 34px; }
  .hero-grid { display: flex; width: 100%; min-height: 0; }
  .hero-visual { order: -1; height: 315px; min-height: 315px; }
  .avatar-shell { width: 250px; }
  .availability-card { bottom: 8px; }
  .title-input { height: 62px; font-size: 54px; }
  .english-input { height: 45px; font-size: 38px; }
  .tag-chip { min-height: 70px; }
  .showcase-rail { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
  .showcase-item:nth-child(n+9) { display: none; }
  .showcase-tile { border-radius: 14px; }
  .showcase-actions { gap: 2px; }
  .showcase-actions button { padding: 4px 6px; font-size: 9px; }
  .section-title-input { font-size: 43px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-heading > div { width: 100%; }
  .section-heading .primary-action { align-self: flex-start; }
  .experience-section, .project-section, .skills-section, .contact-section { padding-top: 95px; }
  .experience-card { width: calc(100% - 40px); max-width: calc(100% - 40px); min-width: 0; min-height: 250px; margin-left: 40px !important; padding: 22px; }
  .experience-card > div { min-width: 0; }
  .experience-list::before { left: 11px; }
  .experience-card:nth-child(n) .index { left: -51px; width: 42px; }
  .experience-company { font-size: 20px; }
  .experience-summary { height: 125px; font-size: 12px; }
  .project-list { grid-template-columns: 1fr; grid-template-rows: 430px repeat(2, 260px); }
  .project-card:first-child { grid-row: auto; }
  .skill-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .skill-card { min-height: 310px; padding: 18px 15px; }
  .skill-card input { margin-top: 65px; font-size: 17px; }
  .skill-card textarea { font-size: 11px; }
  .contact-title-input { height: 145px; font-size: 47px; }
  .contact-layout { gap: 18px; }
  .contact-details { width: calc(100% - 120px); grid-template-columns: 1fr; gap: 4px; }
  .contact-details input { margin-bottom: 15px; font-size: 15px; }
  .qr-shell { width: 105px; height: 105px; }
}

/* Screenshot refinement: compact hero and direct-manipulation media rail. */
@media (min-width: 701px) {
  .hero.section-band { min-height: 820px; padding-top: 88px; padding-bottom: 32px; }
  .hero-grid { width: min(100%, 1056px); min-height: 430px; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .8fr); gap: 34px; }
  .hero-copy { max-width: 608px; }
  .title-input { height: 86px; font-size: clamp(54px, 5.6vw, 88px); }
  .english-input { height: 58px; margin-bottom: 13px; font-size: clamp(36px, 3.7vw, 58px); }
  .role-input { height: 37px; font-size: clamp(20px, 1.75vw, 27px); }
  .intro-input { height: 60px; max-width: 536px; font-size: 12px; }
  .hero-actions { margin: 18px 0; }
  .hero-actions .primary-action, .hero-actions .secondary-action { min-height: 43px; padding: 0 21px; font-size: 12px; }
  .tag-editor { max-width: 608px; gap: 8px; }
  .tag-chip { min-height: 62px; padding: 9px 28px 9px 11px; border-radius: 8px; }
  .tag-chip .tag-title { font-size: 11px; }
  .tag-chip .tag-subtitle { margin-top: 3px; font-size: 9px; }
  .hero .add-text-button { margin-top: 9px; padding: 9px 14px; font-size: 11px; }
  .avatar-shell { width: min(28vw, 400px); }
  .availability-card { width: 172px; bottom: 58px; padding: 17px; }
  .availability-card input { font-size: 16px; }
  .showcase-rail { width: min(100%, 1056px); margin-top: 10px; gap: 13px; align-items: end; }
  .rail-controls { width: min(100%, 1056px); }
}

.showcase-item { position: relative; transform-origin: center bottom; }
.showcase-item:nth-child(1) { transform: rotate(-5deg); }
.showcase-item:nth-child(2) { transform: rotate(-3deg); }
.showcase-item:nth-child(3) { transform: rotate(-1.5deg); }
.showcase-item:nth-child(5) { transform: rotate(1.5deg); }
.showcase-item:nth-child(6) { transform: rotate(3deg); }
.showcase-item:nth-child(7) { transform: rotate(4deg); }
.showcase-item:nth-child(8) { transform: rotate(5deg); }
.showcase-item:hover, .showcase-item:focus-within { z-index: 6; transform: translateY(-18px) scale(1.2) rotate(0deg); }
.showcase-tile { border-radius: 20px; }
.showcase-item:hover .showcase-tile, .showcase-item:focus-within .showcase-tile { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 18px 34px rgba(0,0,0,.44); }
.showcase-delete { position: absolute; z-index: 8; top: 9px; right: 9px; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(5,10,12,.88); color: #fff; font-size: 18px; line-height: 1; }
.showcase-delete:hover { background: #fff; color: #0a1012; }
.showcase-actions { display: none !important; }
.rail-controls { gap: 18px; margin-top: 17px; justify-content: flex-start; }
.rail-controls .add-text-button { min-height: 48px; margin: 0; padding: 0 22px; border-radius: 25px; font-size: 15px; font-weight: 700; }
.rail-clear { min-height: 48px; padding: 0 21px; border: 1px solid rgba(255,255,255,.22); border-radius: 25px; font-size: 15px; }
.rail-controls span { margin: 0; font-size: 13px; }

/* Timeline cards use a dark resting state and a green interactive state. */
.experience-section .section-heading { margin-top: -20px; }
.experience-section .section-title-input { font-size: clamp(48px, 5.45vw, 76px); }
.experience-card, .experience-card:nth-child(even) { background: #1b222b; border-color: rgba(255,255,255,.18); }
.experience-card:hover, .experience-card:focus-within { background: rgba(86,125,58,.42); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.experience-card .index { width: 46px; height: 46px; border: 6px solid #071117; background: var(--accent); color: #071117; font-weight: 900; box-shadow: 0 0 0 2px var(--accent); }
.experience-dates { color: var(--accent) !important; }
.experience-controls { width: min(100%, 1320px); margin: 46px auto 0; display: flex; align-items: center; gap: 22px; }
.experience-controls .add-text-button { min-height: 62px; margin: 0; padding: 0 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 34px; background: rgba(77,111,65,.45); color: #eef3ed; font-size: 21px; }
.experience-controls span { color: #7f8b87; font-size: 15px; }

/* Advantage cards: strong typography and a clear selected state. */
.skill-card { border-color: rgba(255,255,255,.18); transition: background .2s ease, color .2s ease, transform .2s ease; }
.skill-card input { font-size: clamp(20px, 1.8vw, 30px); font-weight: 800; }
.skill-card textarea { font-size: clamp(12px, 1vw, 17px); line-height: 1.75; }
.skill-card:hover, .skill-card:focus-within { background: var(--accent); color: #071117; border-color: var(--accent); transform: translateY(-6px); }
.skill-card:hover input, .skill-card:hover textarea, .skill-card:hover .index,
.skill-card:focus-within input, .skill-card:focus-within textarea, .skill-card:focus-within .index { color: #071117; }
.skill-card:hover::after, .skill-card:focus-within::after { color: #071117; }

/* Contact composition mirrors the supplied two-column reference. */
.contact-section { position: relative; min-height: 900px; }
.contact-section > .field-label, .contact-section > .contact-tags, .contact-section > .contact-tag-add, .contact-section > .contact-layout { max-width: 1320px; }
.contact-title-input { width: min(720px, calc(100% - 350px)); height: 180px; font-weight: 500; }
.contact-copy-input { width: min(720px, calc(100% - 350px)); max-width: none; }
.contact-tags { width: min(720px, calc(100% - 350px)) !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-tag { min-width: 0; }
.contact-tag input { width: 100%; min-width: 0; }
.contact-tag-add { width: auto !important; min-height: 38px; margin: 0 !important; border-radius: 22px; }
.contact-layout { margin-top: 42px; display: block; }
.contact-details { width: min(720px, calc(100% - 350px)); }
.qr-shell { position: absolute; top: 211px; right: max(40px, calc((100vw - 1320px) / 2)); width: 280px; border: 1px solid rgba(255,255,255,.2); background: rgba(25,34,30,.88); color: #eef3ed; }
.qr-shell img { width: calc(100% - 42px); height: calc(100% - 42px); margin: 21px; object-fit: contain; background: #fff; }
.qr-upload { width: 39px; height: 39px; }

@media (max-width: 1050px) {
  .contact-title-input, .contact-copy-input, .contact-tags { width: 100% !important; }
  .contact-layout { display: flex; }
  .contact-details { width: calc(100% - 150px); }
  .qr-shell { position: relative; inset: auto; width: 130px; }
  .experience-controls { margin-top: 30px; }
}

@media (max-width: 700px) {
  .showcase-item { transform: none !important; }
  .showcase-item:hover, .showcase-item:focus-within { transform: translateY(-7px) scale(1.07) !important; }
  .showcase-delete { top: 5px; right: 5px; width: 22px; height: 22px; font-size: 14px; }
  .rail-controls { flex-wrap: wrap; gap: 9px; }
  .rail-controls .add-text-button, .rail-clear { min-height: 40px; padding: 0 15px; font-size: 12px; }
  .experience-section .section-heading { margin-top: -20px; }
  .experience-controls { margin-top: 25px; gap: 12px; }
  .experience-controls .add-text-button { min-height: 48px; padding: 0 20px; font-size: 16px; }
  .experience-controls span { font-size: 12px; }
  .contact-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
