:root {
    --color-bg-header: #1a1f2e;
    --color-bg-body: #f8f6f2;
    --color-accent-primary: #e85d26;
    --color-accent-secondary: #2d6a4f;
    --color-text-main: #333333;
    --color-text-light: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-persona: #f0ede8;
    
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--color-bg-header);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-primary);
}

header {
    position: relative;
    background-color: var(--color-bg-header);
    color: var(--color-text-light);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/rockclimbingwall-background.png');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: 0;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 31, 46, 0.75), rgba(26, 31, 46, 0.6));
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

header h1 {
    color: var(--color-text-light);
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-family: var(--font-heading);
    font-style: italic;
}

nav {
    position: sticky;
    top: 0;
    background: var(--color-bg-header);
    border-bottom: none;
    z-index: 100;
    padding: 0.75rem 0;
}

nav ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-group {
    position: relative;
}

.nav-label {
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.nav-label:hover {
    color: var(--color-accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-header);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 200;
}

.nav-submenu li {
    display: block;
}

.nav-submenu a {
    display: block;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-submenu a:hover {
    color: var(--color-accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-group:hover .nav-submenu {
    display: block;
}

.nav-hamburger {
    display: none;
}

@media (max-width: 900px) {
    .nav-main {
        gap: 0.2rem;
    }
    .nav-label {
        padding: 0.5rem 0.6rem;
        font-size: 0.9rem;
    }
    .nav-submenu {
        min-width: 160px;
    }
    .nav-submenu a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0.6rem 1.2rem;
    }

    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.4rem;
        z-index: 300;
    }

    .nav-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-text-light);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-main {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg-header);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        z-index: 250;
        overflow-y: auto;
    }

    .nav-main.open {
        display: flex;
    }

    .nav-overlay {
        display: none;
    }

    .nav-group {
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .nav-label {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 0.75rem 2rem;
        width: 100%;
        text-align: center;
    }

    .nav-submenu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: none;
        padding: 0.25rem 0 0.5rem;
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .nav-group.mobile-open .nav-submenu {
        display: block;
    }

    .nav-submenu a {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.6);
        padding: 0.3rem 1rem;
        text-align: center;
    }

    .nav-submenu a:hover {
        color: var(--color-accent-primary);
        background: none;
    }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem var(--spacing-md);
    gap: 2rem;
}

nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-accent-primary);
}

section {
    padding: var(--spacing-xl) 0;
}

section:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

#hero {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

#hero h2::after {
    display: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.member-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--color-bg-body);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.member-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.student-id {
    color: var(--color-accent-secondary);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.intro {
    font-size: 0.95rem;
    color: #555;
}

/* ===== Rich Persona Cards ===== */
.persona-card-rich {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.persona-card-rich:last-child {
    margin-bottom: 0;
}

.persona-banner {
    background-color: var(--color-accent-primary);
    color: white;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: bold;
}

.persona-name {
    font-weight: normal;
    opacity: 0.9;
}

.persona-body {
    display: grid;
    grid-template-columns: 240px 1fr 260px;
    gap: 2rem;
    padding: 2rem;
}

.persona-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.persona-avatar {
    width: 210px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-body);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;           /* 确保溢出隐藏 */
    position: relative;         /* 添加相对定位 */
    flex-shrink: 0;            /* 防止在flex容器中被压缩 */
}

/* 修复图片样式 - 使用更具体的选择器 */
.persona-avatar img,
.persona-avatar .persona-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    /* 移除可能导致问题的属性 */
    max-width: none !important;
    min-width: 0 !important;
    max-height: none !important;
    min-height: 0 !important;
}

.persona-caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.persona-profile {
    border: 2px solid var(--color-accent-primary);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.persona-profile p {
    margin-bottom: 0.4rem;
    color: var(--color-text-main);
}

.persona-profile strong {
    color: var(--color-accent-primary);
}

.persona-personality {
    width: 100%;
    text-align: left;
}

.persona-personality h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.8rem;
}

.personality-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    color: #555;
}

.personality-slider span {
    min-width: 55px;
    flex-shrink: 0;
}

.personality-slider span:last-child {
    text-align: right;
}

.slider-track {
    flex: 1;
    height: 8px;
    background: #e0ddd8;
    border-radius: 4px;
    position: relative;
}

.slider-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--color-accent-secondary);
    border-radius: 3px;
}

.persona-center {
    display: flex;
    flex-direction: column;
}

.persona-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--color-accent-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.persona-goals,
.persona-frustrations {
    margin-bottom: 1.5rem;
}

