/* ===全局设置=== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f2efef;
    --bg-elevated: #ffffff;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===导航栏样式=== */
nav {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 2rem;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 0.75rem;
}

.nav-links li a:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

/* ===Hero=== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.3) 40%,
        transparent 100%
    );
    pointer-events: none;
}

.hero-content {
    color: #ffffff;
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}


.hero h1 {
    font-size: clamp(2rem, 6vw, 12rem);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    color: #ffffff;
    font-size: 1.5rem;
    font-size: bold;
    background-color: rgba(255,255,255,0.15);
    padding: 0.75rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ===精选卡片=== */
.selected-portfolio {
    padding: 1rem 3rem;
}

.selected-works {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.work-card {
    cursor: pointer;
    background: var(--bg-elevated);
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.work-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.workinfo {
    font-size: 1rem;
    font-weight: 700;
    font-family: fangsong;
    text-align: center;
    padding: 0.75rem 1rem;
}

.dynasty {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.work-card:hover {   
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.work-card:hover img {
    transform: scale(1.05);
}

/* ===关于=== */

.about {
    text-align: center;
    padding: 1.5rem;
    margin:1.5rem 0;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
}

/* ===页脚=== */

footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1.5rem;
    background-color: var(--bg-elevated);
    text-align: center;
}

footer a:hover {
    color: var(--text);
}

/* ===响应式=== */

@media (max-width: 600px) {
    .sel-portfolio {
        padding: 1rem;
    }
}