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

:root {
    /* 科技感配色方案 - 更醒目、更现代 */
    --primary-color: #00d4ff;
    --primary-dark: #0099ff;
    --primary-light: #33e0ff;
    --secondary-color: #8b5cf6;
    --secondary-dark: #6d3fd9;
    --accent-color: #00ff88;
    --accent-dark: #00cc6a;
    --success-color: #00ff88;
    --danger-color: #ff3366;
    --warning-color: #ffaa00;
    --dark-bg: #0a0a0f;
    --dark-bg-secondary: #050508;
    --card-bg: rgba(0, 212, 255, 0.05);
    --card-bg-hover: rgba(0, 212, 255, 0.1);
    --text-light: #ffffff;
    --text-primary: #e0f7ff;
    --text-secondary: #b3e5fc;
    --text-muted: #80d6ff;
    --border-color: rgba(0, 212, 255, 0.3);
    --border-hover: rgba(0, 212, 255, 0.6);
    --glow-color: rgba(0, 212, 255, 0.5);
    --shadow-color: rgba(0, 212, 255, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #050508 50%, #0a0a0f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-light);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu a,
.nav-menu span,
.nav-menu div {
    white-space: nowrap;
    flex-shrink: 0;
}

/* 书籍封面 - 右上角 */
.book-cover-corner {
    position: relative;
    margin-left: 1rem;
}

.book-cover-link {
    display: block;
    position: relative;
    transition: all 0.3s;
    line-height: 0;
}

.book-cover-mini {
    width: 90px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.book-cover-link:hover .book-cover-mini {
    transform: translateY(-8px) scale(1.08) rotate(2deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6), 0 0 0 4px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.8);
}

.book-cover-link::before {
    content: '📚';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.book-cover-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* 响应式设计 - 书籍封面 */
@media (max-width: 768px) {
    .book-cover-mini {
        width: 60px !important;
    }
    
    .book-cover-link {
        margin-left: 0.5rem;
    }
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.user-info {
    color: var(--text-muted);
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.flash-messages {
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0 3rem;
}

.flash-message {
    background: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* 首页样式 */
.hero-section {
    text-align: center;
    padding: 4rem 3rem;
    max-width: 100%;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: 0 3rem;
}

/* 卡片区域样式 */
.cards-section {
    max-width: 100%;
    padding: 0 3rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: center;
}

/* 核心卡片区域 - 尽可能一行显示 */
.core-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* 其他卡片区域 - 尽可能一行显示 */
.other-cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

/* 响应式：大屏幕时确保卡片充分利用空间 */
@media (min-width: 1600px) {
    .core-cards {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
    
    .other-cards {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .other-cards {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .other-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-section {
        padding: 0 1.5rem;
    }
    
    .core-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .other-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-cards {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .core-cards,
    .other-cards {
        grid-template-columns: 1fr;
    }
}

.card-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.hero-actions a,
.hero-actions button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* 设计感CTA按钮 */
.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-width: 320px;
    text-align: center;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: white;
    animation: gradientShift 3s ease infinite;
}

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

.btn-cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset,
                0 0 60px rgba(99, 102, 241, 0.4);
    animation: gradientShift 1.5s ease infinite;
}

.btn-cta-primary:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-cta-icon {
    font-size: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

.btn-cta-text {
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-cta:hover .btn-cta-arrow {
    transform: translateX(6px);
}

/* Banner样式 - 确保不换行 */
.testimonials-nav-banner {
    width: 100%;
    margin: 2rem 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 1rem 2rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.banner-content > * {
    white-space: nowrap;
    flex-shrink: 0;
}

.banner-icon {
    font-size: 1.5rem;
}

.banner-text {
    font-size: 1rem;
    color: var(--text-light);
}

.banner-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.banner-link:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.link-arrow {
    transition: transform 0.3s;
}

.banner-link:hover .link-arrow {
    transform: translateX(4px);
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .btn-cta {
        min-width: 280px;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
    
    .btn-cta-icon {
        font-size: 1.3rem;
    }
    
    .btn-cta-arrow {
        font-size: 1.3rem;
    }
    
    /* 小屏幕时导航栏允许换行 */
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .btn-cta {
        min-width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        gap: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-secondary {
        width: 100%;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
}

.features-section {
    background: rgba(26, 26, 46, 0.5);
    padding: 4rem 3rem;
    margin-top: 4rem;
    max-width: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    font-weight: 600;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-light);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #a78bfa 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #a78bfa;
}

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

.btn-success:hover {
    background: #059669;
}

.btn-block {
    width: 100%;
}

/* 认证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem; /* 增加表单组之间的间距 */
}

/* 创建工作坊模态框中的表单组需要更大的间距 */
#createGameModal .form-group {
    margin-bottom: 2rem;
}

/* 包含模式选择的表单组需要更大的底部间距 */
#createGameModal .form-group:has(.mode-selection) {
    margin-bottom: 2.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
                0 0 20px rgba(99, 102, 241, 0.3);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 游戏页面 */
.game-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    gap: 1rem;
    white-space: nowrap;
}

.game-header h1 {
    font-size: 2.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.game-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

.game-actions button,
.game-actions a {
    white-space: nowrap;
    flex-shrink: 0;
}

.card-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.game-card.selected {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.card-type-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-cost {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--warning-color);
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.solution-panel {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.solution-panel h3 {
    margin-bottom: 1rem;
}

.selected-cards {
    min-height: 100px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.empty-message {
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.selected-card-item {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-card-item .remove-btn {
    background: var(--danger-color);
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-actions {
    display: flex;
    gap: 1rem;
}

.solutions-list {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.solutions-list h3 {
    margin-bottom: 1rem;
}

.solution-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.solution-item-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.solution-card-tag {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(5, 5, 8, 0.98) 100%);
    margin: 2% auto;
    padding: 3rem;
    border-radius: 24px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 0 1px var(--border-color),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 100px var(--glow-color);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(20px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(99, 102, 241, 1) 0%,
        rgba(139, 92, 246, 1) 50%,
        rgba(99, 102, 241, 1) 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.modal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 0 20px var(--glow-color);
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    border-radius: 2px;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.close:hover {
    color: var(--text-light);
    background: rgba(99, 102, 241, 0.3);
    transform: rotate(90deg);
}

/* 管理后台 */
.admin-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

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

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-table-container {
    overflow-x: auto;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(99, 102, 241, 0.2);
    font-weight: bold;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 确保智能生成按钮可见 */
button[onclick*="generateContent"],
button[onclick*="generateContent"] *,
#visionModal button[onclick*="generateContent"],
#visionModal button[type="button"][onclick*="generateContent"],
.form-group button[onclick*="generateContent"],
.form-group button[type="button"][onclick*="generateContent"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
    min-width: 100px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* 确保愿景模态框中的按钮容器正确显示 */
#visionModal .form-group > div[style*="display: flex"] {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
}

#visionModal .form-group > div[style*="display: flex"] > button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 金字塔关系图样式 */
.pyramid-diagram {
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-left: 2rem;
    min-width: 280px;
    max-width: 320px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.pyramid-diagram h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.pyramid-structure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.pyramid-level {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.pyramid-level.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.pyramid-level-1 {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 100%;
    font-size: 1rem;
}

.pyramid-level-2 {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    width: 85%;
}

.pyramid-level-3 {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: white;
    width: 70%;
}

.pyramid-level-4 {
    background: linear-gradient(135deg, #a855f7 0%, #d8b4fe 100%);
    color: white;
    width: 55%;
}

.pyramid-arrow {
    color: rgba(99, 102, 241, 0.6);
    font-size: 1.2rem;
    margin: 0.25rem 0;
}

.pyramid-explanation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pyramid-explanation p {
    margin: 0.5rem 0;
}

.modal-content-with-pyramid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.modal-form-section {
    flex: 1;
    min-width: 0;
    position: relative;
}

.modal-content-with-pyramid .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 100;
}

.modal-form-section h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-right: 3.5rem; /* 为关闭按钮留出空间 */
}

@media (max-width: 1024px) {
    .modal-content-with-pyramid {
        flex-direction: column;
    }
    
    .pyramid-diagram {
        margin-left: 0;
        margin-top: 2rem;
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
    }
}

/* 价值树高亮动画 */
@keyframes highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.value-tree {
    transition: all 0.3s;
}

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

.btn-danger:hover {
    background: #dc2626;
}

/* 管理后台卡牌类型导航 */
.card-type-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 8px;
}

.card-type-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.card-type-btn:hover,
.card-type-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 卡牌类型徽章 */
.card-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-type-vision {
    background: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.card-type-goal {
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.card-type-task {
    background: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.card-type-pain_point {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.card-type-data {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.card-type-system {
    background: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.card-type-tech {
    background: rgba(236, 72, 153, 0.3);
    color: #f9a8d4;
}

.card-type-scenario {
    background: rgba(14, 165, 233, 0.3);
    color: #7dd3fc;
}

.card-type-project {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.3);
    color: #d1d5db;
}

/* 页脚 */
.footer {
    background: rgba(26, 26, 46, 0.95);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    color: var(--text-muted);
}

/* 价值树样式 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.game-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 153, 255, 0.08) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.game-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.game-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.game-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.game-actions {
    display: flex;
    gap: 0.5rem;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-info-panel {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 153, 255, 0.08) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.value-tree {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 153, 255, 0.08) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.value-tree h3 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 800;
    text-shadow: 0 0 15px var(--glow-color);
    font-size: 1.8rem;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.section-header h4,
.section-header h5,
.section-header h6 {
    margin: 0;
    flex: 1;
    min-width: 150px;
}

.visions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vision-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 153, 255, 0.12) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.4s;
}

.vision-card:hover {
    box-shadow: 0 8px 30px var(--glow-color);
    border-color: var(--primary-light);
}

.vision-header {
    margin-bottom: 1.5rem;
}

.vision-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.vision-content h4 {
    flex: 1;
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-color);
}

.vision-actions {
    display: flex;
    gap: 0.5rem;
}

.goals-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.goals-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.goal-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 204, 106, 0.12) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 14px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    transition: all 0.4s;
}

.goal-card:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.goal-header h6 {
    flex: 1;
    font-size: 1.15rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
}

.goal-info {
    margin-bottom: 1rem;
}

.goal-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.tasks-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.task-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(109, 63, 217, 0.12) 100%);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    transition: all 0.4s;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.task-card.status-pending {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.12) 0%, rgba(255, 136, 0, 0.12) 100%);
}

.task-card.status-progress {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 153, 255, 0.12) 100%);
}

.task-card.status-completed {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 204, 106, 0.12) 100%);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.task-header h6 {
    flex: 1;
    font-size: 1rem;
    margin: 0;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-info p {
    margin: 0.4rem 0;
    font-size: 0.85rem;
}

.task-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending .task-status-badge {
    background: rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
}

.status-progress .task-status-badge {
    background: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.status-completed .task-status-badge {
    background: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.weight-status,
.task-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.weight-status.complete,
.task-status.complete {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.weight-status.over,
.task-status.over {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.weight-status.incomplete,
.task-status.incomplete {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.task-status.no-target {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* 阶段标签 */
.stage-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.stage-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.stage-tab:hover {
    color: var(--text-light);
}

.stage-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.stage-content {
    animation: fadeIn 0.3s;
}

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

/* 业务痛点样式 */
.pain-points-stage {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.pain-point-card {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.pain-point-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pain-point-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pain-index {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: bold;
    font-size: 1.5rem;
}

.pain-index-value {
    font-size: 2rem;
}

.pain-index-label {
    font-size: 1rem;
    opacity: 0.7;
}

.pain-index.pain-low {
    color: var(--success-color);
}

.pain-index.pain-medium {
    color: var(--warning-color);
}

.pain-index.pain-high {
    color: var(--danger-color);
}

.pain-point-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pain-point-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pain-description {
    font-weight: 500;
}

.pain-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.pain-points-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pain-points-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: bold;
}

.pain-point-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger-color);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--danger-color);
    font-weight: bold;
    cursor: help;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: scroll;
    }
    
    .goals-list {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-content {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pain-points-list {
        grid-template-columns: 1fr;
    }
    
    .stage-tabs {
        flex-direction: column;
    }
    
    .stage-tab {
        padding: 0.75rem 1rem;
    }
    
    .cards-list {
        grid-template-columns: 1fr;
    }
}

/* 方案阶段样式 */
.solution-stage {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-type-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-item {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

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

.card-item.card-data {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.card-item.card-system {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.card-item.card-tech {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.card-item.card-scenario {
    border-color: rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.1);
}

.card-item.card-project {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    flex: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quality-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

.quality-badge.quality-high {
    background: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.quality-badge.quality-medium {
    background: rgba(245, 158, 11, 0.3);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.quality-badge.quality-low {
    background: rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* 阶段指引面板 */
.stage-guide-panel {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stage-guide-panel h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.stage-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.stage-step {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.stage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stage-step.step-active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.stage-step.step-completed {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stage-step.step-in-progress {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.1);
}

.stage-step.step-pending {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.stage-step.step-completed .step-number {
    background: var(--success-color);
}

.stage-step.step-in-progress .step-number {
    background: var(--warning-color);
}

.stage-step.step-pending .step-number {
    background: var(--text-muted);
}

.stage-step.step-active .step-number {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    transform: scale(1.1);
}

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

.step-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.step-content p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
}

.step-status.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.step-status.status-in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.step-status.status-pending {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.stage-connector {
    flex: 0 0 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    margin: 0 0.5rem;
}

.stage-connector::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: -10px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* 响应式：阶段指引 */
@media (max-width: 1200px) {
    .stage-progress {
        flex-direction: column;
    }
    
    .stage-connector {
        width: 3px;
        height: 30px;
        flex: 0 0 30px;
        margin: 0.5rem 0;
    }
    
    .stage-connector::after {
        content: '↓';
        right: -10px;
        top: auto;
        bottom: -15px;
    }
    
    .stage-step {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .stage-guide-panel {
        padding: 1.5rem;
    }
    
    .stage-step {
        min-width: 120px;
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 卡牌详情模态框样式 */
.card-detail-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

.card-detail-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 2rem auto;
    padding: 0;
    border-radius: 20px;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    overflow: hidden;
}

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

.card-detail-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s;
}

.card-detail-close:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.card-detail-body {
    padding: 3rem;
    color: var(--text-light);
}

.card-detail-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.card-detail-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.card-detail-header h2 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-detail-image {
    width: 100%;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.card-detail-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.card-detail-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-elements,
.card-values {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-elements li,
.card-values li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s;
    position: relative;
    padding-left: 2.5rem;
}

.card-elements li::before,
.card-values li::before {
    content: '✓';
    position: absolute;
    left: 0.75rem;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.card-elements li:hover,
.card-values li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.card-meaning {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .card-detail-modal-content {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .card-detail-body {
        padding: 2rem 1.5rem;
    }
    
    .card-detail-header h2 {
        font-size: 2rem;
    }
    
    .card-detail-icon {
        font-size: 4rem;
    }
    
    .card-detail-section {
        padding: 1.5rem;
    }
    
    .card-detail-close {
        right: 1rem;
        top: 1rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
}

/* 预制技术卡样式 */
.preset-tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 1rem;
}

.preset-tech-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.preset-tech-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.preset-tech-card-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.preset-tech-card-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.preset-tech-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.preset-tech-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.preset-tech-card-maturity {
    font-size: 0.8rem;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
}

.preset-tech-card-cost {
    font-size: 0.8rem;
    color: var(--warning-color);
    padding: 0.25rem 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
}

.icon-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icon-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.icon-suggestions span {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-block;
}

.icon-suggestions span:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.2);
}

/* 改进的多选框样式 */
.checkbox-group-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group-tech {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item-tech {
    min-width: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    width: 100%;
    position: relative;
}

.checkbox-label:hover {
    background: rgba(99, 102, 241, 0.1);
}

.checkbox-label-tech {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-label-tech:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    margin-right: 0.75rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label-tech .checkbox-custom {
    margin-right: 0;
    margin-bottom: 0.5rem;
    width: 24px;
    height: 24px;
}

.checkbox-input:checked ~ .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label-tech .checkbox-input:checked ~ .checkbox-custom::after {
    font-size: 16px;
}

.checkbox-text {
    color: var(--text-light);
    font-size: 0.95rem;
    flex: 1;
}

.checkbox-label-tech .checkbox-text {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.checkbox-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* 已关联技术卡网格布局 */
.linked-tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-height: 100px;
}

.linked-tech-card-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s;
}

.linked-tech-card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.linked-tech-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.linked-tech-card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.linked-tech-card-info {
    flex: 1;
    min-width: 0;
}

.linked-tech-card-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linked-tech-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.linked-tech-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.linked-tech-card-maturity {
    font-size: 0.75rem;
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
}

.linked-tech-card-cost {
    font-size: 0.75rem;
    color: var(--warning-color);
    padding: 0.2rem 0.4rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
}

.linked-tech-card-remove-btn {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.linked-tech-card-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ========== 场景组合游戏样式 ========== */

.combo-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.combo-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.combo-step h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.card-item .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-item .card-icon {
    font-size: 1.5rem;
}

.card-item .card-header h4 {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
}

.card-item .card-body {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-item .card-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.canvas-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.canvas-form-grid .form-group {
    margin-bottom: 0;
}

.canvas-form-grid label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.canvas-form-grid textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.canvas-form-grid textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .canvas-form-grid {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .combo-step {
        padding: 1rem;
    }
}