.persona-goals h4,
.persona-frustrations h4,
.persona-bio h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.6rem;
}

.persona-goals ul,
.persona-frustrations ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.persona-goals li,
.persona-frustrations li {
    margin-bottom: 0.3rem;
}

.persona-bio {
    background: #f0ede8;
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: auto;
}

.persona-bio p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.persona-right {
    display: flex;
    flex-direction: column;
}

.persona-bars {
    margin-bottom: 1.5rem;
}

.persona-bars h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent-primary);
    margin-bottom: 0.8rem;
}

.bar-item {
    margin-bottom: 0.6rem;
}

.bar-item span {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.2rem;
}

.bar-track {
    height: 10px;
    background: #e0ddd8;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--color-accent-primary);
    border-radius: 5px;
}

.bar-fill.secondary {
    background: var(--color-accent-secondary);
}

@media (max-width: 960px) {
    .persona-body {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .persona-left {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
        text-align: left;
        align-items: flex-start;
    }
    .persona-avatar {
        width: 120px;
        height: 160px;
        font-size: 3.5rem;
    }
    .persona-caption {
        flex: 1;
        min-width: 150px;
    }
    .persona-profile {
        width: auto;
        flex: 1;
        min-width: 200px;
    }
    .persona-personality {
        width: auto;
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .persona-body {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 1rem;
    }
    .persona-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .persona-banner {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem;
    }
}

/* ===== Customer Journey Map ===== */
.journey-intro {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

#journey .container {
    max-width: 1400px;
}

.journey-map-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: 1.2rem;
}

.journey-map-img {
    width: 100%;
    height: auto;
    display: block;
}

.journey-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.journey-highlight-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem 1.3rem 1.3rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid transparent;
}

.journey-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.11);
}

