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

:root {
    --bg-color: #faf9f6;
    --text-primary: #333347;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent-primary: #d4a5a5;
    --accent-secondary: #c9b8c9;
    --accent-tertiary: #a8c5c7;
    --border-color: #e5e5e5;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background: #faf9f6;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    transition: background-image 0.5s ease-in-out;
}

main {
    flex: 1;
}

header {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

body.homepage,
body.contact-page {
    padding-top: 72px;
}

body.homepage header,
body.contact-page header {
    background: rgba(15, 23, 42, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 4rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    
}

.hitokoto {
    font-size: 1.05rem;
    color: #FFFFFF;
    font-weight: 400;
    text-align: center;
    
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a,
.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

body.homepage .nav-menu a,
body.homepage .nav-link,
body.contact-page .nav-menu a,
body.contact-page .nav-link {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

body.homepage .nav-menu a:hover,
body.homepage .nav-menu a.active,
body.homepage .nav-link:hover,
body.homepage .nav-link.active,
body.contact-page .nav-menu a:hover,
body.contact-page .nav-menu a.active,
body.contact-page .nav-link:hover,
body.contact-page .nav-link.active {
    color: #ffffff;
}

body.homepage .menu-toggle span,
body.contact-page .menu-toggle span {
    background-color: rgba(255, 255, 255, 0.92);
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* 当 modal 显示时隐藏导航菜单并禁用滚动 */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

body.modal-open .nav-menu {
    display: none !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.hero {background: transparent;
    
    padding: 40px 0 60px;
    position: relative;
    overflow: visible;
    min-height: 100vh;}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(250, 249, 246, 0.25);
    z-index: 0;
}


/* ===== 泡泡背景动画 ===== */
.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    bottom: -150px;
    border-radius: 50%;
    animation: rise linear infinite;
    opacity: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: transform, opacity;
    pointer-events: auto;
    cursor: pointer;
}

.bg-circle.is-popping {
    animation: bubblePop 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-115vh) scale(0.8);
        opacity: 0;
    }
}

@keyframes bubblePop {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    45% {
        opacity: 0.95;
        transform: scale(1.12);
        filter: blur(0.4px);
    }
    100% {
        opacity: 0;
        transform: scale(0.18);
        filter: blur(2px);
    }
}

/* 10个泡泡 - 颜色、大小、位置、延迟 */
.bg-circle:nth-child(1)  { width:75px;  height:75px;  left:8%;   animation-duration:18s; animation-delay:0.5s; }
.bg-circle:nth-child(2)  { width:95px;  height:95px;  left:18%;  animation-duration:22s; animation-delay:1.8s; }
.bg-circle:nth-child(3)  { width:55px;  height:55px;  left:32%;  animation-duration:16s; animation-delay:3.2s; }
.bg-circle:nth-child(4)  { width:130px; height:130px; left:50%;  animation-duration:25s; animation-delay:0.9s; }
.bg-circle:nth-child(5)  { width:70px;  height:70px;  left:63%;  animation-duration:20s; animation-delay:5.5s; }
.bg-circle:nth-child(6)  { width:85px;  height:85px;  left:75%;  animation-duration:19s; animation-delay:2.3s; }
.bg-circle:nth-child(7)  { width:110px; height:110px; left:88%;  animation-duration:23s; animation-delay:6.7s; }
.bg-circle:nth-child(8)  { width:60px;  height:60px;  left:43%;  animation-duration:17s; animation-delay:4.1s; }
.bg-circle:nth-child(9)  { width:90px;  height:90px;  left:26%;  animation-duration:21s; animation-delay:7.4s; }
.bg-circle:nth-child(10) { width:100px; height:100px; left:68%;  animation-duration:24s; animation-delay:8.1s; }

.logo-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 8rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.9;
}

.logo span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

body.homepage .logo span,
body.contact-page .logo span {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.hitokoto {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.hitokoto p {
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}


.hero-clock {display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.hero-clock:hover {
    transform: scale(1.02);
}
.hero-clock .clock-time {
    font-size: 4.5rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.05em;
}
.hero-clock .clock-date {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}
.search-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 8rem;
    position: relative;
    z-index: 100;
}

/* 卡片容器 - 居中显示 */
.cards-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 8rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-radius: 80px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
}

.search-engine-selector {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3000;
}

.search-engine-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-engine-current:hover {
    background: rgba(255, 255, 255, 0.8);
}

.search-engine-current:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.3);
}

.engine-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
    display: block;
}

.search-engine-current span {
    font-weight: 400;
}

.engine-current-name {
    min-width: 3.5em;
    text-align: left;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    fill: var(--text-secondary);
    transition: transform 0.3s ease;
}

.search-engine-selector.open .dropdown-arrow {
    transform: rotate(90deg);
}

 .search-engine-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.85);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3001;
}

.search-engine-selector.open .search-engine-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.engine-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.engine-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
    pointer-events: auto;
}

.engine-option:hover {
    background: rgba(212, 165, 165, 0.1);
}

.engine-option.active {
    background: rgba(212, 165, 165, 0.16);
}

.engine-option .engine-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.engine-option .engine-icon {
    width: 20px;
    height: 20px;
}

.engine-option span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    flex-shrink: 0;
}

