/* 主题颜色和全局变量 */
:root {
    --primary-color: #FF6B35; /* 主要颜色 */
    --secondary-color: #2E3038; /* 次要颜色 */
    --background-color: rgb(247, 248, 249); /* 背景颜色 */
    --global-border-radius: 30px; /* 全局圆角 */
    --blur-value: 10px; /* 背景模糊值 */
    --transition-speed: 0.3s; /* 过渡动画速度 */
    --nav-height: 80px; /* 导航栏高度 */
    --tag-radius: 30px; /* 标签云圆角 */
    --spacing-base: 1.5rem; /* 基础间距 */
    --border-width: 2px; /* 边框宽度 */
    --shadow-base: 0 4px 6px rgba(0, 0, 0, 0.05); /* 基础阴影 */
}

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

/* 主体内容背景 */
body {
    background: var(--background-color);
    min-height: 100vh;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding: calc(var(--spacing-base) / 2) 5%;
    backdrop-filter: blur(var(--blur-value));
    -webkit-backdrop-filter: blur(var(--blur-value));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* 用户名样式 */
.username {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* 导航链接容器 */
.nav-links {
    display: flex;
    gap: calc(var(--spacing-base) * 1.33);
}

/* 导航链接 */
.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    padding: calc(var(--spacing-base) / 4) calc(var(--spacing-base) / 2);
}

/* 导航链接悬停效果 */
.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 主体内容 */
main {
    margin-top: var(--nav-height);
    min-height: calc(100vh - 2 * var(--nav-height));
    padding: calc(var(--spacing-base) * 2.66) 5%;
    display: flex;
    gap: calc(var(--spacing-base) * 4);
}

/* 左侧板 */
.left-panel {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 头像容器 */
.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 50%;
}

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

/* 头像遮罩 */
.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, transparent 50%, rgba(0, 0, 0, 0.2));
    z-index: 3;
}

/* 右侧板 */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--spacing-base) * 4) 0 calc(var(--spacing-base) * 1.33) calc(var(--spacing-base) * 2);
}

/* 名称和标题 */
.name-title {
    margin-bottom: calc(var(--spacing-base) * 2.66);
}

