* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #4A90E2;
    --secondary: #7ED0E8;
    --accent: #FFCC00;
    --light: #F5F9FF;
    --dark: #2C3E50;
    --gray: #7F8C8D;
    --footer-bg: #2C3E50;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* 状态颜色变量 */
    --status-aside-bg: rgba(78, 205, 196, 0.2);
    --status-aside-color: #4ECDC4;
    --status-finished-bg: rgba(78, 205, 196, 0.2);
    --status-finished-color: #4ECDC4;
    --status-ongoing-bg: rgba(255, 126, 95, 0.2);
    --status-ongoing-color: #FF7E5F;
    --status-planning-bg: rgba(255, 204, 0, 0.2);
    --status-planning-color: #b69500;
    --status-dreaming-bg: rgba(255, 204, 0, 0.2);
    --status-dreaming-color: #b69500;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: var(--white);
    padding: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: float 8s infinite linear;
}

@keyframes float {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo i {
    margin-right: 10px;
    font-size: 32px;
}


.language-switch {
    color: var(--primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.language-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 导航栏样式 */
.header-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
    gap: 20px;
    align-items: center;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}

.weather-item, .external-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.external-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.external-nav a:hover i {
    transform: scale(1.2);
}

.external-nav a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: var(--transition);
    opacity: 0;
}

.external-nav a:hover::after {
    opacity: 1;
    transform: rotate(30deg) translate(10%, 10%);
}

.external-nav {
    display: flex;
    gap: 15px;
}

/* 头部内容 */
.header-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--white);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    animation: bounce 3s infinite;
}

.avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.avatar-large img:hover {
    transform: scale(1.05);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.header-info {
    flex: 1;
}

.header-info h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.header-info h1:hover {
    color: var(--accent);
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.header-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 主要内容区域 */
main {
    padding: 60px 0;
    display: flex;
    gap: 40px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
    height: fit-content;
}

.sidebar-nav {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-nav h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    display: block;
    padding: 10px 15px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.sidebar-links a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary);
}

.sidebar-links a.active {
    background: rgba(74, 144, 226, 0.15);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-links a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.content {
    flex: 1;
}

/* 内容区块 */
section {
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray);
}

/* 卡片和网格布局 */
.card-grid, .tech-grid {
    display: grid;
    gap: 25px;
}

.card-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.description-card, .card, .tech-item, .hobby-card, .quote-card, .thank-you-card {
    background: var(--light);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.description-card, .card, .quote-card {
    border-top: 5px solid var(--secondary);
}

.card:hover, .tech-item:hover, .hobby-card:hover, .quote-card:hover, .thank-you-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3, .hobby-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i, .hobby-icon {
    color: var(--primary);
}

.hobby-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.tech-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}


/* 状态标签 */
.project-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.tech-stack-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 具体状态样式 - 与枚举值对应 */
.project-status.aside {
    background: var(--status-aside-bg);
    color: var(--status-aside-color);
    border-color: color-mix(in srgb, var(--status-aside-color) 30%);
}

.project-status.finished {
    background: var(--status-finished-bg);
    color: var(--status-finished-color);
    border-color: color-mix(in srgb, var(--status-finished-color) 30%);
}

.project-status.ongoing {
    background: var(--status-ongoing-bg);
    color: var(--status-ongoing-color);
    border-color: color-mix(in srgb, var(--status-ongoing-color) 30%);
}

.project-status.planning {
    background: var(--status-planning-bg);
    color: var(--status-planning-color);
    border-color: color-mix(in srgb, var(--status-planning-color) 30%);
}

.project-status.dreaming {
    background: var(--status-dreaming-bg);
    color: var(--status-dreaming-color);
    border-color: color-mix(in srgb, var(--status-dreaming-color) 30%);
}

/* 精通 - 最高级别 */
.status.proficient {
    background: rgba(255, 126, 95, 0.2);
    color: #FF7E5F;
    border: 1px solid rgba(255, 126, 95, 0.3);
}

/* 熟练 - 高级别 */
.tech-stack-status.expert {
    background: rgba(78, 205, 196, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* 熟悉 - 中级别 */
.tech-stack-status.competent {
    background: rgba(74, 144, 226, 0.2);
    color: #4A90E2;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

/* 了解 - 初级 */
.tech-stack-status.novice {
    background: rgba(155, 81, 224, 0.2);
    color: #9B51E0;
    border: 1px solid rgba(155, 81, 224, 0.3);
}

/* 计划中 - 规划状态 */
.tech-stack-status.planning {
    background: rgba(255, 204, 0, 0.2);
    color: #b69500;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

/* 幻想时间 - 趣味状态 */
.tech-stack-status.dreaming {
    background: rgba(255, 105, 180, 0.2);
    color: #FF69B4;
    border: 1px solid rgba(255, 105, 180, 0.3);
    font-style: italic;
}

/* 爱好项目样式 */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.item-card {
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0 20px;
    text-decoration: none;
    color: var(--white);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.item-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    z-index: 1;
}

.item-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(245, 249, 255, 0.15) 50%,
            rgba(245, 249, 255, 0.4) 65%,
            var(--light) 75%,
            var(--light) 100%
    );
    transition: var(--transition);
}

.item-card:hover .item-bg {
    transform: scale(1.05);
}

.item-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item-name {
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.item-description {
    font-size: 1.0rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);

    align-self: flex-end;
    color: var(--dark);
}

.hobby-card p.subsection-comment {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--gray);
}

/*!* 动画效果 - 边框发光 *!*/
/*.glow-border {*/
/*    transition: box-shadow 0.4s ease, border-color 0.4s ease;*/
/*}*/

.item-description:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 展开按钮 */
.expand-btn {
    display: block;
    margin: 30px auto 0;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

.expand-btn:hover {
    background: #3a7bc8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.expand-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.expanded .expand-btn i {
    transform: rotate(180deg);
}

.hidden-items {
    display: none;
}

.expanded .hidden-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 引用卡片特殊样式 */
.quote-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.quote-author, .thank-you-author {
    text-align: right;
    font-weight: bold;
    opacity: 0.9;
}

.description-card p, .thank-you-card .card p.thank-you-paragraph {
    text-indent: 2em;
}


/* 页脚样式 */
footer {
    background: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
    border-radius: 30px 30px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-list a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-social {
        align-items: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-nav {
        margin-bottom: 30px;
    }

    .weather-info, .external-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        padding: 20px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .description-card, .card, .tech-item, .hobby-card, .thank-you-card {
        padding: 20px;
    }
}

/* 启示录和友链特殊样式 */
#quotes, #friends {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.quote-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border: none;
    border-top: 5px solid rgba(255, 255, 255, 0.3);
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #3a7bc8, #5fb8d6);
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.quote-author, .thank-you-author {
    text-align: right;
    font-weight: bold;
    opacity: 0.9;
    font-size: 1rem;
    margin-top: 10px;
}

/* 友链特殊样式 */
#friends {
    margin-top: 40px;
}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.friend-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary);
}

.friend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--accent);
}

.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--light);
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
}

.friend-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

/* 修复原有样式冲突 */
section {
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

/* 确保启示录和友链不受section基础样式影响 */
#quotes, #friends {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .quote-grid,
    .friend-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quote-card {
        padding: 20px;
    }

    .quote-text {
        font-size: 1.1rem;
    }

    .friend-card {
        padding: 20px;
    }
}

.social-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/*公安备案链接不显示蓝色下划线*/
div.copyright a {
    text-decoration: none;
    color: inherit;
}


/*Text组件CssBegin*/
.smooth-text-container {
    display: inherit;
    vertical-align: inherit;
}

.smooth-text {
    display: inherit;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.smooth-text-switch {
    display: inherit;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.smooth-text-switch:hover {
    cursor: pointer;
}

/* 预定义动画效果 */
.smooth-text-fade {
    transition: all 0.3s ease-in-out;
}

.smooth-text-slide {
    transition: all 0.3s ease-in-out;
}

.smooth-text-scale {
    transition: all 0.3s ease-in-out;
}

.smooth-text-typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
}

/* 打字机效果动画 */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: currentColor;
    }
}

.typing-animation {
    animation: typing 1s steps(20, end), blink 1s infinite;
}

/*Text组件CssEnd*/