.search-submit:hover {
    background: transparent;
    transform: scale(1.05);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

.main-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.hero-card {
    background: rgba(255, 255, 255, 0.5);
    -webkit-border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12.4rem;

    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.clock-time {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', Courier, monospace;
    line-height: 1;
    text-align: center;
}

.clock-date {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-decoration {
    position: absolute;
    top: 60px;
    left: 4rem;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.circle-1 {
    width: 280px;
    height: 280px;
    background-color: var(--accent-primary);
    top: 0;
    left: 0;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 180px;
    height: 180px;
    background-color: var(--accent-secondary);
    top: 100px;
    left: 150px;
    animation: float 10s ease-in-out infinite 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    background-color: var(--accent-tertiary);
    top: 50px;
    left: 250px;
    animation: float 12s ease-in-out infinite 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.articles-section {
    padding: 60px 0;
    
}

.articles-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.articles-header h2 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.header-decoration {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-primary), transparent);
}

.articles-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.75);
    -webkit-border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(90deg, #f5f5f5 25%, #ececec 37%, #f5f5f5 63%);
    background-size: 400% 100%;
    animation: imageShimmer 1.4s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
    height: 2.8em;
    /* Force consistent height for 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-weight: 300;
    font-size: 0.9rem;
    height: 4.8em;
    /* Force consistent height for 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(212, 165, 165, 0.15);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    grid-column: 1 / -1;
    padding: 4rem 0;
    font-weight: 300;
}

.about-section {
    padding: 60px 0;
    min-height: auto;
    
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 100%;
}

.about-decoration {
    position: relative;
    height: 300px;
}

.line {
    position: absolute;
    background: linear-gradient(to bottom, var(--accent-secondary), transparent);
    opacity: 0.5;
}

.line-1 {
    width: 2px;
    height: 200px;
    left: 20%;
    top: 10%;
    animation: growLine 3s ease-in-out infinite;
}

.line-2 {
    width: 2px;
    height: 150px;
    left: 40%;
    top: 30%;
    animation: growLine 4s ease-in-out infinite 1s;
}

@keyframes growLine {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 0.3;
    }
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.about-content p+p {
    margin-top: 1rem;
}

.contact-wrapper {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.contact-wrapper h3 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.contact-wrapper p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 2rem;
}

.skills-section {
    padding: 120px 0;
    
    position: relative;
    z-index: 1;
}

.skills-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.skills-header h2 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.skills-notice {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 4rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.grid-notice {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 8rem;
    text-align: center;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
}

    .skill-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0.5rem 0.3rem !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 10px !important;
        min-height: 90px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    

    .skill-card:hover::before {
        opacity: 1;
    }

    .skill-card:hover {
        transform: translateY(-6px) scale(1.03);

        border-color: transparent;
        background: transparent;
    }

    .skill-icon {
    width: 90% !important;
    height: 90% !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.35s ease;
    flex-shrink: 0;
    position: relative;
}

    .skill-card:hover .skill-icon {
    width: 45% !important;
    height: 45% !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.35s ease;
    flex-shrink: 0;
    position: relative;
}

    .skill-icon img { width: 100%; height: 100%; object-fit: contain; margin: auto; display: block; }

/* 全局 skill-icon 样式 - 增大图标尺寸 */
.skill-icon {
    width: 100% !important;
    height: 100% !important;
    max-width: 140px !important;
    max-height: 140px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.35s ease;
    flex-shrink: 0;
    position: relative;
}

.skill-content {
    text-align: center;
    width: 100%;
}

.skill-card h3 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    line-height: 1.4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-align: center;
    opacity: 0.85;
    transition: opacity 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-card:hover h3 {
    opacity: 1;
}
.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    /* 禁用 hover 动画效果 */
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: rgba(255, 255, 255, 0.6);
}

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-align: center;
}

.skills-notice p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    text-align: center;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
}

.contact-section {
    padding: 140px 0;
    
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: center;
}

.contact-content {
    text-align: center;
    max-width: 600px;
}

.contact-content h2 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.contact-content>p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    -webkit-border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-link:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.contact-link:hover .contact-icon {
    color: #fff;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.visible {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-modal-text {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.02em;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.image-modal-close:hover {
    background-color: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}

.text-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.text-modal.visible {
    opacity: 1;
    visibility: visible;
}

.text-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.text-modal-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.text-modal-copy {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.text-modal-copy:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.text-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.text-modal-close:hover {
    background-color: var(--accent-primary);
    color: #fff;
    transform: scale(1.1);
}

footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 249, 246, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 40px;
    opacity: 0;
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    border-radius: 4px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
    transform: translateY(20px);
    animation: modalSlideUp 0.4s ease forwards;
}

.modal-body {
    padding: 0 2.5rem 2.5rem;
}

@keyframes modalSlideUp {
    to {
        transform: translateY(0);
    }
}

@keyframes imageShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

 .modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--accent-primary);
    color: #fff;
}

.modal-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, #f5f5f5 25%, #ececec 37%, #f5f5f5 63%);
    background-size: 400% 100%;
    animation: imageShimmer 1.4s ease-in-out infinite;
}

