.body {
    background: rgb(244, 241, 249);
    background-image: url(grid.svg);
    background-repeat: repeat;
    background-size: 300px 300px;
  }

form.inline {
    margin: 0px;
}

form.inline label {
    display: block;
}

form.inline label.inline {
    display: inline-block;
}

form.inline div.row {
    padding-bottom: 5px;
}

form.padded {
    padding-bottom: 5px;
}

form.inline select {
    vertical-align: bottom;
    margin-right: 5px;
}

input.inline {
    margin-right: 5px;
}

button::-moz-focus-inner, input::-moz-focus-inner {
    border:0;
    padding:0;
}

form div.action {
    margin-top: 5px;
}

option.placeholder {
    font-style: italic;
}

.button {
    background-color: #4CAF50; /* 按钮背景色 */
    border: none;
    color: white; /* 文字颜色 */
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    transition: all 0.3s ease; /* 动画效果 */
    cursor: pointer;
  }

.button:hover {
    background-color: #45a049; /* 鼠标悬停时背景颜色 */
    transform: scale(1.05); /* 放大效果 */
  }

.button:active {
    background-color: #3e8e41; /* 点击时背景颜色 */
    transform: scale(0.98); /* 按下效果 */
  }

.button:focus {
    outline: none; /* 去除聚焦时的边框 */
  }

  /* 适配小屏幕 */
@media (max-width: 768px) {
    .button {
      font-size: 14px;
      padding: 12px 28px;
    }
  }


/* Submit Button Style */
input[type="submit"] {
    padding: 8px 16px;
    font-size: 0.875rem;
    border: 1px solid #007bff; /* 按钮边框颜色 */
    background-color: #007bff; /* 按钮背景颜色 */
    border-radius: 5px; /* 按钮圆角 */
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s; /* 添加过渡效果 */
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #0056b3; /* 鼠标悬停时背景颜色 */
    border-color: #0056b3; /* 鼠标悬停时边框颜色 */
    color: #fff; /* 鼠标悬停时文字颜色 */
}

/* Text and Textarea Style */
input[type="text"],
input[type="password"],
textarea {
    border: 1px solid #dadada;
    padding: 8px;
    border-radius: 0px;
}

/* Hover Effect */
input[type="submit"]:hover,
input[type="button"]:hover,


select {
    border: 1px solid #dadada;
    padding: 4px 4px 4px 4px;
    border-radius: 0px;
    width: 100%;
}

input[type="button"] {
    margin-right: 5px;
}

button.toggle:not(:last-child):not(:only-child), button.edit:not(:last-child):not(:only-child), button.delete:not(:last-child):not(:only-child), button.add:not(:last-child):not(:only-child), button.nav:not(:last-child):not(:only-child) {
    margin-right: 5px;
}

span + button.edit, span + button.toggle, span + button.delete, span + button.add,
div + button.edit, div + button.toggle, div + button.delete, div + button.add {
    margin-left: 15px;
}

button.prev::before {
    content: "\2190";
    font-weight: bold;
    margin-right: 5px;
}

button.next::after {
    content: "\2192";
    font-weight: bold;
    margin-left: 5px;
}

button.active {
    text-shadow: 0.33px 0.33px #000000;
    border: 1px solid #999999;
}

button.delete {
    border: 1px solid #d6caca;
    background: #ffe4e4;
    color: #300000;
}

.popn-nav button, .settings-nav button {
    height: 32px;
}


.bishi.border {
    border-color: #EF6A32;
}

.mga.border {
    border-color: #ff0000;
}

.ddr.border {
    border-color: #017351;
}

.iidx.border {
    border-color: #A12A5E;
}

.jubeat.border {
    border-color: #FBBF45;
}

.museca.border {
    border-color: #AAD962;
}

.pnm.border {
    border-color: #ED0345;
}

.reflec.border {
    border-color: #03C383;
}

.sdvx.border {
    border-color: #710162;
}

div.container div.section:not(:first-child) {
    padding-top: 20px;
    clear: both;
}

