:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #ecf0f1;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    opacity: 0;
    animation: pageEnter 0.8s ease forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(44, 62, 80, 0.02) 0%, transparent 30%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, 20px) scale(1.02);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
}

.avatar-container {
    margin-bottom: 32px;
    animation: avatarEnter 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

@keyframes avatarEnter {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(44, 62, 80, 0.2);
    transition: var(--transition-smooth);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 50px rgba(44, 62, 80, 0.25);
}

.avatar-text {
    font-size: 48px;
    font-weight: 300;
    color: #fff;
    font-family: 'Noto Serif SC', serif;
}

.hero-title {
    font-size: 56px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 8px;
    margin-bottom: 16px;
    font-family: 'Noto Serif SC', serif;
    animation: titleEnter 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes titleEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 4px;
    margin-bottom: 32px;
    animation: subtitleEnter 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes subtitleEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    animation: tagsEnter 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes tagsEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag {
    padding: 8px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    font-size: 13px;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.tag:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: scrollEnter 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
    cursor: pointer;
}

@keyframes scrollEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-indicator span {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(8px);
    }
}

/* Main Content */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 30px;
}

.section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 2;
}

.about-text .highlight {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.about-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(52, 152, 219, 0.15);
    z-index: -1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 300;
    color: var(--primary-color);
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Project Section */
.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-4px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    font-family: 'Noto Serif SC', serif;
}

.project-title-wrap h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    font-size: 12px;
    border-radius: 12px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 24px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tech-tag {
    padding: 6px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.project-features {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-col {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.feature-icon-small {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

/* Tech Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tech-category {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.tech-category:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.tech-category-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tech-name {
    font-size: 14px;
    color: var(--text-color);
    min-width: 100px;
}

.tech-level {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-left: 16px;
}

.level-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #5dade2);
    border-radius: 3px;
    transition: width 1.5s ease;
    width: 0;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--border-color);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--bg-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.feature-svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Architecture Section */
.architecture-content {
    display: flex;
    justify-content: center;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.arch-layer {
    text-align: center;
}

.arch-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.arch-boxes {
    display: flex;
    gap: 12px;
}

.arch-box {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.arch-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.arch-arrow {
    padding: 12px 0;
}

.arch-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--border-color);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--border-color), var(--accent-color), var(--border-color));
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
    padding-left: calc(50% + 40px);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    background: var(--accent-color);
}

.timeline-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    box-shadow: var(--card-shadow);
    transform: translateX(8px);
}

.timeline-date {
    display: inline-block;
    font-size: 13px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
}

.gallery-item {
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--hover-shadow);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
    height: 420px;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.gallery-placeholder span {
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.icp {
    font-size: 13px;
    color: var(--text-light);
}

.icp a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.icp a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 40px;
        letter-spacing: 4px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .hero-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .arch-boxes {
        flex-direction: column;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 160px);
    }
    
    .gallery-item-large {
        grid-column: span 1;
    }
    
    .main {
        padding: 60px 20px;
    }
    
    .section {
        margin-bottom: 60px;
    }
}