.modal-title {
    padding: 2rem 2.5rem 1rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-meta {
    padding: 0.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.modal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-/* removed body padding rule */

.modal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.modal-body p {
    margin-bottom: 1.2rem;
}

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

    .hero-card {
        padding: 3rem 4rem;
        max-width: 700px;
    }

    .main-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.1rem;
    }

    .skill-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0.5rem 0.3rem !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 10px !important;
        min-height: 90px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    .skill-icon {
    width: 90% !important;
    height: 90% !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: transform 0.35s ease;
    flex-shrink: 0;
    position: relative;
}

    .skill-card h3 {
        font-size: 0.92rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }

    .hero-card {
        grid-column: span 2;
        max-width: 100%;
        margin-bottom: 0.6rem;
        min-height: 8rem;
        padding: 2rem;
        border-radius: 18px;
    }

    .clock-time {
        font-size: 2.6rem;
    }

    .clock-date {
        font-size: 1rem;
    }

    .articles-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .bg-circles {
        display: none !important;
    }
 
    .logo-container,
    .search-container,
    .cards-container,
    .articles-header,
    .articles-grid,
    .about-container,
    .skills-header,
    .skills-grid,
    .skills-notice,
    .contact-container,
    .footer-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .navbar {
        padding: 0.9rem 1.5rem;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    /* Navigation Drawer - Improved */
    .menu-toggle {
        display: flex;
        z-index: 1100;
    }

    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-flex-direction: column;
        padding: 2rem;
        gap: 1.2rem;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        text-align: center;
        width: 100%;
        display: block;
        background: rgba(0, 0, 0, 0.02);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(212, 165, 165, 0.15);
        color: var(--accent-primary);
    }

    /* Search Bar Optimization */
    .search-box {
        padding: 0.5rem 0.5rem 0.5rem 0.9rem;
        width: 100%;
        border-radius: 40px;
    }

    .search-engine-current {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .engine-icon {
        width: 18px;
        height: 18px;
    }

    .dropdown-arrow {
        width: 12px;
        height: 12px;
    }

    .search-engine-dropdown {
        min-width: 140px;
        border-radius: 10px;
    }

    .engine-icon-img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.engine-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.engine-option:hover {
    background: rgba(212, 165, 165, 0.1);
}

.engine-option.active {
    background: rgba(212, 165, 165, 0.16);
}

.engine-option .engine-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

    .engine-option span {
        font-size: 0.9rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.5rem 0.6rem;
    }

    .search-submit {
        width: 40px;
        height: 40px;
    }

    .search-submit svg {
        width: 20px;
        height: 20px;
    }

    /* Hero Adjustments */
    .hero {background: transparent;
    
        padding: 70px 0 50px;
    min-height: 100vh;}

    .hero-decoration {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-card {
        padding: 2.2rem;
        min-height: 9rem;
        border-radius: 18px;
    }

    .clock-time {
        font-size: 2.8rem;
        font-weight: 300;
    }

    .clock-date {
        font-size: 1.05rem;
        margin-top: 0.5rem;
    }

    /* Grid Adjustments */
    .main-grid {
        padding: 0 1.5rem;
        gap: 1.2rem;
    }

    .floating-card {
        display: none;
    }

    .hitokoto {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }

    /* Article & Modals */
    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-decoration {
        width: 100%;
        margin-top: 0.5rem;
    }

    .article-modal {
        padding: 20px;
    }

    .modal-content {
        max-height: 98vh;
        border-radius: 12px;
    }

    .modal-image {
        height: 220px;
        border-radius: 10px;
    }

    .modal-title {
        font-size: 1.6rem;
        padding: 1.8rem 1.8rem 0.6rem;
    }

    .modal-meta {
        padding: 0.6rem 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .modal-body {
        padding: 0 1.8rem 1.8rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-decoration {
        height: 100px;
        display: none;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .contact-link {
        justify-content: center;
        padding: 1.2rem 1.8rem;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {

    .logo-container,
    .search-container,
    .cards-container,
    .articles-header,
    .articles-grid,
    .about-container,
    .skills-header,
    .skills-grid,
    .skills-notice,
    .contact-container,
    .footer-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .hitokoto {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }

    .search-box {
        padding: 0.5rem 0.5rem 0.5rem 0.8rem;
        gap: 0.5rem;
        border-radius: 40px;
    }

    .search-engine-current {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .search-input {
        font-size: 0.95rem;
    }

    .hero {background: transparent;
    
        padding: 40px 0 30px;
    min-height: 100vh;}

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

    /* 1 Column Layout for small screens */
    .main-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
    }

    .hero-card {
        grid-column: span 1;
        min-height: 8rem;
        padding: 1.8rem;
        border-radius: 18px;
    }

    .clock-time {
        font-size: 2.5rem;
        font-weight: 300;
    }

    .clock-date {
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }

    .skill-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0.6rem 0.4rem !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 12px !important;
        min-height: 100px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    .skill-icon {
        width: 55% !important;
        max-width: 48px !important;
        max-height: 48px !important;
        margin-bottom: 0.3rem !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .skill-card h3 {
        font-size: 0.72rem !important;
        text-align: center;
        font-weight: 500;
        line-height: 1.2;
        opacity: 0.9;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-image {
        height: 200px;
        border-radius: 12px;
    }

    .contact-content h2,
    .about-content h2,
    .skills-header h2,
    .articles-header h2 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-content p + p {
        margin-top: 0.8rem;
    }

    .contact-wrapper {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .contact-wrapper h3 {
        font-size: 1rem;
    }

    .image-modal-close,
    .text-modal-close {
        top: -40px;
        right: 0;
    }

    .grid-notice {
        padding: 0 1rem;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .random-quote {
        padding: 0 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.7rem 0.8rem;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .hitokoto {
        font-size: 0.75rem;
    }

    .hero {background: transparent;
    
        padding: 35px 0 25px;
    min-height: 100vh;}

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

    .main-grid {
        padding: 0 0.8rem;
        gap: 0.9rem;
    }

    .hero-card {
        min-height: 7.5rem;
        padding: 1.5rem;
    }

    .clock-time {
        font-size: 2.2rem;
    }

    .clock-date {
        font-size: 0.9rem;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.6rem;
    }

    .skill-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0.5rem 0.3rem !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 10px !important;
        min-height: 90px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    .skill-icon {
        width: 55% !important;
        max-width: 44px !important;
        max-height: 44px !important;
        margin-bottom: 0.3rem !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .skill-card h3 {
        font-size: 0.7rem !important;
        text-align: center;
        font-weight: 500;
        line-height: 1.2;
        opacity: 0.9;
    }

    .search-box {
        padding: 0.5rem 0.5rem 0.5rem 0.7rem;
        gap: 0.4rem;
        border-radius: 40px;
    }

    .search-engine-current {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .nav-menu {
        top: 55px;
        padding: 1.5rem 0.8rem;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .footer-content p {
        font-size: 0.75rem;
    }

    .grid-notice {
        font-size: 0.75rem;
    }

    .random-quote {
        font-size: 0.8rem;
    }
}
/* 作者信息样式 */
.article-author {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 8px;
}

.modal-author {
    text-align: center;
    color: #e74c3c;
    font-size: 1.1rem;
    margin: 8px 0 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-radius: 8px;
    display: block; text-align: center;
}


/* 文章详情弹窗 - HTML内容渲染样式 */
.modal-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.75rem;
    position: relative;
}

.modal-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

.modal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.modal-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2rem;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.modal-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.modal-body ul, .modal-body ol {
    margin: 1rem 0 1.5rem 1.5rem;
    line-height: 1.9;
}

.modal-body ul {
    list-style: none;
    padding-left: 1.5rem;
}

.modal-body ul li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.2rem;
}

.modal-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.9;
}

.modal-body ol {
    padding-left: 1.5rem;
}

.modal-body ol li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

.modal-body li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body pre {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d3a 100%);
    color: #cdd6f4;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-body code {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #e74c3c;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
}

.modal-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body em {
    color: var(--text-secondary);
    font-style: italic;
}

.modal-body a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.modal-body a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.modal-body a:hover {
    color: var(--accent-secondary);
}

.modal-body a:hover::after {
    width: 100%;
}

.modal-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-primary);
    background: linear-gradient(to right, rgba(212, 165, 165, 0.1), transparent);
    color: var(--text-secondary);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.modal-body hr {
    margin: 2rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-body th,
.modal-body td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.modal-body th {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 500;
}

.modal-body tr:last-child td {
    border-bottom: none;
}

.modal-body tr:hover {
    background: rgba(212, 165, 165, 0.05);
}

/* 随机一言样式 */
.random-quote {
    max-width: 1400px;
    margin: 3rem auto 2rem;
    padding: 0 8rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.random-quote p {
    margin: 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    color: #333347;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    transition: all 0.3s ease;
}

.random-quote p:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transform: none;
}

@media (max-width: 768px) {
    .random-quote {
        padding: 0 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .random-quote {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
}

/* 自定义红色圈圈鼠标 */
* {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #ff0000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 30px;
    height: 30px;
    border-color: #ff4444;
}

.custom-cursor.click {
    width: 15px;
    height: 15px;
    border-color: #ff0000;
}

body.bubble-game-active .custom-cursor {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(to right, transparent 0, transparent 10px, rgba(255, 80, 80, 0.96) 10px, rgba(255, 80, 80, 0.96) 14px, transparent 14px, transparent 100%),
        linear-gradient(to bottom, transparent 0, transparent 10px, rgba(255, 80, 80, 0.96) 10px, rgba(255, 80, 80, 0.96) 14px, transparent 14px, transparent 100%);
    box-shadow: none;
    mix-blend-mode: normal;
}

body.bubble-game-active .custom-cursor.hover {
    width: 28px;
    height: 28px;
}

body.bubble-game-active .custom-cursor.click {
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
}

/* 夜神月样式 - 死亡笔记主角 */

/* ===================== 夜神月 CSS 重绘 ===================== */






    50% { transform: translateY(-5px); }
}



/* 头发 */




/* 刘海 */




/* 头部 */


/* 眉毛 */




/* 眼睛 */





    50% { box-shadow: 0 0 12px rgba(192,57,43,0.9), inset 0 1px 3px rgba(255,255,255,0.4); }
}




/* 鼻子 */


/* 嘴 - 冷酷微笑 */


/* 身体 - 校服 */




/* 领带 */




/* 手 */




/* 死亡笔记 */





    50% { transform: translateX(-50%) translateY(-4px) rotate(0.5deg); }
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}



/* Hide browser scrollbar */
::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
* { scrollbar-width: none; -ms-overflow-style: none; }


/* Hide browser scrollbar */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { scrollbar-width: none; -ms-overflow-style: none; }
html, body { overflow-x: hidden; }


/* Hide browser scrollbar */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { scrollbar-width: none; -ms-overflow-style: none; }
html, body { overflow-x: hidden; }

/* Clock card clickable */
.clock-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clock-card-link:hover {
    transform: translateY(-4px);
}
/* 免责提示 */
.disclaimer {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 3rem;
    padding: 0;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    letter-spacing: 0.02em;
    line-height: 1.6;
}



/* ===== 免责声明底部栏 ===== */
.disclaimer-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 100;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
}

.disclaimer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.disclaimer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.disclaimer-icon {
    font-size: 1.1rem;
}

.disclaimer-brief {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

/* ===== 免责声明弹窗 ===== */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.disclaimer-modal.active {
    opacity: 1;
    visibility: visible;
}

.disclaimer-modal-content {
    background: linear-gradient(135deg, #faf9f6 0%, #f0ebe3 100%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.disclaimer-modal.active .disclaimer-modal-content {
    transform: scale(1);
}

.disclaimer-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.disclaimer-modal-close:hover {
    color: #333;
}

.disclaimer-modal-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #1a1a2e;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0dcd3;
}

.disclaimer-body section {
    margin-bottom: 1.2rem;
}

.disclaimer-body h4 {
    font-size: 1rem;
    color: #16213e;
    margin: 0 0 0.5rem 0;
}

.disclaimer-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.disclaimer-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0dcd3;
}

.disclaimer-footer-text p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .disclaimer-footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }
    
    .disclaimer-brief {
        font-size: 0.7rem;
    }
    
    .disclaimer-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
}


/* ===== 首页禁止复制 ===== */
body.homepage {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

/* 首页背景模糊层 */
body.homepage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    background-attachment: inherit;
    filter: blur(10px);
    z-index: -1;
    transform: scale(1.05); /* 防止模糊边缘出现白边 */
}

body.homepage * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Glass morphism cards */
.skill-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem 1rem !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 140px !important;
    height: 140px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

.skill-icon {
    width: 70% !important;
    height: 70% !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

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

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
    display: block;
}

.skill-content {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    line-height: 1.4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-card:hover h3 {
    opacity: 1;
    color: #667eea;
}



.search-box {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 0.8rem 0.8rem 0.8rem 2rem !important;
    border-radius: 80px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.search-box:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px) !important;
}

.search-box:focus-within {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15),
                0 0 0 2px rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

.logo-container {
    background: transparent;
    -webkit-border-radius: 20px;
    padding: 15px 25px;
}

.logo span {
    color: #333347;
}

.hitokoto {
    color: #6B5B7A;
}

.clock-time {
    color: #A35787;
    font-weight: 700;
}



/* 时光机卡片 */









/* 时钟和时光机容器 */

/* 时光机卡片 - 独立样式 */







/* 强制覆盖时光机卡片的 hero-card 样式 */

/* 时光机卡片 */
.time-machine-link {
    display: inline-block !important;
    vertical-align: top;
    margin-left: 1rem;
    text-decoration: none;
}

.time-machine-card {
    width: 160px !important;
    height: 90px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.time-machine-card:hover {
    transform: scale(1.02);
}

.time-machine-card .tm-icon {
    width: 100% !important;
    height: 55% !important;
    background: linear-gradient(135deg, #ff5a5a 0%, #ff8a5a 50%, #ffb85a 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
}

.time-machine-card .tm-icon svg {
    opacity: 0.9;
}

.time-machine-card .tm-text {
    width: 100% !important;
    height: 45% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    letter-spacing: 0.15em !important;
    background: #fff !important;
}



/* 时光机卡片 */
.time-machine-link {
    display: inline-block !important;
    vertical-align: top;
    margin-left: 1rem;
    text-decoration: none;
}

.time-machine-card {
    width: 160px !important;
    height: 90px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.time-machine-card:hover {
    transform: scale(1.02);
}

.time-machine-card .tm-icon {
    width: 100% !important;
    height: 55% !important;
    background: linear-gradient(135deg, #ff5a5a 0%, #ff8a5a 50%, #ffb85a 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
}

.time-machine-card .tm-icon svg {
    opacity: 0.9;
}

.time-machine-card .tm-text {
    width: 100% !important;
    height: 45% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    letter-spacing: 0.15em !important;
    background: #fff !important;
}


/* 移动端适配 */
@media (max-width: 1400px) {
    .main-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.8rem !important;
        padding: 0 4rem !important;
    }
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
        padding: 0 2rem !important;
    }

    .skill-icon {
        width: 40% !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
}

/* 博客风格样式 */
.hero-section {
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.avatar-container {
    --hour-angle: 0deg;
    --minute-angle: 0deg;
    margin-bottom: 2.5rem;
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.avatar-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.92);
    border-bottom: none;
    border-radius: 999px 999px 0 0;
    transform-origin: 50% 100%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.avatar-hand::before {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    top: 8px;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.26) 0%, rgba(118, 75, 162, 0.12) 100%);
}

.avatar-hand-hour {
    width: 176px;
    height: 96px;
    margin-left: -88px;
    margin-top: -96px;
    transform: rotate(var(--hour-angle));
    z-index: 2;
}

.avatar-hand-minute {
    width: 212px;
    height: 116px;
    margin-left: -106px;
    margin-top: -116px;
    border-color: rgba(255, 255, 255, 0.98);
    background: rgba(255, 255, 255, 0.24);
    transform: rotate(var(--minute-angle));
    z-index: 1;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                0 0 0 4px rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
                0 0 0 6px rgba(255, 255, 255, 0.4);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
    transform-origin: center;
}

.hero-subtitle.is-bubble-number {
    font-weight: 700;
}

.hero-subtitle.is-bubble-counting {
    opacity: 1;
    animation: heroSubtitlePulse 0.28s ease-out;
}

@keyframes heroSubtitlePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.14);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

.hero-clock {
    --audio-level: 0.72;
    --audio-pulse: 1;
    --audio-hue-shift: 0deg;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: min(100%, 30rem);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.35s ease;
    overflow: visible;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.hero-clock::before,
.hero-clock::after {
    content: none;
}

.hero-clock:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.audio-clock-card .clock-time {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    letter-spacing: 0;
}

.audio-clock-head,
.audio-clock-screen {
    position: relative;
    z-index: 1;
}

.audio-clock-wave {
    position: relative;
    z-index: 1;
    --audio-level: 0.72;
    --audio-pulse: 1;
    --audio-hue-shift: 0deg;
}

.audio-clock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.audio-clock-chip,
.audio-clock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(71, 85, 105, 0.9);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: none;
}

.audio-clock-status i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: audioLivePulse 1.6s ease-out infinite;
}

.audio-clock-screen {
    padding: 1.2rem 1.25rem 1.05rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: none;
}

.audio-clock-label {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(14, 116, 144, 0.72);
}

.hero-audio-time {
    font-family: 'SFMono-Regular', 'JetBrains Mono', 'Fira Code', monospace;
    font-size: clamp(2.6rem, 6vw, 4.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    color: #0f172a;
    text-shadow: none;
}

.audio-clock-date {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    color: rgba(71, 85, 105, 0.72);
}

.audio-clock-wave {
    display: grid;
    grid-template-columns: repeat(52, minmax(0, 1fr));
    align-items: end;
    gap: 0.24rem;
    height: 5.6rem;
    padding: 0;
}

.search-audio-visualizer {
    width: min(100%, 760px);
    margin: 0 auto 0.15rem;
    padding: 0 0.15rem;
}

.audio-bar {
    position: relative;
    display: block;
    height: calc(12% + ((var(--i) * 7.3% + var(--audio-level) * 37% + 11%) % 86%));
    min-height: 0.72rem;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
                0 8px 14px rgba(255, 255, 255, 0.08);
    transform-origin: bottom center;
    transform: scaleY(var(--audio-pulse));
    filter: none;
    animation: equalizerDanceA 1.47s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: calc(var(--i) * -0.071s);
}

.audio-bar::after {
    content: none;
}

.audio-bar:nth-child(4n) {
    animation-name: equalizerDanceB;
    animation-duration: 1.83s;
}

.audio-bar:nth-child(5n) {
    animation-name: equalizerDanceC;
    animation-duration: 1.21s;
}

.audio-bar:nth-child(7n) {
    animation-name: equalizerDanceD;
    animation-duration: 2.06s;
}

.audio-bar:nth-child(9n) {
    animation-name: equalizerDanceE;
    animation-duration: 1.62s;
}

.audio-bar:nth-child(11n) {
    animation-name: equalizerDanceF;
    animation-duration: 1.34s;
}

@keyframes audioLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
        opacity: 1;
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
        opacity: 0.88;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        opacity: 1;
    }
}

@keyframes equalizerDanceA {
    0% { transform: scaleY(0.24); opacity: 0.72; }
    9% { transform: scaleY(0.91); opacity: 0.98; }
    23% { transform: scaleY(0.38); opacity: 0.82; }
    41% { transform: scaleY(1.06); opacity: 1; }
    57% { transform: scaleY(0.29); opacity: 0.78; }
    76% { transform: scaleY(0.84); opacity: 0.94; }
    100% { transform: scaleY(0.33); opacity: 0.76; }
}

@keyframes equalizerDanceB {
    0% { transform: scaleY(0.62); opacity: 0.9; }
    14% { transform: scaleY(0.26); opacity: 0.72; }
    27% { transform: scaleY(1.08); opacity: 1; }
    46% { transform: scaleY(0.41); opacity: 0.8; }
    68% { transform: scaleY(0.95); opacity: 0.98; }
    83% { transform: scaleY(0.19); opacity: 0.68; }
    100% { transform: scaleY(0.74); opacity: 0.92; }
}

@keyframes equalizerDanceC {
    0% { transform: scaleY(0.18); opacity: 0.66; }
    12% { transform: scaleY(0.72); opacity: 0.92; }
    31% { transform: scaleY(0.34); opacity: 0.78; }
    52% { transform: scaleY(1.12); opacity: 1; }
    63% { transform: scaleY(0.23); opacity: 0.7; }
    89% { transform: scaleY(0.88); opacity: 0.96; }
    100% { transform: scaleY(0.28); opacity: 0.72; }
}

@keyframes equalizerDanceD {
    0% { transform: scaleY(0.47); opacity: 0.84; }
    17% { transform: scaleY(1.04); opacity: 1; }
    29% { transform: scaleY(0.21); opacity: 0.7; }
    44% { transform: scaleY(0.67); opacity: 0.9; }
    58% { transform: scaleY(0.32); opacity: 0.76; }
    79% { transform: scaleY(1.1); opacity: 1; }
    100% { transform: scaleY(0.36); opacity: 0.8; }
}

@keyframes equalizerDanceE {
    0% { transform: scaleY(0.28); opacity: 0.74; }
    11% { transform: scaleY(0.96); opacity: 0.98; }
    36% { transform: scaleY(0.52); opacity: 0.86; }
    49% { transform: scaleY(0.17); opacity: 0.66; }
    71% { transform: scaleY(1.03); opacity: 1; }
    88% { transform: scaleY(0.43); opacity: 0.82; }
    100% { transform: scaleY(0.79); opacity: 0.94; }
}

@keyframes equalizerDanceF {
    0% { transform: scaleY(0.69); opacity: 0.92; }
    13% { transform: scaleY(0.22); opacity: 0.68; }
    26% { transform: scaleY(0.83); opacity: 0.95; }
    48% { transform: scaleY(0.31); opacity: 0.76; }
    66% { transform: scaleY(1.09); opacity: 1; }
    81% { transform: scaleY(0.25); opacity: 0.7; }
    100% { transform: scaleY(0.58); opacity: 0.88; }
}

.search-section {
    padding: 22px 20px 50px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 0.9s forwards;
    opacity: 0;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.tools-section {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 620;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    letter-spacing: -0.035em;
}

.section-header p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.16);
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.about-section {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    margin: 60px 20px;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 1.5s forwards;
    opacity: 0;
}

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

.about-heading {
    max-width: 760px;
    margin: 0 auto 2.75rem;
}

.about-content {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.about-content::before,
.about-content::after {
    content: none;
}

.about-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.92rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(126, 97, 62, 0.08);
    border: 1px solid rgba(126, 97, 62, 0.14);
    color: #7a5a33;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.about-content h2 {
    position: relative;
    z-index: 1;
    font-size: 2.2rem;
    font-weight: 700;
    color: #4f3a22;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.about-content p {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: #6e5842;
    line-height: 1.9;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.stat-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.4rem 1.35rem;
    min-height: 188px;
    background:
        linear-gradient(165deg, rgba(255, 251, 245, 0.86) 0%, rgba(240, 229, 210, 0.8) 100%),
        linear-gradient(116deg, transparent 0 22%, rgba(164, 135, 96, 0.07) 26%, transparent 31%, transparent 100%),
        linear-gradient(74deg, transparent 0 64%, rgba(255, 255, 255, 0.22) 69%, transparent 74%);
    border-radius: 22px;
    border: 1px solid rgba(164, 135, 96, 0.18);
    box-shadow:
        0 12px 30px rgba(96, 73, 43, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -8px 14px rgba(155, 124, 88, 0.06);
    transform: rotate(var(--paper-tilt, 0deg));
    transition: none;
}

.stat-item:nth-child(1) { --paper-tilt: -1.2deg; }
.stat-item:nth-child(2) { --paper-tilt: 0.9deg; }
.stat-item:nth-child(3) { --paper-tilt: -0.8deg; }
.stat-item:nth-child(4) { --paper-tilt: 1.15deg; }

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(132deg, transparent 0 20%, rgba(145, 113, 77, 0.08) 24%, transparent 28%, transparent 54%, rgba(255, 255, 255, 0.2) 58%, transparent 62%),
        radial-gradient(circle at top right, rgba(188, 162, 128, 0.12), transparent 44%);
    pointer-events: none;
}

.stat-item-primary {
    background:
        linear-gradient(165deg, rgba(255, 248, 239, 0.92) 0%, rgba(239, 225, 202, 0.86) 100%),
        linear-gradient(125deg, transparent 0 18%, rgba(160, 124, 84, 0.08) 22%, transparent 27%, transparent 100%);
    border-color: rgba(150, 116, 77, 0.22);
}

.stat-item:hover {
    transform: rotate(var(--paper-tilt, 0deg));
    border-color: rgba(164, 135, 96, 0.18);
    box-shadow:
        0 12px 30px rgba(96, 73, 43, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -8px 14px rgba(155, 124, 88, 0.06);
}

.stat-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(255, 250, 242, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    font-size: 1.15rem;
}

.stat-number {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.55rem;
    letter-spacing: -0.03em;
}

.stat-label {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.stat-meta {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 博客风格响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-clock {
        min-width: min(100%, 26rem);
        gap: 0.85rem;
        padding: 0.9rem;
        border-radius: 26px;
    }

    .audio-clock-head {
        gap: 0.7rem;
    }

    .audio-clock-chip,
    .audio-clock-status {
        min-height: 1.85rem;
        padding: 0.34rem 0.62rem;
        font-size: 0.66rem;
        letter-spacing: 0.13em;
    }

    .audio-clock-screen {
        padding: 1rem 1rem 0.9rem;
        border-radius: 18px;
    }

    .hero-audio-time {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
        letter-spacing: 0.06em;
    }

    .audio-clock-date {
        font-size: 0.84rem;
        letter-spacing: 0.05em;
    }

    .audio-clock-wave {
        gap: 0.16rem;
        height: 4.3rem;
    }

    .search-audio-visualizer {
        width: min(100%, 680px);
        margin-bottom: 0.1rem;
        padding: 0 0.1rem;
    }

    .avatar-container {
        width: 164px;
        height: 164px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-hand {
        border-width: 2px;
    }

    .avatar-hand-hour {
        width: 128px;
        height: 70px;
        margin-left: -64px;
        margin-top: -70px;
    }

    .avatar-hand-minute {
        width: 156px;
        height: 86px;
        margin-left: -78px;
        margin-top: -86px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .clock-time {
        font-size: 1.36rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .tools-section {
        padding: 56px 16px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .cards-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }

    .skill-card {
        padding: 0.9rem 0.65rem !important;
        min-height: 116px !important;
        border-radius: 16px !important;
    }

    .skill-icon,
    .skill-card:hover .skill-icon {
        width: 68px !important;
        height: 68px !important;
        max-width: 68px !important;
        max-height: 68px !important;
        margin-bottom: 0.7rem;
    }

    .skill-card h3 {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .about-section {
        padding: 32px 16px;
        margin: 18px 14px;
        border-radius: 20px;
    }

    .about-content {
        text-align: left;
    }

    .about-heading {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .about-kicker {
        padding: 0.32rem 0.72rem;
        margin-bottom: 0.8rem;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .about-content h2 {
        font-size: 1.42rem;
        margin-bottom: 0.7rem;
    }

    .about-content p {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .stat-item {
        min-height: 146px;
        padding: 1rem 0.95rem;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.72rem;
        border-radius: 11px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0.35rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-meta {
        padding-top: 0.65rem;
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-clock {
        min-width: 100%;
        gap: 0.72rem;
        padding: 0.78rem;
        border-radius: 22px;
    }

    .audio-clock-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .audio-clock-screen {
        padding: 0.9rem 0.85rem 0.82rem;
        border-radius: 16px;
    }

    .audio-clock-label {
        font-size: 0.64rem;
        letter-spacing: 0.16em;
    }

    .hero-audio-time {
        font-size: clamp(2rem, 12vw, 2.8rem);
        letter-spacing: 0.04em;
    }

    .audio-clock-date {
        font-size: 0.78rem;
    }

    .audio-clock-wave {
        gap: 0.1rem;
        height: 3.5rem;
    }

    .search-audio-visualizer {
        width: min(100%, 100%);
        padding: 0 0.05rem;
        margin-bottom: 0.08rem;
    }

    .tools-section {
        padding: 36px 10px;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.88rem;
    }

    .search-container {
        padding: 0 0.6rem;
        margin: 0 auto 1.1rem;
    }

    .search-box {
        gap: 0.28rem;
        border-radius: 40px;
        padding: 0.22rem 0.22rem 0.22rem 0.55rem;
        min-height: 42px;
    }

    .search-engine-current {
        gap: 0.25rem;
        padding: 0.38rem 0.55rem;
        border-radius: 18px;
        font-size: 0.82rem;
    }

    .engine-icon {
        width: 15px;
        height: 15px;
    }

    .engine-current-name {
        min-width: 2.6em;
    }

    .search-input {
        padding: 0.28rem 0.35rem;
        font-size: 0.9rem;
    }

    .search-submit {
        width: 32px;
        height: 32px;
    }

    .search-submit svg {
        width: 16px;
        height: 16px;
    }

    .cards-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.44rem;
    }

    .skill-card {
        width: 66px !important;
        height: 66px !important;
        min-height: 66px !important;
        justify-self: center !important;
        padding: 0.32rem 0.18rem !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.22) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: none !important;
    }

    .skill-icon,
    .skill-card:hover .skill-icon {
        width: 26px !important;
        height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
        margin-bottom: 0.2rem;
    }

    .skill-card h3 {
        font-size: 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.08;
    }

    .about-section {
        padding: 24px 12px;
        margin: 14px 10px;
        border-radius: 18px;
    }

    .about-heading {
        margin-bottom: 1.2rem;
    }

    .about-kicker {
        padding: 0.28rem 0.64rem;
        margin-bottom: 0.65rem;
        font-size: 0.68rem;
    }

    .about-content h2 {
        font-size: 1.28rem;
        margin-bottom: 0.55rem;
    }

    .about-content p {
        font-size: 0.88rem;
        line-height: 1.68;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.72rem;
    }

    .stat-item {
        min-height: 126px;
        padding: 0.88rem 0.82rem;
        border-radius: 14px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        margin-bottom: 0.62rem;
        font-size: 0.94rem;
    }

    .stat-number {
        font-size: 1.4rem;
        margin-bottom: 0.28rem;
    }

    .stat-label {
        font-size: 0.84rem;
    }

    .stat-meta {
        padding-top: 0.55rem;
        font-size: 0.76rem;
        line-height: 1.45;
    }
}

@media (max-width: 390px) {
    .hero-clock {
        padding: 0.64rem 0.72rem;
        border-radius: 20px;
    }

    .flip-unit {
        width: 2.08rem;
        height: 2.92rem;
        border-radius: 10px;
    }

    .flip-card {
        font-size: 1.42rem;
    }

    .flip-separator {
        width: 0.72rem;
        height: 2.92rem;
        font-size: 1.28rem;
    }

    .tools-section {
        padding: 32px 8px;
    }

    .about-section {
        padding: 20px 10px;
        margin: 12px 8px;
        border-radius: 16px;
    }

    .about-heading {
        margin-bottom: 1rem;
    }

    .about-content h2 {
        font-size: 1.18rem;
    }

    .about-content p {
        font-size: 0.84rem;
        line-height: 1.62;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .stat-item {
        min-height: auto;
        padding: 0.82rem 0.78rem;
    }

    .stat-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 0.55rem;
    }

    .stat-number {
        font-size: 1.28rem;
    }

    .stat-label {
        font-size: 0.82rem;
    }

    .stat-meta {
        padding-top: 0.45rem;
        font-size: 0.74rem;
    }

    .search-container {
        padding: 0 0.35rem;
        margin: 0 auto 1rem;
    }

    .search-box {
        gap: 0.22rem;
        border-radius: 34px;
        padding: 0.18rem 0.18rem 0.18rem 0.42rem;
        min-height: 38px;
    }

    .search-engine-current {
        gap: 0.2rem;
        padding: 0.32rem 0.45rem;
        border-radius: 16px;
        font-size: 0.78rem;
    }

    .engine-icon {
        width: 14px;
        height: 14px;
    }

    .engine-current-name {
        min-width: 2.3em;
    }

    .search-input {
        padding: 0.22rem 0.28rem;
        font-size: 0.86rem;
    }

    .search-submit {
        width: 30px;
        height: 30px;
    }

    .search-submit svg {
        width: 15px;
        height: 15px;
    }

    .cards-container {
        gap: 0.36rem;
    }

    .skill-card {
        width: 64px !important;
        height: 64px !important;
        min-height: 64px !important;
        justify-self: center !important;
        padding: 0.26rem 0.15rem !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.18) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: none !important;
    }

    .skill-icon,
    .skill-card:hover .skill-icon {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        margin-bottom: 0.16rem;
    }

    .skill-card h3 {
        font-size: 0.55rem;
        line-height: 1.08;
    }
}

/* homepage search rewrite override */
.search-section {
    position: relative;
    z-index: 20;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 8rem;
    position: relative;
    z-index: 200;
}

#homepageSearchForm.search-box {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    min-height: 74px;
    padding: 0 !important;
    border-radius: 42px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    z-index: 200;
    overflow: visible !important;
    transition: all 0.3s ease !important;
}

#homepageSearchForm.search-box:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
}

#homepageSearchForm.search-box:focus-within {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
}

.search-engine-shell {
    width: 100px;
    min-width: 100px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.26rem;
    padding: 0 0.5rem 0 0.08rem;
    border-radius: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    flex-shrink: 0;
}

.search-engine-shell::after {
    content: '▾';
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(51, 51, 71, 0.62);
    pointer-events: none;
    font-size: 0.82rem;
}

.engine-icon,
#engineIcon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 6px;
}

.search-engine-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    color: #333347;
    font-size: 0.96rem;
    font-family: inherit;
    padding-right: 1.35rem;
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 2;
}

.search-input-wrap {
    width: 100%;
    min-width: 0;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.8rem 0.95rem 0.8rem 0.68rem !important;
    border-radius: 32px;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: text;
}

.search-input-divider {
    width: 1px;
    height: 22px;
    background: rgba(51, 51, 71, 0.1);
    flex-shrink: 0;
}

.search-input-icon {
    width: 18px;
    height: 18px;
    color: rgba(51, 51, 71, 0.56);
    flex-shrink: 0;
}

.search-input {
    flex: 1 1 auto !important;
    min-width: 0;
    height: 50px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    color: #333347 !important;
    font-size: 1rem !important;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(51, 51, 71, 0.46) !important;
}

.search-submit {
    height: 48px !important;
    min-width: 52px;
    padding: 0 0.5rem !important;
    border: none !important;
    border-radius: 15px !important;
    background: transparent !important;
    color: #333347 !important;
    font-size: 0.98rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: none !important;
    flex-shrink: 0;
}

.search-submit:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.search-submit:active {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 992px) {
    .search-container {
        padding: 0 1.25rem;
    }

    #homepageSearchForm.search-box {
        min-height: 70px;
        border-radius: 36px !important;
    }

    .search-input-wrap {
        min-height: 70px;
        gap: 0.38rem;
        padding: 0.72rem 0.85rem 0.72rem 0.62rem !important;
    }

    .search-engine-shell {
        width: 94px;
        min-width: 94px;
    }
}

@media (max-width: 640px) {
    .search-container {
        padding: 0 0.9rem;
    }

    #homepageSearchForm.search-box {
        min-height: 60px;
        border-radius: 34px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    .search-input-wrap {
        min-height: 60px;
        gap: 0.32rem;
        padding: 0.52rem 0.65rem 0.52rem 0.5rem !important;
        border-radius: 34px !important;
    }

    .search-engine-shell {
        width: 92px;
        min-width: 92px;
        padding: 0 0.22rem 0 0.04rem;
    }

    .search-input-divider {
        height: 18px;
    }

    .search-engine-select,
    .search-input {
        font-size: 16px !important;
    }
}

@media (max-width: 420px) {
    .search-container {
        padding: 0 0.75rem;
    }

    #homepageSearchForm.search-box {
        min-height: 56px;
        border-radius: 30px !important;
    }

    .search-input-wrap {
        min-height: 56px;
        gap: 0.24rem;
        padding: 0.45rem 0.5rem 0.45rem 0.42rem !important;
        border-radius: 30px !important;
    }

    .search-engine-shell {
        width: 88px;
        min-width: 88px;
        gap: 0.22rem;
        padding: 0 0.2rem 0 0.04rem;
    }

    .search-input-divider {
        height: 16px;
    }
}

/* homepage search inline layout */
.search-input-wrap {
    position: relative;
}

.search-input-icon {
    display: none !important;
}

.search-input {
    padding-right: 0 !important;
}

.search-input-wrap .search-submit {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin-left: 0.12rem;
    border-radius: 13px !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.search-input-wrap .search-submit svg {
    width: 18px;
    height: 18px;
    display: block;
}

.search-input-wrap .search-submit:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.search-input-wrap .search-submit:focus,
.search-input-wrap .search-submit:active,
.search-input-wrap .search-submit:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.search-box > .search-submit {
    display: none !important;
}

@media (max-width: 640px) {
    .search-input-wrap .search-submit {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 420px) {
    .search-input-wrap .search-submit {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
    }
}
