        /* ===== 全局重置 & 基础 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #2c2e29;
            --primary-dark: #4450a0;
            --secondary: #f0f4ff;
            --text-dark: #1e1e2f;
            --text-light: #4a4a6a;
            --white: #ffffff;
            --gray-bg: #f8f9fe;
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            --radius: 16px;
            --transition: 0.3s ease;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--gray-bg);
            color: var(--text-dark);
            line-height: 1.6;
        }

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

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== 导航栏 ===== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
            z-index: 1000;
            padding: 14px 0;
            transition: var(--transition);
        }

        header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: -0.5px;
        }

        .logo span {
            color: var(--text-dark);
        }

        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-light);
            transition: var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: var(--transition);
        }

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

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-toggle {
            display: none;
            font-size: 1.5rem;
            color: var(--text-dark);
            background: none;
            border: none;
            cursor: pointer;
        }

        /* ===== 英雄区 ===== */
        .hero {
            padding: 140px 0 80px;
            background: linear-gradient(135deg, #ffc251 0%, #2C2E29 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;

            position: relative;
            overflow: hidden;
        }

        .hero-video{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;    铺满不变形
            z-index: 0;
        }

        .hero .container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;

            position: relative;
            z-index: 1;
        }

        .hero-content h1 {
            font-size: 3.2rem;
            font-weight: 800;
            line-height: 1.15;
            margin-bottom: 8px;
        }

        .hero-content h1 .highlight {
            color: var(--primary);
        }

        .hero-content .subtitle {
            font-size: 1.2rem;
            color: var(--text-light);
            margin-top: 8px;
            margin-bottom: 20px;
            font-weight: 400;
        }

        .hero-content .bio {
            font-size: 1rem;
            color: var(--text-light);
            max-width: 440px;
            margin-bottom: 32px;
        }

        .hero-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            background: var(--white);
            color: var(--text-dark);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .btn-primary {
            background: var(--primary);
            color: var(--white);
            box-shadow: 0 6px 20px rgba(91, 106, 191, 0.35);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(91, 106, 191, 0.4);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: var(--white);
            transform: translateY(-2px);
        }

        .hero-avatar {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .avatar-wrapper {
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), #8b9cf7);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 20px 60px rgba(91, 106, 191, 0.25);
            position: relative;
        }

        .avatar-wrapper img {
            width: 92%;
            height: 92%;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--white);
            background: var(--white);
        }

        .avatar-placeholder {
            width: 92%;
            height: 92%;
            border-radius: 50%;
            background: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
            font-weight: 600;
            color: var(--primary);
            border: 4px solid var(--white);
        }

        .social-icons {
            display: flex;
            gap: 16px;
            margin-top: 28px;
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: var(--white);
            color: var(--text-light);
            font-size: 1.2rem;
            transition: var(--transition);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .social-icons a:hover {
            background: var(--primary);
            color: var(--white);
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(91, 106, 191, 0.3);
        }

        /* ===== 通用标题 ===== */
        .section-title {
            font-size: 2.2rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 12px;
        }

        .section-sub {
            text-align: center;
            color: var(--text-light);
            margin-bottom: 48px;
            font-size: 1.05rem;
        }

        section {
            padding: 80px 0;
        }

        /* ===== 技能 ===== */
        #skills {
            background: var(--white);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 28px;
            max-width: 780px;
            margin: 0 auto;
        }

        .skill-card {
            background: var(--gray-bg);
            padding: 24px 16px;
            border-radius: var(--radius);
            text-align: center;
            transition: var(--transition);
            border: 1px solid transparent;
        }

        .skill-card:hover {
            transform: translateY(-6px);
            border-color: var(--primary);
            box-shadow: var(--shadow);
        }

        .skill-card i {
            font-size: 2.6rem;
            color: var(--primary);
            margin-bottom: 12px;
        }

        .skill-card h4 {
            font-weight: 600;
            font-size: 1rem;
        }

        /* ===== 作品集 ===== */
        #projects {
            background: var(--gray-bg);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 32px;
        }

        .project-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid rgba(0, 0, 0, 0.02);
        }

        .project-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
        }

        .project-cover {
            height: 180px;
            background: linear-gradient(135deg, #e8edff, #d5deff);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--primary);
        }

        .project-cover .fa-folder-open {
            opacity: 0.5;
            font-size: 4rem;
        }

        .project-body {
            padding: 24px 24px 28px;
        }

        .project-body h3 {
            font-size: 1.2rem;
            margin-bottom: 6px;
        }

        .project-body p {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 16px;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .project-tags span {
            background: var(--gray-bg);
            padding: 4px 14px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-light);
        }

        /* ===== 联系 ===== */
        #contact {
            background: var(--white);
        }

        .contact-wrapper {
            display: flex;
            flex-direction: column;     /* 纵向排列 */
            align-items: center;
            align-items: center;        /* 水平居中子项 */
            max-width: 900px;
            margin: 0 auto;
            gap: 0;                    /* 移除原来的 gap，如有需要可保留 */
        }

        .contact-info {
            max-width: 600px;          /* 控制内容宽度，避免过宽 */
            width: 100%;
            text-align: center;
        }

        .contact-info h3 {
            font-size: 1.4rem;
            margin-bottom: 12px;
        }

        .contact-info p {
            color: var(--text-light);
            margin-bottom: 24px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 14px;
            margin-bottom: 16px;
        }

        .contact-item i {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            background: var(--gray-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1rem;
        }

        .contact-item a {
            color: var(--text-dark);
            font-weight: 500;
            transition: var(--transition);
            margin: 0 0 0 27.5%;
        }
        
        .contact-item a:hover {
            color: var(--primary);
        }

        .address{
            margin: 0 35%;
        }

        .qq{
            margin: 0 31.5%;
        }
        
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .contact-form input,
        .contact-form textarea {
            padding: 14px 18px;
            border: 2px solid #eef2f7;
            border-radius: 12px;
            font-size: 0.95rem;
            font-family: inherit;
            background: var(--gray-bg);
            transition: var(--transition);
            outline: none;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: var(--primary);
            background: var(--white);
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 130px;
        }

        .contact-form .btn {
            align-self: flex-start;
        }

        /* ===== 页脚 ===== */
        footer {
            background: var(--text-dark);
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
            padding: 32px 0;
            font-size: 0.9rem;
        }

        footer .heart {
            color: #ff6b8a;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 900px) {
            .hero .container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-content .bio {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-buttons {
                justify-content: center;
            }

            .social-icons {
                justify-content: center;
            }

            .avatar-wrapper {
                width: 240px;
                height: 240px;
            }

            .hero-content h1 {
                font-size: 2.6rem;
            }

            .contact-wrapper {
                grid-template-columns: 1fr;
            }

            .contact-form .btn {
                align-self: center;
            }
        }

        @media (max-width: 700px) {
            .nav-links {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(12px);
                flex-direction: column;
                justify-content: center;
                gap: 28px;
                transform: translateX(100%);
                transition: 0.4s ease;
                z-index: 999;
            }

            .nav-links.open {
                transform: translateX(0);
            }

            .nav-toggle {
                display: block;
                z-index: 1001;
            }

            .hero {
                padding: 120px 0 60px;
                min-height: auto;
            }

            .hero-content h1 {
                font-size: 2.2rem;
            }

            .avatar-wrapper {
                width: 180px;
                height: 180px;
            }

            .section-title {
                font-size: 1.8rem;
            }

            section {
                padding: 56px 0;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 400px) {
            .hero-content h1 {
                font-size: 1.8rem;
            }

            .btn {
                padding: 10px 20px;
                font-size: 0.85rem;
            }
        }