div.container div.floating.right {
    float: right;
}

span.separator {
    font-size: large;
    font-weight: bold;
    padding-left: 5px;
    padding-right: 5px;
}

div.labelledsection.horizontal {
    display: inline-block;
    margin: 0px;
}

div.labelledsection.vertical {
    display: block;
    margin-bottom: 5px;
}

div.labelledsection.horizontal:not(:last-child):not(:only-child) {
    margin-right: 20px;
}

div.labelledsection div.label {
    font-weight: bold;
}

div.labelledsection div.content {
    margin: 0px;
    padding-bottom: 0px;
}

div.labelledsection.centered div.content, div.labelledsection.centered div.label {
    text-align: center;
}

div.labelledsection.padded {
    text-align: center;
    width: 150px;
    padding-top: 20px;
    padding-bottom: 20px;
}

div.labelledsection.filled {
    background-color: #f7f7f7;
    border: 1px dashed #dddddd;
}

div.labelledsection.iidx.themeoption select {
    width: 200px;
}

div.labelledsection.iidx.qprooption select {
    width: 300px;
}

div.labelledsection.jubeat.emblemoption select {
    width: 300px;
}

div.labelledsection.ddr.option select {
    width: 200px;
}

div.iidx.menuoption label, div.arcade.menuoption label {
    position: relative;
    vertical-align: middle;
    bottom: 3px;
    font-size: small;
}

div.iidx.menuoption, div.arcade.menuoption {
    padding-bottom: 5px;
}

div.arcade.menuoption label {
    display: inline-block;
    min-width: 200px;
}

div.score span.label {
    font-size: smaller;
    font-weight: bold;
}

div.score span.status {
    font-size: smaller;
    font-weight: bold;
}

div.score span.score {
    padding-left: 3px;
    padding-right: 3px;
}

div.score span.grade, table.topscores span.grade {
    font-weight: bold;
    padding-right: 3px;
}

div.songname {
    font-weight: bold;
    font-size: large;
}

div.songartist, div.songgenre, div.songdifficulty, div.songdifficulties, div.songplays {
    font-size: small;
}

ul.ownerlist {
    margin: 0px;
    padding: 0px;
}

ul.ownerlist li {
    margin-left: 25px;
    margin-right: 10px;
}

div.card {
    display: inline-block;
}

div.placeholder, span.placeholder {
    font-style: italic;
}

span.raised {
    font-size: smaller;
    font-weight: bold;
    text-transform: uppercase;
}

dl {
    margin: 0px;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0px;
    padding-bottom: 5px;
}

div.longmessage {
    margin-bottom: 10px;
}

div.longmessage pre {
    border: 1px solid rgba(128, 128, 128, 0.33);
    background: rgb(232, 232, 232);
    padding: 5px;
    margin-bottom: 0px;
}

span.filter:not(:last-child) {
    padding-right: 20px;
}

