/*已针对移动端浏览器（以及桌面端的WebKit/Blink内核浏览器）移除-webkit-tap-highlight-color*/
:root {
    --primary: #FFA500;
    --primary-light: #FFC966;
    --primary-dark: #CC8400;
    --surface: #FEF7FF;
    --surface-dim: #DED8E1;
    --surface-bright: #FEF7FF;
    --on-surface: #1D1B20;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #9E9E9E;
    --text-primary: #333333;
    --text-secondary: #666666;
    --animation-curve: cubic-bezier(0.4, 0, 0.2, 1);
    --blur-intensity: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-primary);
    background: #f5f7ff;
    min-height: 100vh;
    line-height: 1.6;
}

::selection {
    color: #1F4296;
    background-color: #FBEB3D;
}

a {
    -webkit-tap-highlight-color: transparent;
}

button {
    -webkit-tap-highlight-color: transparent;
}

/* 背景动画 */
.bg {
    animation: slide 12s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #FFFFFF 50%, var(--primary) 50%);
    bottom: 0;
    left: -50%;
    opacity: .5;
    position: fixed;
    right: -50%;
    top: 0;
    z-index: -1;
}

.bg2 {
    animation-direction: alternate-reverse;
    animation-duration: 16s;
}

.bg3 {
    animation-duration: 20s;
}

/* 头部导航 */
.head {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    width: 2.5rem;
    border-radius: 8px;
    background-color: #FBEB3D;
}

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

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--animation-curve);
}

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

.My-Profile-Photo {
    width: 24px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

/* 主容器 */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 1;
}

/* 毛玻璃效果 */
.glass-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(var(--blur-intensity));
    -webkit-backdrop-filter: blur(var(--blur-intensity));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--animation-curve);
}

.glass-container:hover {
    transform: translateY(-5px);
}

.glass-surface {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(calc(var(--blur-intensity) / 2));
    -webkit-backdrop-filter: blur(calc(var(--blur-intensity) / 2));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

/* 标题样式 */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* 卡片布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s var(--animation-curve);
    transform: translateY(0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

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

.card-header {
    padding: 1.5rem;
    background: rgba(var(--primary), 0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-primary);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--animation-curve);
    text-decoration: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: 0.5rem 0.5rem 0.5rem 0;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    gap: 0.5rem;
}

.btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

/* 书籍展示 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--animation-curve);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

.book-cover {
    padding-top: 75% background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    font-size: 3rem;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 1.2rem;
}

.book-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.book-author {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#reader-card h4 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 500;
}

#reader-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.6s var(--animation-curve) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes slide {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 1rem auto;
        gap: 1.5rem;
    }

    .head {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .glass-surface {
        padding: 1.5rem;
    }

    .card-grid,
    .book-grid {
        grid-template-columns: 1fr;
    }

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

.h1-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 3rem 0;
}

.h1 {
    color: white;
    text-align: left;
    margin-bottom: 1rem;
    background-image: -webkit-linear-gradient(left, #FBEB3D, #FFA500 25%, #FBEB3D 50%, #FFA500 75%, #FBEB3D);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: masked-animation 4s infinite linear;
    text-shadow: 0px 1px 0px #c0c0c015,
        0px 2px 0px #b0b0b025,
        0px 3px 0px #a0a0a02f,
        0px 4px 0px #90909000,
        0px 5px 10px rgba(0, 0, 0, 0.356);
}

#h1 {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

#h1 p {
    margin-bottom: 0;
    font-size: 60px;
    font-weight: 900;
}

.h1 h1 {
    margin: 0;
    font-size: 50px;
    letter-spacing: 1px;
    font-weight: 900;
}

.h1-container img {
    width: 320px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 480px) {
    .h1-container {
        flex-direction: column-reverse;
    }

    #h1 {
        align-items: center;
    }

    .h1 h1 {
        font-size: 30px;
    }

    #h1 p {
        font-size: 35px;
    }

    .h1-container img {
        width: 192px;
    }

    .head-btn {
        display: flex;
        justify-content: space-around;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.feature-desc {
    color: var(--text-secondary);
}

@keyframes masked-animation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -100% 0;
    }
}