* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 首页样式 */
.gate-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.gate-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gate-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.gate-icon {
    font-size: 3em;
    margin-right: 20px;
}

.gate-info {
    flex: 1;
}

.gate-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 8px;
}

.gate-description {
    color: #666;
    font-size: 1em;
    margin-bottom: 10px;
}

.gate-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gate-area,
.gate-difficulty {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    color: #666;
}

.gate-arrow {
    font-size: 2em;
    color: #667eea;
    margin-left: 15px;
}

.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.info-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 紫之门主题 */
.purple-theme .header {
    background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%);
}

.purple-theme .condition-card {
    border-left-color: #6f42c1;
}

.purple-theme .section-title {
    border-bottom-color: #6f42c1;
}

.purple-theme .round-badge {
    background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%);
}

.purple-theme .random-btn {
    background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%);
}

.purple-theme .random-btn:hover {
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

.purple-theme .gate-card:hover {
    border-color: #6f42c1;
}

.purple-theme .gate-arrow {
    color: #6f42c1;
}

/* 黑之门主题 */
.black-theme .header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.black-theme .condition-card {
    border-left-color: #000000;
}

.black-theme .section-title {
    border-bottom-color: #000000;
}

.black-theme .random-btn {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}

.black-theme .random-btn:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.black-theme .gate-card:hover {
    border-color: #2c2c2c;
}

.black-theme .gate-arrow {
    color: #2c2c2c;
}

/* 青之门主题 */
.blue-theme .header {
    background: linear-gradient(135deg, #2196F3 0%, #00BCD4 100%);
}

.blue-theme .condition-card {
    border-left-color: #2196F3;
}

.blue-theme .section-title {
    border-bottom-color: #2196F3;
}

.blue-theme .random-btn {
    background: linear-gradient(135deg, #2196F3 0%, #00BCD4 100%);
}

.blue-theme .random-btn:hover {
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.blue-theme .gate-card:hover {
    border-color: #2196F3;
}

.blue-theme .gate-arrow {
    color: #2196F3;
}

/* 中二节奏主题 */
.chunnibyou-theme .header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.chunnibyou-theme .condition-card {
    border-left-color: #ff6b9d;
}

.chunnibyou-theme .section-title {
    border-bottom-color: #ff6b9d;
}

.chunnibyou-theme .round-badge {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.chunnibyou-theme .random-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.chunnibyou-theme .random-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.chunnibyou-theme .gate-card:hover {
    border-color: #ff6b9d;
}

.chunnibyou-theme .gate-arrow {
    color: #ff6b9d;
}

.chunnibyou-card {
    border-left: 4px solid #ff6b9d;
}

.chunnibyou-card:hover {
    border-color: #ff6b9d;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header .subtitle {
    font-size: 1.1em;
    opacity: 0.95;
}

.content {
    padding: 30px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f093fb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.condition-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.condition-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.condition-card.completed {
    background: #d4edda;
    border-left-color: #28a745;
}

.condition-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checkbox:hover {
    background: #e9ecef;
}

.checkbox.checked {
    background: #28a745;
    border-color: #28a745;
}

.checkbox.checked::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.condition-content h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.condition-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

.song-list {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.song-jacket {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.song-meta {
    display: flex;
    gap: 15px;
    margin-top: 4px;
}

.song-artist {
    font-size: 0.85em;
    color: #888;
}

.song-bpm {
    font-size: 0.85em;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.song-item:hover {
    background: #f0f0f0;
    border-color: #f093fb;
}

.song-item.selected {
    background: #e8f5e9;
    border-color: #28a745;
}

.song-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.song-item.selected .song-checkbox {
    background: #28a745;
    border-color: #28a745;
}

.song-checkbox::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.song-info {
    flex: 1;
}

.song-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.song-count {
    font-size: 0.85em;
    color: #666;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #f093fb 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.95em;
}

.reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.2s;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.badge {
    display: inline-block;
    background: #f093fb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.highlight {
    color: #f5576c;
    font-weight: 600;
}

/* 挑战样式 */
.round-card {
    border-left-color: #f5576c;
}

.round-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    flex-shrink: 0;
}

.round-content h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.round-controls {
    margin-top: 15px;
}

.round-song-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.round-song-placeholder {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 0.95em;
}

.round-song-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.round-song-jacket {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.round-song-info {
    flex: 1;
}

.round-song-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.round-song-artist {
    color: #666;
    font-size: 0.9em;
}

.round-buttons {
    display: flex;
    gap: 10px;
}

.round-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.2s;
}

.random-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.random-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.complete-btn {
    background: #28a745;
    color: white;
}

.complete-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.complete-btn.completed {
    background: #dc3545;
}

.complete-btn.completed:hover {
    background: #c82333;
}

/* 难度选择器 */
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.difficulty-label {
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.difficulty-select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.difficulty-select:hover {
    border-color: #f5576c;
}

.difficulty-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 难度显示 */
.round-difficulty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.diff-label {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Basic难度 - 绿色 */
.diff-0,
.diff-label[data-diff="0"],
.time-node-item-value.diff-0,
.next-node-value.diff-0 {
    background: #28a745;
    color: white;
}

/* Advanced难度 - 黄色 */
.diff-1,
.diff-label[data-diff="1"],
.time-node-item-value.diff-1,
.next-node-value.diff-1 {
    background: #ffc107;
    color: #333;
}

/* Expert难度 - 红色 */
.diff-2,
.diff-label[data-diff="2"],
.time-node-item-value.diff-2,
.next-node-value.diff-2 {
    background: #dc3545;
    color: white;
}

/* Master难度 - 紫色 */
.diff-3,
.diff-label[data-diff="3"],
.time-node-item-value.diff-3,
.next-node-value.diff-3 {
    background: #6f42c1;
    color: white;
}

.diff-level {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    color: #666;
}

/* 时间节点检查器 */
.time-node-display {
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.time-node-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.time-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.time-node-label {
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

.time-node-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.3em;
}

.time-node-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-node-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.time-node-item-label {
    color: #666;
    font-size: 0.9em;
}

.time-node-item-value {
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.time-node-item-value.hp-1,
.time-node-item-value.hp-10,
.time-node-item-value.hp-30 {
    color: #28a745;
}

.time-node-item-value.hp-50,
.time-node-item-value.hp-100 {
    color: #ffc107;
}

.time-node-item-value.hp-999 {
    color: #dc3545;
}

.time-node-note {
    text-align: center;
    color: #999;
    font-size: 0.85em;
    padding-top: 5px;
}

/* 下一次变动样式 */
.next-node {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #e0e0e0;
}

.next-node-header {
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.next-node-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.next-node-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: #fff9e6;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
}

.next-node-label {
    color: #666;
    font-size: 0.85em;
}

.next-node-value {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.next-node-value.time-left {
    color: #667eea;
    font-size: 0.95em;
}

/* 未开放状态 */
.time-node-content.not-opened {
    opacity: 0.7;
}

.status-closed {
    color: #dc3545;
    font-size: 1.2em;
}

/* 返回主页面按钮 */
.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.nav-back:hover {
    background: #e8e8e8;
    transform: translateX(-3px);
}

/* 功能导航样式 */
.feature-navigation {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.feature-navigation h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.feature-icon {
    font-size: 2.5em;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-info {
    flex: 1;
}

.feature-info h4 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-info p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.feature-arrow {
    font-size: 1.8em;
    color: #667eea;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-arrow {
    transform: translateX(5px);
    color: #764ba2;
}

/* ICP备案 */
.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #e9ecef;
}

.icp-info {
    color: #666;
    font-size: 0.9em;
}

.icp-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.icp-info a:hover {
    color: #f5576c;
    text-decoration: underline;
}

/* 血量扣除详情样式 - 行内显示 */
.hp-details-item {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%) !important;
    border-left: 3px solid #ef5350;
}

.hp-details-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 0 0 6px 6px;
    margin-top: -8px;
    margin-bottom: 8px;
}

.hp-detail-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

/* Critical Perfect - 黄色 */
.hp-detail-pill.hp-critical {
    background: linear-gradient(135deg, #fffde7 0%, #fff59d 100%);
    border: 1px solid #fdd835;
    color: #f57f17;
}

/* Perfect - 橙色 */
.hp-detail-pill.hp-perfect {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border: 1px solid #ff9800;
    color: #e65100;
}

/* Great - 粉色 */
.hp-detail-pill.hp-great {
    background: linear-gradient(135deg, #fce4ec 0%, #f48fb1 100%);
    border: 1px solid #e91e63;
    color: #c2185b;
}

/* Good - 绿色 */
.hp-detail-pill.hp-good {
    background: linear-gradient(135deg, #e8f5e9 0%, #a5d6a7 100%);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* Miss - 灰色 */
.hp-detail-pill.hp-miss {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 1px solid #9e9e9e;
    color: #616161;
}

/* 下次变动的二阶段规则显示 */
.next-hp-details-inline {
    flex-wrap: wrap;
}

.next-hp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.hp-pill-current {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    background: #f5f5f5;
    border: 1px solid #bdbdbd;
    color: #757575;
}

.hp-pill-next {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.hp-pill-next.hp-perfect {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border: 1px solid #ff9800;
    color: #e65100;
}

.hp-pill-next.hp-great {
    background: linear-gradient(135deg, #fce4ec 0%, #f48fb1 100%);
    border: 1px solid #e91e63;
    color: #c2185b;
}

.hp-pill-next.hp-good {
    background: linear-gradient(135deg, #e8f5e9 0%, #a5d6a7 100%);
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.hp-pill-next.hp-miss {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 1px solid #9e9e9e;
    color: #616161;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .hp-details-inline {
        gap: 6px;
    }
    
    .hp-detail-pill {
        padding: 3px 8px;
        font-size: 0.8em;
    }
    
    .next-hp-pills {
        gap: 4px;
    }
    
    .hp-pill-current,
    .hp-pill-next {
        padding: 2px 6px;
        font-size: 0.75em;
    }
}