.slider.padded {
    margin-right: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.slider.spaced {
    margin-left: 5px;
}

span.slider-label {
    position: relative;
    top: -3px;
}

.slider.fix .label {
    margin-top: 1px;
    margin-bottom: -1px;
}

div.emblem {
    position: relative;
    width: 256px;
    height: 256px;
    padding-bottom: 10px;
}

div.emblem div {
    position: absolute;
}

div.emblem div img {
    width: 256px;
    height: 256px;
}

div.messages {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
}

div.container {
    padding-top: 15px;
    padding-bottom: 0px;
    padding-left: 30px;
    padding-right: 30px;
    margin: 0px;
}

div.loading {
    margin-left: 50%;
    margin-right: 50%;
    height: 24px;
}

.tinynav {
    display: none;
}

@media only screen and (max-width: 600px) {
    .tinynav {
        display: inline-block;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    #nav {
        display: none;
    }
}

@media only screen and (min-width: 600px) {
    div.jconfirm-box-container {
        margin-left: 25%;
        margin-right: 25%;
        width: 50%;
    }
}

@media only screen and (hover: none) {
    .tinynav {
        display: inline-block;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    #nav {
        display: none;
    }
}

ul.messages {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

ul.messages li {
    padding: 5px;
    margin-top: 10px;
    border-radius: 0px;
    font-size: smaller;
}

ul.messages div.close {
    font-size: smaller;
    text-decoration: none;
    display: inline-block;
    color: #000000;
    float: right;
    cursor: pointer;
    margin-right: 3px;
}

ul.messages li.error {
    border: 1px solid #e2afb6;
    background-color: #ffced5;
}

ul.messages li.warning {
    border: 1px solid #e6deb4;
    background-color: #fff7ce;
}

ul.messages li.success {
    border: 1px solid #cddcc1;
    background: #e7ffd4;
}

ul.messages li.info {
    border: 1px solid #b0b0d2;
    background-color: #d0d0ff;
}

a.cursor {
    cursor: default;
}

/* 标题样式 */
h1, h2, h3, h4, h5 {
    font-size: 1.5rem; /* 更大的标题字号 */
    margin: 0 0 20px;
    color: #ffffff;
    padding: .5rem 1rem;
    font-weight: bold; /* 字体粗细 */
    border-bottom: 2px solid #ddd; /* 更浅的底部边框 */
    padding-bottom: 10px; /* 增加底部填充 */
}

img.loading {
    vertical-align: text-bottom;
}

div.tooltip {
    position: relative;
    display: inline-block;
}

div.tooltip span.tooltiptext {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    width: 300px;

    /* Position the tooltip text */
    position: absolute;
    top: -5px;
    left: 105%;
    z-index: 1;
}

div.tooltip span.tooltiptext::after {
    content: "";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #555 transparent transparent;
}

div.tooltip:hover span.tooltiptext {
    visibility: visible;
}

div.pill {
    display: inline-block;
    border: 1px solid red;
    background: pink;
    border-radius: 5px;
    padding-left: 10px;
    margin-left: 10px;
    padding-right: 10px;
}

pre {
    white-space: pre-wrap;
}

span.sort {
    float: right;
}

span.checkbox {
    padding-right: 5px;
    cursor: default;
}

div.slider {
    display: inline-flex;
    height: 18px;
    border-radius: 10px;
}

div.slider.on {
    background: #6eb9f7;
    border: 1px solid #3da2f5;
}

div.slider.off {
    background: #cccccc;
    border: 1px solid #a0a0a0;
}

div.slider span.label {
    width: 70px;
    font-weight: normal;
    font-size: small;
    height: 16px;
    display: inline-block;
}

div.slider span.label.on {
    text-align: center;
}

div.slider span.label.off {
    text-align: center;
}

div.slider span.ball {
    position: absolute;
    display: inline-block;
    border-radius: 8px;
    background: white;
    width: 14px;
    height: 14px;
    margin: 2px;
}

div.slider span.ball.off {
    margin-left: 54px;
}

table.list, table.add {
    border-collapse: collapse;
}

thead tr th {
    cursor: default;
}

table.add th {
    text-align: left;
    padding: 5px;
}

table.list th {
    background-color: #e7e7e7;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

table.list th.action {
    background-color: #ffffff;
    border: none;
}

table.list tbody td, table.add tbody td {
    padding: 5px;
    vertical-align: top;
}

table.list tr.header td {
    vertical-align: middle ! important;
}

table.list tbody td {
    border: 1px solid #e0e0e0;
    padding: 10px;
}

table td.center {
    word-break: break-word;
    text-align: center;
}

table.list input[type="text"], table.add input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
}

table.list select, table.add select {
    width: 100%;
}

table.list tbody tr:nth-child(odd) td {
    background-color: #f7f7f7;
}

table.list tbody tr:nth-child(even) td {
    background-color: #ffffff;
}

table td.subheader {
    background-color: #e7e7e7 ! important;
    font-weight: bold;
}

table tfoot td {
    padding-top: 5px;
}

table.records, table.attempts, table.topscores, table.players, table.events {
    width: 100%;
}

table.jubility {
    width: 100%;
    width: calc(100% - 15px);
    float: left;
    margin: 5px;
}

.row {
    display: flex;
}

.column {
    flex: 50%;
    padding: 5px;
}

@media screen and (max-width: 600px) {
    .row {
        display: inline;
    }
}

table.records a, table.attempts a, table.topscores a, table.players a, table.jubility a {
    text-decoration: none;
}

td.edit {
    background-color: #ffffff ! important;
    border: none ! important;
}

td.nochart {
    background-color: #e7e7e7 ! important;
}

table.list input[type="checkbox"], table.add input[type="checkbox"] {
    width: 26px;
    height: 26px;
    margin: 0px;
}

table.events div.circle {
    width: 16px;
    height: 16px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    display: inline-block;
    margin-left: 0px;
    margin-right: 5px;
    margin-top: 2px;
    margin-bottom: -2px;
}

table.events td.details div.inline {
    display: inline-block;
    margin-right: 5px;
}

table.events td.details pre.inline {
    display: inline-block;
    margin: 0px;
}

table.events td.exception div.circle {
    background-color: rgb(214, 72, 72);
}

table.events td.unhandled div.circle {
    background-color: rgb(255, 165, 0);
}

table.events td.unauthorized div.circle {
    background-color: rgb(119, 0, 119);
}

table.events td.scheduled div.circle {
    background-color: #2d6ccc;
}

table.events td.pcbevent div.circle {
    background-color: #26a226;
}

table.events td.transaction div.circle {
    background-color: #f9ed00;
}

table.events td.profilepurge div.circle {
    background-color: rgb(214, 72, 72);
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* 需要设置为相对定位，以便覆盖背景 */
}

.profile-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    text-align: center;
}

.profile-title {
    font-size: 2rem;
    color: #333;
}

.version-selector button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.version-selector button.active {
    background: linear-gradient(to right, #0056b3, #003f7f);
}

.info-section, .link-section {
    margin: 10px 0;
    width: 80%;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-btn {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: #0056b3;
}

.login-container {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}
.login-container h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.login-container a {
    color: #007BFF;
    text-decoration: none;
}

label {
    display: block;
    color: #0a0a0a;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
}

/* 添加动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 定义动画类 */
.animate {
    animation: pulse 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@font-face {
    font-family: 'MyCustomFont'; /* 字体名称，你可以自定义 */
    src: url('SmileySans-Oblique.ttf.woff2') format('woff'); /* 字体文件的路径和格式 */
    /* 可选的字体权重和样式设置 */
    font-weight: normal;
    font-style: normal;
}

        /* 响应式动画 */
        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(-20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            /* 在小屏幕上的样式 */
            .container {
                max-width: 100%;
            }
        }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
.search-section {
    margin-bottom: 20px;
    }

.section {
    background-color: #f9f9f9; /* 更柔和的背景色 */
    margin: 20px;
    padding: 20px;
    border-radius: 10px; /* 更圆润的边框 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 提升阴影效果 */
}
        
/* ========== 卡片列表 ========== */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  .card-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  /* 卡片悬停动效 */
  .card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }
  
  /* 卡片内容布局 */
  .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* 卡片编号样式 */
  .card-number {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.8rem;
    background: var(--background);
    border-radius: 8px;
    word-break: break-all;
  }
  
  /* NFC ID显示 */
  .nfc-id {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nfc-id::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('nfc-icon.svg') no-repeat center;
  }
  
  /* ========== 删除按钮 ========== */
  .delete-btn {
    align-self: flex-end;
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .delete-btn:hover {
    background: #ff3333;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
  }
  
  .delete-btn::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url('trash-icon.svg') no-repeat center;
  }
  
  /* ========== 添加表单 ========== */
  
  .input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  
  .card-input {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .card-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
  }
  
  .submit-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
  }
  
  /* ========== 空状态提示 ========== */
  .empty-state {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
  }
  
  .empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.6;
  }
  
  /* ========== 响应式设计 ========== */
  @media (max-width: 768px) {
    .card-list {
      grid-template-columns: 1fr;
    }
    
    .input-group {
      grid-template-columns: 1fr;
    }
    
    .card-item {
      padding: 1rem;
    }
  }
  
  /* ========== 加载动画 ========== */
  @keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
  }
  
  .skeleton-card {
    background: linear-gradient(
      90deg,
      rgba(240,240,240,0.9) 25%,
      rgba(230,230,230,0.9) 50%,
      rgba(240,240,240,0.9) 75%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
  }

/* 歌曲封面样式 */
.song-cover img {
    width: 170px;
    border-radius: 10px;
    object-fit: cover; /* 保持封面比例 */
    margin-bottom: 15px;
}

/* 分数、评价等级样式 */
.score-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
}