.name-title h1 {
    color: var(--secondary-color);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.name-title p {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* 标签云 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    max-width: 700px;
    margin-bottom: auto;
}

.tag {
    padding: 1rem 2rem;
    border: calc(var(--border-width)) solid var(--primary-color);
    border-radius: var(--tag-radius);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    background: white;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* 品牌标识 */
.brands {
    display: flex;
    gap: 2rem;
    padding-top: 3rem;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-base);
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.brand-icon:hover {
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width:1200px) {
    main {
        flex-direction: column;
        padding: 2rem 5%;
    }

    .left-panel {
        width: 100%;
        margin: 2rem 0;
    }

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

    .right-panel {
        width: 100%;
        padding: 0;
    }

    .name-title h1 {
        font-size: 2.2rem;
    }

    .tag {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .name-title h1 {
        font-size: 1.8rem;
    }

    .brands {
        justify-content: center;
    }
}

/* 技能区域 */
.link-section {
    padding: 80px 5% 120px;
    background: var(--background-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.rocket-icon {
    font-size: 1.8rem;
    animation: float 2s ease-in-out infinite;
}

/* 链接容器 */
.link-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 链接卡片 */
.link-card {
    background: var(--background-color);
    padding: 25px;
    border-radius: var(--global-border-radius);
    box-shadow: var(--shadow-base);
}

.link-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

/* 云flare卡片 */
.cf-card {
    position: relative;
    min-height: 120px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease;
    background: url('https://static-00.iconduck.com/assets.00/cloudflare-icon-2048x927-9dhn82y4.png') no-repeat center/contain;
    border-radius: var(--global-border-radius);
}

.cf-card:active {
    transform: scale(0.98);
}

/* 卡片遮罩 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    transition: background var(--transition-speed) ease;
    border-radius: var(--global-border-radius);
}

.cf-card:hover .card-overlay {
    background: rgba(255, 255, 255, 0.8);
}

.cf-card h3 {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-speed) ease;
}

.cf-card:hover h3 {
    color: var(--primary-color);
    transform: translateX(8px);
}

.cf-card h3::after {
    content: "⤴";
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.cf-card:hover h3::after {
    opacity: 1;
}

/* 创作者区域 */
.creator-section {
    padding: 80px 5%;
    background: var(--background-color);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
}

.creator-profile {
    flex: 1;
    min-width: 350px;
}

.creator-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.creator-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.creator-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-number {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--primary-color);
}

.creator-bio p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.creator-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-tag {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.topic-tag:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.topic-tag.active {
    background: var(--primary-color);
    color: white;
}

.creator-videos {
    flex: 1.5;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background: white;
    border-radius: var(--global-border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.video-thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: opacity var(--transition-speed);
}

.video-card:hover .video-thumbnail::before {
    opacity: 0;
}

.video-card h3 {
    padding: 15px 20px 0;
    color: var(--secondary-color);
    font-size: 1.1em;
    line-height: 1.4;
}

.video-card p {
    padding: 10px 20px 20px;
    color: #888;
    font-size: 0.9em;
}

/* 创作者区域响应式 */
@media (max-width: 1000px) {
    .content-container {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .creator-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .creator-profile {
        min-width: auto;
    }

    .topic-tag {
        font-size: 0.8em;
    }
}

/* 音乐区域 */
/* 修改 music-section 的容器样式 */
.music-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    position: relative;
    min-height: 100vh; /* 保证容器有足够滚动空间 */
}

/* 左侧固定卡片容器 */
.bio-section {
    position: sticky;
    top: 50%; /* 垂直居中定位 */
    align-self: start; /* 防止grid拉伸 */
    height: fit-content;
    margin-top: 190px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* 卡片间距 */
    transition: transform 0.3s ease; /* 添加滚动顺滑效果 */
}

.bio-card {
    width: 100%;
    background: linear-gradient(
        150deg, 
        rgba(241, 80, 100, 0.9), 
        rgba(241,40,59, 0.9)
    );
    border-radius: var(--global-border-radius);
    padding: 30px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bio-content {
    color: white;
    line-height: 1.8;
    font-size: 0.95em;
}

.highlight {
    color: white;
    border-left: 3px solid white;
    padding-left: 15px;
    margin-top: 25px;
}

.band-card {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
}

.band-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--global-border-radius);
    transition: transform var(--transition-speed);
    background: linear-gradient(
        180deg, 
        rgba(245, 75, 99, 0.9), 
        rgba(246, 37, 58, 1)
    );
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-frame {
    width: 100%;
    height: 100px;
    border-radius: var(--global-border-radius);
    overflow: hidden;
    position: relative;
}

.band-photo:hover {
    transform: scale(1);
}

.band-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.09);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.song-card {
    background: #fff;
    border-radius: var(--global-border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: all var(--transition-speed);
    position: relative;
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.song-card:hover .album-cover::before {
    opacity: 0;
}

.album-cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    
}

.album-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    transition: opacity var(--transition-speed);
}

.song-card h3 {
    font-size: 1.1em;
    margin: 12px 15px 5px;
    padding: 0px 15px;
    color: #333;
}

.song-card p {
    margin: 0 15px 12px;
    color: #666;
    font-size: 0.9em;
    padding: 0px 15px;
}

/* 音乐区域响应式 */
@media (max-width: 768px) {
    .music-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .music-grid {
        grid-template-columns: 1fr;
    }
    .bio-section {
        padding: 20px 0;
        align-items: flex-start;
    }
    .bio-card {
        margin: 10px 0;
    }
}

/* 页脚 */
.site-footer {
    background: linear-gradient(15deg, #1a1e2c, #2d3548);
    color: #a0aec0;
    font-family: 'Segoe UI', sans-serif;
    margin-top: 80px;
    position: relative;
    padding: 40px 0 0;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 10%,
        rgba(255,104,107,0.8) 50%,
        transparent 90%
    );
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section {
    border-radius: var(--global-border-radius);
}

.footer-section h4 {
    color: #ff6b6b;
    font-size: 1.2em;
    margin-bottom: 1.2em;
    position: relative;
    padding-left: 24px;
}

.footer-section h4::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #4fd1c5;
    font-size: 0.8em;
    top: 2px;
    animation: flicker 1.5s infinite alternate;
}

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

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed);
    display: block;
    padding: 8px 24px;
    border-radius: 4px;
    position: relative;
}

.footer-links a:hover {
    background: rgba(79, 209, 197, 0.1);
    color: #4fd1c5;
    transform: translateX(8px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #4fd1c5;
    transition: width var(--transition-speed);
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 
        transform var(--transition-speed),
        box-shadow var(--transition-speed),
        border-color var(--transition-speed);
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.social-links a:hover {
    border-color: #4fd1c5;
    box-shadow: 0 2px 12px rgba(79, 209, 197, 0.2);
    transform: scale(1.05);
}

.footer-bar {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 0.9em;
    color: #718096;
}

/* 页脚响应式 */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h4 {
        font-size: 1.1em;
        padding-left: 20px;
    }

    .footer-links a {
        padding: 8px 20px;
    }

    .social-links a {
        padding: 10px 20px;
    }

    .footer-bar {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
}

/* 动画 */
@keyframes flicker {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* 特殊处理 */
.avatar-container {
    border-radius: 50% !important;
}

.tag {
    border-radius: var(--tag-radius) !important;
}

.topic-tag {
    border-radius: 20px !important;
}

/* 语言切换按钮 */
.lang-switch {
    background: none;
    border: calc(var(--border-width)) solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.2rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-left: 1rem;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white;
}

/* 播放覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-speed);
    z-index: 2;
}

.song-card:hover .play-overlay {
    opacity: 1;
}

.fa-play-circle {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    transform: translateY(10px);
}

.song-card:hover .fa-play-circle {
    transform: translateY(0);
}

.song-card:active .play-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.playing .fa-play-circle::before {
    content: "\f28b"; /* 暂停图标 */
}

/* */

/* 新增关键帧动画 */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    25% { transform: translateY(-3px) rotateZ(-0.5deg); }
    75% { transform: translateY(2px) rotateZ(0.3deg); }
  }
  
  /* 优化粘性容器 */
  .bio-section {
    position: sticky;
    top: 50%;
    transform: translateY(calc(-50% + var(--offset-y, 0px))) 
               rotateZ(var(--rotate-z, 0deg));
    transition: 
      transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), /* 弹簧曲线 */
      filter 0.3s ease;
    will-change: transform; /* 开启GPU加速 */
    filter: hue-rotate(0deg);
  }
  
  /* 动态浮动效果 */
  .bio-card, .band-card, .avatar-container {
    transition: 
      transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      box-shadow 0.3s ease;
    transform-origin: center bottom;
    animation: cardFloat 8s ease-in-out infinite;
  }
  
  /* 滚动互动效果 */
  .music-container:active .bio-card,
  .music-container:active .band-card {
    animation-play-state: paused;
  }
  
  /* 添加流体动态背景 */
  .bio-card::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(
      45deg,
      rgba(255,107,53,0.1) 0%,
      rgba(241,80,100,0.2) 50%,
      rgba(255,107,53,0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  
  /* 滚动互动时的波纹效果 */
  .bio-section:hover::before {
    opacity: 0.6;
    animation: wave 2s linear infinite;
  }
  
  @keyframes wave {
    from { transform: translateX(-10%) rotate(0deg) ; }
    to { transform: translateX(10%) rotate(360deg) ; }
  }

  @media (hover: none) {
    .bio-section {
      transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
      filter: none !important;
    }
    .bio-card::before {
      display: none;
    }
  }

  /* 移动端样式覆盖 */
  @media (max-width: 768px) {
    .music-container {
      display: flex;
      flex-direction: column;
      min-height: auto;
    }
    
    .bio-section {
      /* 关闭所有动态效果 */
      position: static !important;
      transform: none !important;
      transition: none !important;
      filter: none !important;
      grid-row: unset;
    }
    
    /* 隐藏动态流体效果 */
    .bio-card::before,
    .band-card::before {
      display: none;
    }
  }