/* Give each card a top accent matching its stage colour */
.journey-highlight-card:nth-child(1) { border-top-color: #4a9cc7; }
.journey-highlight-card:nth-child(2) { border-top-color: #e07b2a; }
.journey-highlight-card:nth-child(3) { border-top-color: #5aac8e; }
.journey-highlight-card:nth-child(4) { border-top-color: #e85d26; }
.journey-highlight-card:nth-child(5) { border-top-color: #7b5ea7; }

.journey-stage-label {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    align-self: flex-start;
}

.journey-stage-label.awareness    { background-color: #4a9cc7; }
.journey-stage-label.consideration { background-color: #e07b2a; }
.journey-stage-label.service      { background-color: #5aac8e; }
.journey-stage-label.loyalty      { background-color: #e85d26; }
.journey-stage-label.growth       { background-color: #7b5ea7; }

.journey-highlights.five-col {
    grid-template-columns: repeat(5, 1fr);
}

.journey-design-label {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
    margin-bottom: 1.8rem;
    letter-spacing: 0.01em;
}

.journey-insight {
    font-size: 0.84rem;
    color: #777;
    line-height: 1.6;
    border-left: 3px solid #d8d4ce;
    padding: 0.3rem 0 0.3rem 0.75rem;
    font-style: italic;
    margin: 0;
}

.journey-feature-block {
    background: #f7f5f1;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.6;
    flex: 1;
}

.journey-feature-block p {
    margin: 0;
}

.feature-chip {
    display: inline-block;
    background: var(--color-accent-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    align-self: flex-start;
    text-transform: uppercase;
}

.journey-design-note {
    background: #f0f7f4;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    font-size: 0.81rem;
    color: #555;
    line-height: 1.55;
}

.journey-design-note strong {
    color: var(--color-accent-secondary);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.79rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.journey-touchpoint {
    font-size: 0.82rem;
    color: #666;
    border-left: 3px solid var(--color-accent-primary);
    padding-left: 0.6rem;
}

.emotion-pill {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    background: #f0ede8;
    color: #333;
    font-weight: 600;
}

.journey-opportunity {
    background: #fff8f5;
    border-left: 3px solid var(--color-accent-primary);
    padding: 0.5rem 0.7rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    margin-top: auto;
}

@media (max-width: 1300px) {
    .journey-highlights.five-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .journey-highlights,
    .journey-highlights.five-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .journey-highlights,
    .journey-highlights.five-col {
        grid-template-columns: 1fr;
    }
}

/* ===== The Gap ===== */
.gap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.gap-col h3 {
    font-size: 1.4rem;
    color: var(--color-accent-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent-primary);
}

.gap-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.gap-card h4 {
    font-size: 1rem;
    color: var(--color-bg-header);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
}

.gap-card h4 .gap-year {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.gap-list {
    list-style: none;
    padding: 0;
    font-size: 0.88rem;
    line-height: 1.55;
}

.gap-list li {
    padding: 0.25rem 0 0.25rem 1.4rem;
    position: relative;
    color: #444;
}

.gap-list.did-well li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2d9e6b;
    font-weight: 700;
}

.gap-list.missed li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #d94f3d;
    font-weight: 700;
}

.gap-list-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin: 0.8rem 0 0.3rem;
}

@media (max-width: 768px) {
    .gap-grid { grid-template-columns: 1fr; }
}

/* ===== Requirements List ===== */
ul.requirements-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

ul.requirements-list li {
    background: #fff;
    border-radius: 10px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-top: 4px solid var(--color-accent-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

ul.requirements-list li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-bg-header);
    margin-bottom: 0.5rem;
}

.req-source {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-accent-secondary);
    border: 1.5px solid var(--color-accent-secondary);
    border-radius: 4px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.6rem;
}

@media (max-width: 768px) {
    ul.requirements-list { grid-template-columns: 1fr; }
}

/* ===== Design Alternatives ===== */
.alternatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.alternative-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alternative-card h3 {
    font-size: 1.1rem;
    color: var(--color-bg-header);
}

.alt-option {
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.alt-option.rejected {
    background: #fff0ee;
    border-left: 3px solid #d94f3d;
    color: #555;
    text-decoration-color: #d94f3d;
}

.alt-option.chosen {
    background: #eef8f3;
    border-left: 3px solid #2d9e6b;
    font-weight: 600;
    color: #1a4a30;
}

.alt-option .opt-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    display: block;
}

.alt-option.rejected .opt-label { color: #d94f3d; }
.alt-option.chosen .opt-label   { color: #2d9e6b; }

.alt-req-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-accent-secondary);
    border: 1.5px solid var(--color-accent-secondary);
    border-radius: 4px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.alt-reason {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .alternatives-grid { grid-template-columns: 1fr; }
}

/* ===== Usability Testing ===== */
.testing-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tester-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tester-card h3 {
    font-size: 1rem;
    color: var(--color-accent-primary);
    font-family: var(--font-body);
    margin-bottom: 0;
}

.tester-profile {
    font-size: 0.82rem;
    color: #888;
}

.tester-findings h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.6rem 0 0.3rem;
}

.tester-findings h4.positive { color: #2d9e6b; }
.tester-findings h4.negative { color: #d94f3d; }

.tester-findings ul {
    padding-left: 1.1rem;
    font-size: 0.87rem;
    color: #444;
    line-height: 1.55;
}

.tester-findings li { margin-bottom: 0.25rem; }

.testing-summary {
    margin-top: 2.5rem;
    background: #fff;
    border-radius: 10px;
    padding: 1.8rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.testing-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.summary-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.summary-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid currentColor;
}

.summary-col.strengths h4 { color: #2d9e6b; border-color: #2d9e6b; }
.summary-col.improvements h4 { color: #d94f3d; border-color: #d94f3d; }

.summary-col ul {
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .testing-results  { grid-template-columns: 1fr; }
    .summary-cols     { grid-template-columns: 1fr; }
}

/* ===== Section Tag ===== */
.section-tag {
    display: inline-block;
    background: var(--color-accent-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ===== The Why ===== */
.why-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.2rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Crazy Sevens sketches grid ===== */
.sketches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sketch-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    aspect-ratio: 9 / 16;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sketch-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.sketch-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

@media (max-width: 960px) {
    .sketches-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .sketches-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Prototype link box ===== */
.prototype-link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.prototype-link-box a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--color-accent-primary);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(232, 93, 38, 0.35);
}

.prototype-link-box a:hover {
    background: #c94d1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 38, 0.4);
}

.proto-icon { font-size: 1.3rem; }
.proto-arrow { font-size: 1.2rem; }

.proto-url {
    font-size: 0.85rem;
    color: #999;
    font-family: monospace;
}

.lofi-diagram {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 1.5rem;
}

.lofi-diagram img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.architecture-diagram {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 1.5rem;
}

.architecture-diagram img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ===== Evidence of Life Carousel ===== */
.evidence-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
}

.carousel-slide.active {
    display: flex;
}

.evidence-media {
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    padding: 2rem;
    background: #f5f3ef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-media img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-container {
    background: #1a1f2e;
}

.video-container video {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.evidence-caption {
    padding: 1.5rem 2rem;
    text-align: center;
    background: #fff;
}

.evidence-caption h3 {
    font-size: 1.3rem;
    color: var(--color-bg-header);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.evidence-caption p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Carousel Navigation */
.carousel-arrow {
    position: absolute;
    top: 250px;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-bg-header);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--color-accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 0 1.5rem;
    background: #fff;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--color-accent-primary);
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: var(--color-accent-secondary);
}

/* Slide Counter */
.carousel-counter {
    position: absolute;
    bottom: 5.5rem;
    right: 2rem;
    background: rgba(26, 31, 46, 0.85);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    z-index: 5;
}

.carousel-counter .current {
    color: var(--color-accent-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .evidence-media {
        height: 350px;
    }
    
    .carousel-arrow {
        top: 175px;
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
    
    .evidence-caption {
        padding: 1.2rem 1.5rem;
    }
    
    .evidence-caption h3 {
        font-size: 1.1rem;
    }
    
    .evidence-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-counter {
        bottom: 5rem;
        right: 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .evidence-media {
        height: 280px;
    }
    
    .carousel-arrow {
        top: 140px;
        width: 36px;
        height: 36px;
    }
    
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

.contributions-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contributions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.contributions-table thead {
    background: var(--color-bg-header);
    color: var(--color-text-light);
}

.contributions-table th {
    padding: 1rem 1.2rem;
    text-align: left;
    font-weight: 600;
    font-family: var(--font-heading);
}

.contributions-table th:first-child {
    text-align: center;
}

.contributions-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.contributions-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--color-bg-header);
    border-left: 4px solid var(--color-accent-primary);
}

.contributions-table tbody tr:hover {
    background: #f9f9f9;
}

.contributions-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .contributions-table-wrapper {
        overflow-x: auto;
    }
    
    .contributions-table {
        min-width: 600px;
    }
}

/* Iterative Refinement - UI Improvements Section */
#iterative-refinement {
    background: linear-gradient(135deg, #f8f6f2 0%, #f0ede8 100%);
    padding: 4rem 0;
}

.improvement-section {
    margin-bottom: 3rem;
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.improvement-section:last-child {
    margin-bottom: 0;
}

.improvement-title {
    font-size: 1.5rem;
    color: var(--color-bg-header);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-accent-primary);
    display: inline-block;
}

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.before-after-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.before-after-card h4 {
    background: var(--color-bg-header);
    color: var(--color-text-light);
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1rem;
    text-align: center;
    font-family: var(--font-body);
}

.before-after-card:nth-child(2) h4 {
    background: var(--color-accent-secondary);
}

.screenshot-wrapper {
    padding: 0.75rem;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-wrapper img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.improvement-details {
    padding: 1rem;
}

.improvement-details ul {
    padding-left: 1.2rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.improvement-details li {
    margin-bottom: 0.4rem;
}

.issue-label {
    font-weight: 600;
    color: #c0392b;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.improvement-label {
    font-weight: 600;
    color: var(--color-accent-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive adjustments for UI improvements */
@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .improvement-section {
        padding: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .improvement-title {
        font-size: 1.3rem;
    }

    .screenshot-wrapper img {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .screenshot-wrapper img {
        max-width: 200px;
    }
}

/* Technical Reflection Styles */
.tech-examples {
    margin-top: 2rem;
}

.tech-example {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--color-bg-card);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tech-example h3 {
    color: var(--color-accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tech-subsection {
    margin-bottom: 2rem;
}

.tech-subsection h4 {
    color: var(--color-bg-header);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.chinese-collapse {
    margin-bottom: 1rem;
}

.chinese-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.chinese-toggle:hover {
    background: #f5f5f5;
    border-color: var(--color-accent-primary);
}

.chinese-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.chinese-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.chinese-content.expanded {
    max-height: 500px;
    padding: 1rem;
}

.chinese-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.status-success {
    color: #22c55e;
    font-weight: 600;
}

.status-warning {
    color: #f59e0b;
    font-weight: 600;
}

.tech-subsection ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.tech-subsection li {
    margin-bottom: 0.5rem;
}

.tech-subsection code {
    background: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #d73a49;
}

.existing-analysis {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}
/* ===== Final Reflection ===== */
.reflection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.reflection-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.reflection-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.reflection-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-heading, #1a1a1a);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.reflection-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.reflection-card strong {
    color: var(--color-accent-primary, #FF6B35);
}

.reflection-card em {
    font-style: italic;
    color: #555;
}

@media (max-width: 768px) {
    .reflection-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}