.score-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.score-label {
    font-size: 23px;
    color: #777;
    margin-right: 3px;
}

.score-value {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.grade-image {
    height: 70px;
    margin-left: 10px;
}


/* 卡片头部样式 */
.card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.player-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* 卡片主体内容 */
.card-body {
    display: flex;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: column;
}

/* 排行榜分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.pagination .loading {
    display: flex;
    align-items: center;
    color: #888;
}

.pagination .loading img {
    width: 16px;
    margin-right: 5px;
}

/* 页码按钮样式 */
.pagination .prev,
.pagination .next {
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination .prev:hover,
.pagination .next:hover {
    background-color: #005bb5;
}

.pagination .prev:disabled,
.pagination .next:disabled {
    background-color: #d3d3d3;
    cursor: not-allowed;
}

/* 删除按钮 */
.delete-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.delete-btn:hover {
    background-color: #ff4d4d;
    transform: scale(1.1);
}

/* 表单样式 */
.add-card form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-card .fields {
    display: flex;
    gap: 10px;
}

.add-card .field {
    flex: 1;
}

.add-card input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.add-card input[type="submit"] {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-card input[type="submit"]:hover {
    background-color: #0056b3;
}


        
        .card-item h3 {
            font-size: 1.8rem;
            color: #333;
            margin-bottom: 15px;
        }
        
        .delete {
            background-color: #ff6b6b; /* 删除按钮背景色 */
            color: #fff;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
        }
        
        .delete:hover {
            background-color: #ff0000; /* 鼠标悬停时的删除按钮背景色 */
        }

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

        p {
            font-size: 1.1em;
            margin-bottom: 20px;
        }

        a {
            color: #007bff;
            text-decoration: none;
        }
        
        a:hover {
            text-decoration: underline;
        }
        
        blockquote {
            border-left: 5px solid #007bff;
            padding-left: 15px;
            margin-left: 0;
            font-style: italic;
        }
        
        img {
            -ms-interpolation-mode: bicubic;
            display: inline-block;
            height: auto;
            max-width: 100%;
            vertical-align: middle;
            border-style: none;
        }
        
        ul, ol {
            margin-bottom: 20px;
        }
        
        /* Responsive Styles */
        @media (max-width: 600px) {
            .container {
                padding: 10px;
            }
            h1 {
                font-size: 2em;
            }
            h2 {
                font-size: 1.8em;
            }
            h3 {
                font-size: 1.4em;
            }
            p {
                font-size: 1em;
            }
        }

        /* Loading Image Style */
        .loading {
            width: 16px;
            height: 16px;
            margin-left: 5px; /* 添加左侧间距 */
        }

.grid-x {
    display: flex;
    flex-flow: row wrap;
}

/* 添加动画与增强按钮样式 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-item {
    animation: fadeIn 0.8s ease-in-out;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 提交按钮增强样式 */
input[type="submit"] {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

input[type="submit"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 版本选择导航样式 */
.version-nav {
    display: flex;
}

.card-footer {
    padding: 15px;
    text-align: center;
    color: #666;
}

.version-nav .nav {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.version-nav .nav:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.version-nav .nav.active {
    background-color: #28a745;
}

/* 标签与值的样式 */
.LabelledSection {
    display: flex;
    margin-bottom: 15px;
    font-size: 1rem;
}

.LabelledSection label {
    font-weight: bold;
    color: #333;
    width: 200px;
}

.LabelledSection .content {
    color: #555;
}

/* 资料链接部分 */
.actions a {
    color: #007bff;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.actions a:hover {
    color: #0056b3;
}

.actions .separator {
    margin: 0 10px;
    color: #ccc;
}

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

.hamburger-menu div {
    width: 28px;
    height: 3px;
    background: white;
    margin: 4px 0;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.hamburger-menu div:nth-child(1) {
    transform: rotate(0°) translate(0, 0);
}
.hamburger-menu div:nth-child(2) {
    transform: rotate(0°) translate(0, 4px);
}
.hamburger-menu div:nth-child(3) {
    transform: rotate(0°) translate(0, 8px);
}

/* 主内容 */
main.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
    flex-direction: row;
    justify-content: center;
}

div.card.button {
    display: block; /* 使 button 成为块级元素 */
    margin: 0 auto; /* 自动左右边距 */
}

.player-avatar {
    margin-right: 15px;
}

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

.search-bar {
    width: 80%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.message-box {
    background-color: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* 按钮基础样式 */
.btn {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn:active {
    transform: scale(0.98);
}

/* 不同类型按钮 */
.btn-primary { background: var(--primary-color); }
.btn-secondary { background: var(--secondary-color); }
.btn-danger { background: var(--danger-color); }

/* 统一表单输入样式 */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.25);
}

/* 下拉选择框优化 */
.select-field {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="%23e0e0e" d="M8,0L0,8h8L8,16L16,8Z"/></svg>') no-repeat right center;
    cursor: pointer;
}

.btn-rival {
    padding: 10px 20px;
    margin: 5px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-rival.add {
    background-color: #4caf50;
    color: white;
}

.btn-rival.add:hover {
    background-color: #45a049;
}

.btn-rival.remove {
    background-color: #f44336;
    color: white;
}

.btn-rival.remove:hover {
    background-color: #d32f2f;
}

.song-info {
    text-align: center;
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.songname {
    font-weight: bold;
    font-size: 16px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.attempts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.difficulty-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.difficulty-container {
    position: relative;
    display: inline-block;
}

.difficulty-level {
    position: absolute;
    top: 50%;
    right: 25px;  /* 稍微偏右的位置 */
    transform: translateY(-50%);  /* 垂直居中 */
    color: white;  /* 根据需要调整文字颜色 */
    font-size: 20px;  /* 根据需要调整文字大小 */
}

/* ======== 转换功能区域 ======== */
.conversion-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.conversion-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.conversion-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.conversion-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    outline: none;
}

/* ======== 按钮样式 ======== */
.action-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white !important;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.action-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ======== 结果展示 ======== */
.conversion-result {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 1.5rem;
}

.result-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: #2c3e50;
    word-break: break-all;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* ======== 错误提示 ======== */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #ffcdd2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ======== 响应式优化 ======== */
@media (max-width: 768px) {
    .card-management-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .conversion-input-group {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}

/* ======== 排行榜页面样式 ======== */
.topscores-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.song-info-section {
    text-align: center;
    margin-bottom: 2rem;
}

.song-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.song-artist, .song-difficulty {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.song-cover-container {
    margin-top: 1rem;
}

.song-name {
    font-size: 1.2rem;
    color: #333;
    margin-top: 0.5rem;
}

.no-attempts {
    color: #666;
    font-style: italic;
}

.difficulty-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.difficulty-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-button:hover {
    background: #e0e0e0;
}

.difficulty-button.active {
    background: #007bff;
    color: #fff;
}

.scores-table-section {
    margin-bottom: 2rem;
}

.player-name {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.player-name:hover {
    color: #0056b3;
}

.grade, .clear-type, .score, .combo {
    font-weight: bold;
    color: #333;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0°); }
    100% { transform: rotate(360°); }
}

/* 加载容器样式 */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(circle at center, #f8f9fa 0%, #e0e0e0 100%);
}

.chart-section {
    margin-top: 2rem;
    text-align: center;
}

.chart-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}
  
  /* 动态背景效果 */
  body::before {
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      45deg,
      var(--sdvx-blue),
      var(--sdvx-purple),
      var(--sdvx-blue)
    );
    opacity: 0.1;
    z-index: -1;
    animation: bg-pan 20s linear infinite;
  }
  
  @keyframes bg-pan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* 统一卡片样式 */
  .sdvx-card {
    background: rgba(42, 45, 125, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
  }
  
  .sdvx-card:hover {
    transform: translateY(-5px);
  }
  
  /* 霓虹文字效果 */
  .neon-text {
    text-shadow: 
      0 0 5px var(--neon-cyan),
      0 0 10px var(--neon-cyan),
      0 0 20px var(--neon-pink),
      0 0 30px var(--neon-pink);
  }
  
  /* 按钮特效 */
  .sdvx-button {
    background: linear-gradient(135deg, var(--sdvx-blue), var(--sdvx-purple));
    border: 2px solid var(--neon-cyan);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
  }
  
  .sdvx-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent,
      rgba(255,255,255,0.2),
      transparent
    );
    transform: rotate(45deg);
    animation: button-glow 3s infinite;
  }
  
  @keyframes button-glow {
    0% { transform: rotate(45deg) translateX(-150%); }
    100% { transform: rotate(45deg) translateX(150%); }
  }



.sdvx-container {
    padding: 2rem;
    min-height: 100vh;
}

.sdvx-main-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 50px rgba(42,45,125,0.5);
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.neon-text {
    text-shadow: 
        0 0 5px var(--neon-cyan),
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-pink);
    text-align: center;
    margin-bottom: 2rem;
}

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

.sdvx-card {
    background: rgba(42, 45, 125, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,255,255,0.2);
}

.sdvx-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0,255,255,0.3);
}

.player-info {
    overflow: hidden;
}

.player-link a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.player-link a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255,0,255,0.5);
}

.sdvx-id {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.3rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sdvx-blue), var(--neon-cyan));
    position: relative;
    transition: width 0.5s ease;
}

.score-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.difficulty-badge {
    background: rgba(0,255,255,0.1);
    color: var(--neon-cyan);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--neon-cyan);
}

.grade-indicator {
    background: linear-gradient(135deg, var(--sdvx-purple), var(--neon-pink));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.search-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--sdvx-blue);
    border-radius: 30px;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

.sdvx-button {
    background: linear-gradient(135deg, var(--sdvx-blue), var(--sdvx-purple));
    border: 2px solid var(--neon-cyan);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sdvx-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0,255,255,0.4);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@keyframes laser-glow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sdvx-main-card {
        padding: 1rem;
    }
    
    .card-list {
        grid-template-columns: 1fr;
    }
    
    .sdvx-card {
        padding: 1rem;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table thead {
    background: var(--background-gray);
}

.table th {
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.table tr:hover td {
    background: var(--background-gray);
}

/* 微交互动画 */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 缩放动画 */
.scale-up {
    animation: scaleUp 0.3s ease-out;
}

@keyframes scaleUp {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* SDVX 排行榜样式重构 */
:root {
    --sdvx-blue: #2a2d7d;
    --sdvx-purple: #710162;
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-blue: #1e90ff;
    --dark-bg: #121212;
    --card-bg: rgba(25, 25, 35, 0.85);
    --text-light: #ffffff;
    --text-dimmed: rgba(255, 255, 255, 0.7);
  }
  
  /* 基础重置 */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* 主容器 */
  .sdvx-container {
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #121222, #1a1a2e);
    position: relative;
    overflow: hidden;
  }
  
  /* 背景效果 */
  .sdvx-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 20%, rgba(114, 1, 98, 0.4) 0%, transparent 25%),
      radial-gradient(circle at 80% 80%, rgba(42, 45, 125, 0.4) 0%, transparent 25%);
    z-index: 0;
  }
  
  .laser-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
    animation: grid-pulse 4s ease-in-out infinite;
  }
  
  @keyframes grid-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
  }
  
  /* 主卡片 */
  .sdvx-main-card {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    animation: card-glow 6s ease-in-out infinite;
  }
  
  @keyframes card-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.15); }
    50% { box-shadow: 0 0 60px rgba(255, 0, 255, 0.2); }
  }
  
  /* 歌曲信息头部 */
  .song-header {
    padding:10px;
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .jacket-art {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    background: #121212;
}

.jacket-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.jacket-art img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.jacket-art img.loading {
    opacity: 0;
}

.jacket-art img.loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

.cover-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.cover-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: rgba(0, 255, 255, 0.9);
    animation: spin 1s linear infinite;
}

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

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

/* 限制图表高度，防止无限拉长 */
.score-distribution canvas {
    max-height: 300px !important;
}
  .song-meta {
    flex: 1;
  }
  
  .neon-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  }
  
  /* 难度选择器 */
  .difficulty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .diff-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  .diff-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
  
  .diff-tag.active {
    background: linear-gradient(135deg, var(--sdvx-blue), var(--sdvx-purple));
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  }
  
  .diff-label {
    font-weight: 500;
    margin-right: 0.5rem;
    color: #fff;
  }
  
  .diff-level {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
  }
  
  /* 数据可视化区域 */
  .data-viz-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (max-width: 992px) {
    .data-viz-container {
      grid-template-columns: 1fr;
    }
  }
  
  .viz-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  }
  
  /* 分数分布图 */
  .score-distribution {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
  }
  
  .sdvx-chart {
    width: 100%;
    height: 300px;
  }
  
  /* 玩家排名列表 */
  .player-rankings {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
  }
  
  .ranking-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
  }
  
  .ranking-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .ranking-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
  }
  
  .ranking-list::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-cyan), var(--neon-pink));
    border-radius: 3px;
  }
  
  .ranking-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  
  .ranking-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
  }
  
  .player-card {
    display: block;
    text-decoration: none;
    width: 100%;
  }
  
  .player-name {
    display: block;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
  }
  
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    border-radius: 3px;
    position: relative;
  }
  
  .progress-fill::after {
    content: attr(data-score);
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 0.75rem;
    color: var(--text-dimmed);
  }
  
  .score-details {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    gap: 1rem;
  }
  
  .grade-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
  }
  
  .grade-badge[data-grade="AAA+"] {
    background: linear-gradient(90deg, #ffcc00, #ff6b6b);
    color: white;
  }
  
  .grade-badge[data-grade="AAA"] {
    background: linear-gradient(90deg, #ffcc00, #ffdf80);
    color: #333;
  }
  
  .grade-badge[data-grade="AA+"] {
    background: linear-gradient(90deg, #f5f5f5, #e0e0e0);
    color: #333;
  }
  
  .grade-badge[data-grade="AA"] {
    background: linear-gradient(90deg, #e0e0e0, #c0c0c0);
    color: #333;
  }
  
  .combo-count {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-dimmed);
  }
  
  .icon-combo {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 50%;
  }
  
  /* 加载状态 */
  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
  }
  
  .sdvx-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .knob-rotation {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-pink);
    animation: spinner 1.5s linear infinite;
  }
  
  @keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .sdvx-loader span {
    margin-top: 1rem;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--neon-cyan);
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .sdvx-container {
      padding: 1rem;
    }
    
    .sdvx-main-card {
      padding: 1.5rem;
    }
    
    .song-header {
      flex-direction: column;
    }
    
    .jacket-art {
      margin-right: 0;
      margin-bottom: 1.5rem;
    }
    
    .neon-title {
      font-size: 2rem;
      text-align: center;
    }
    
    .difficulty-tags {
      justify-content: center;
    }
  }