/* 腾龙发科AI元宇宙 V10.0 前台模块样式 */

/* ========== 元宇宙页面 ========== */
.metaverse-hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}
.scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.scene-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.scene-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 124, 255, 0.2);
}
.scene-thumb {
    height: 180px;
    position: relative;
}
.scene-online {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}
.scene-info {
    padding: 20px;
}
.scene-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.scene-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
}
.scene-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.category-card {
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    background: rgba(79, 124, 255, 0.08);
}
.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.category-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== 数字人页面 ========== */
.dh-hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}
.filter-bar {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-label {
    color: var(--text-secondary);
    font-size: 14px;
}
.filter-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}
.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    color: #fff;
}
.search-box .form-input {
    width: 240px;
}
.dh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.dh-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.dh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(79, 124, 255, 0.15);
}
.dh-avatar {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.dh-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dh-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.dh-badge.hot {
    background: linear-gradient(90deg, #ff4d4f, #ff7a45);
    color: #fff;
}
.dh-info {
    padding: 16px;
}
.dh-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.dh-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    height: 36px;
    overflow: hidden;
    line-height: 1.5;
}
.dh-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.dh-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

/* ========== 商城页面 ========== */
.shop-banner {
    margin: 24px 0;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79,124,255,0.15), rgba(139,92,246,0.15));
}
.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}
.banner-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.banner-search {
    max-width: 480px;
}
.category-nav {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
}
.cat-item {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.cat-item:hover,
.cat-item.active {
    background: var(--primary-color);
    color: #fff;
}
.goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.goods-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.goods-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.goods-cover {
    height: 200px;
    position: relative;
}
.goods-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discount-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.goods-info {
    padding: 16px;
}
.goods-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.goods-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    height: 36px;
    overflow: hidden;
    line-height: 1.5;
}
.goods-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sales {
    font-size: 12px;
    color: var(--text-tertiary);
}
.goods-actions {
    display: flex;
    gap: 8px;
}
.goods-actions .btn {
    flex: 1;
}
/* 购物车侧边栏 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-light);
}
.cart-sidebar.show {
    right: 0;
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}
.cart-overlay.show {
    display: block;
}
.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}
.cart-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}
.cart-total {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.cart-total span {
    color: var(--primary-color);
}

/* ========== 论坛页面 ========== */
.forum-header {
    padding: 40px 0;
    position: relative;
}
.forum-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.forum-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}
.forum-desc {
    color: var(--text-secondary);
}
.forum-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}
.forum-sidebar {
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 24px;
}
.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}
.mt-20 {
    margin-top: 24px;
}
.category-list {
    list-style: none;
}
.category-list li a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.category-list li a:hover,
.category-list li a.active {
    background: rgba(79,124,255,0.1);
    color: var(--primary-color);
}
.hot-topics {
    list-style: none;
}
.hot-topics li a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}
.hot-topics li a:hover {
    color: var(--primary-color);
}
.post-tabs {
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}
.post-tabs a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.post-tabs a:hover,
.post-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.post-item {
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.post-item:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
}
.post-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.post-content {
    flex: 1;
    min-width: 0;
}
.post-title-wrap {
    margin-bottom: 8px;
}
.post-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 600;
}
.post-tag.essence {
    background: rgba(250,173,20,0.15);
    color: #faad14;
}
.post-tag.top {
    background: rgba(255,77,79,0.15);
    color: #ff4d4f;
}
.post-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.post-title:hover {
    color: var(--primary-color);
}
.post-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== 会员中心 ========== */
.member-header {
    position: relative;
    padding: 60px 0 40px;
    margin-bottom: 24px;
}
.member-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(79,124,255,0.2), transparent 70%);
    pointer-events: none;
}
.member-profile {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}
.member-avatar {
    position: relative;
}
.member-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(79,124,255,0.3);
    object-fit: cover;
}
.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--bg-primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-info {
    flex: 1;
}
.member-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.member-level {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(90deg, #ffd700, #ffb800);
    color: #000;
    font-size: 12px;
    font-weight: 600;
}
.member-id {
    font-size: 13px;
    color: var(--text-secondary);
}
.member-balance {
    display: flex;
    gap: 48px;
}
.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.balance-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}
.member-actions {
    display: flex;
    gap: 12px;
}
.member-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}
.member-sidebar {
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 24px;
}
.member-menu {
    list-style: none;
}
.member-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.member-menu li a:hover,
.member-menu li.active a {
    background: rgba(79,124,255,0.1);
    color: var(--primary-color);
}
.quick-entry {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}
.entry-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}
.entry-item:hover {
    background: rgba(79,124,255,0.1);
}
.entry-icon {
    font-size: 28px;
}
.entry-item span {
    font-size: 12px;
}
.recent-order {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.more-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}
.empty-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}
.empty-data a {
    color: var(--primary-color);
    text-decoration: none;
}
.my-nft {
    padding: 20px;
    border-radius: 12px;
}
.nft-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.nft-mini-item {
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s;
}
.nft-mini-item:hover {
    transform: scale(1.05);
}
.nft-mini-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.nft-mini-name {
    font-size: 11px;
    padding: 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 开发者平台 ========== */
.dev-hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
}
.ability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.ability-card {
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s;
}
.ability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79,124,255,0.15);
}
.ability-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.ability-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.ability-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.ability-link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}
.step-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 0;
}
.step-item {
    text-align: center;
    flex: 0 0 auto;
    padding: 0 24px;
}
.step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.step-item p {
    font-size: 13px;
    color: var(--text-secondary);
}
.step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    max-width: 80px;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.app-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.app-header h3 {
    font-size: 18px;
}
.app-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(82,196,26,0.15);
    color: #52c41a;
}
.app-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: monospace;
}
.app-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}
.add-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-style: dashed;
    min-height: 200px;
    transition: all 0.2s;
}
.add-app:hover {
    border-color: var(--primary-color);
    background: rgba(79,124,255,0.05);
}
.add-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.add-app p {
    color: var(--text-secondary);
}

/* ========== API文档 ========== */
.api-docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 24px 0;
}
.api-sidebar {
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.api-menu {
    list-style: none;
}
.menu-group .group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 8px;
    padding-left: 8px;
}
.menu-group:first-child .group-title {
    margin-top: 0;
}
.menu-group ul {
    list-style: none;
}
.menu-group ul li a {
    display: block;
    padding: 6px 8px 6px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}
.menu-group ul li a:hover,
.menu-group ul li a.active {
    color: var(--primary-color);
    background: rgba(79,124,255,0.1);
}
.api-main {
    border-radius: 12px;
    padding: 32px;
}
.api-section {
    margin-bottom: 48px;
}
.api-section:last-child {
    margin-bottom: 0;
}
.api-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.api-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}
.api-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 8px;
}
.api-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}
.api-section ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.api-section ol li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 2;
}
.api-base-url {
    padding: 16px;
    background: rgba(79,124,255,0.08);
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}
.api-base-url code {
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-color);
}
.api-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin: 12px 0;
}
.method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.method.post {
    background: #49cc90;
}
.method.get {
    background: #61affe;
}
.api-method code {
    font-family: monospace;
    font-size: 15px;
    color: var(--text-primary);
}
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.param-table th,
.param-table td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border-light);
    font-size: 13px;
}
.param-table th {
    background: rgba(79,124,255,0.08);
    font-weight: 600;
}
.code-block {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 12px 0;
}
.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #a9dc76;
    line-height: 1.6;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .scene-grid, .category-grid, .ability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dh-grid, .goods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .entry-grid, .nft-mini-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1024px) {
    .forum-layout, .member-layout {
        grid-template-columns: 1fr;
    }
    .forum-sidebar, .member-sidebar {
        position: static;
    }
    .api-docs-layout {
        grid-template-columns: 1fr;
    }
    .api-sidebar {
        position: static;
        max-height: none;
    }
    .step-flow {
        flex-direction: column;
        gap: 24px;
    }
    .step-line {
        width: 2px;
        height: 40px;
        max-width: none;
    }
}
@media (max-width: 768px) {
    .scene-grid, .category-grid, .dh-grid, .goods-grid, .ability-grid, .app-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .entry-grid, .nft-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box .form-input {
        width: 100%;
    }
    .member-profile {
        flex-direction: column;
        text-align: center;
    }
    .member-level, .member-balance {
        justify-content: center;
    }
    .member-actions {
        justify-content: center;
    }
    .forum-header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .post-item {
        flex-direction: column;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .member-balance {
        gap: 24px;
    }
    .hero-title, .banner-title, .forum-title {
        font-size: 24px;
    }
}
/* ========== V14.0 新增通用组件 ========== */

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 客服会话三栏布局 */
.conversation-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    height: 600px;
}
.conversation-list {
    overflow-y: auto;
}
.conv-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.conv-item:hover {
    background: rgba(255,255,255,0.03);
}
.conv-item.active {
    background: rgba(79,124,255,0.1);
}
.conv-item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}
.conv-item-time {
    font-weight: normal;
    font-size: 12px;
    color: var(--text-secondary);
}
.conv-item-msg {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-panel {
    display: flex;
    flex-direction: column;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0,0,0,0.2);
}
.chat-msg {
    margin-bottom: 16px;
}
.chat-msg.me {
    text-align: right;
}
.chat-msg-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.chat-msg.me .chat-msg-row {
    justify-content: flex-end;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.chat-avatar.other {
    background: #374151;
    color: #fff;
}
.chat-avatar.me {
    background: linear-gradient(135deg, #4F7CFF, #8B5CF6);
    color: #fff;
}
.chat-bubble {
    max-width: 400px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}
.chat-msg:not(.me) .chat-bubble {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.chat-msg.me .chat-bubble {
    background: linear-gradient(135deg, #4F7CFF, #8B5CF6);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.chat-msg.me .chat-meta {
    text-align: right;
}
.chat-input-bar {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 8px;
}
.user-info-panel {
    padding: 16px;
}
.user-profile-head {
    text-align: center;
    margin-bottom: 16px;
}
.user-big-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #374151;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 收入/财务概览卡片 */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.finance-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
}
.finance-value {
    font-size: 28px;
    font-weight: 700;
}
.finance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.finance-percent {
    font-size: 12px;
    margin-top: 4px;
}

/* 充值套餐卡片 */
.package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.package-card {
    padding: 24px;
    border: 1px solid rgba(79,124,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    text-align: center;
    transition: all 0.3s;
}
.package-card:hover {
    border-color: rgba(79,124,255,0.4);
    transform: translateY(-4px);
}
.package-card.hot {
    border-color: rgba(79,124,255,0.5);
    background: linear-gradient(135deg, rgba(79,124,255,0.1), rgba(139,92,246,0.1));
}
.package-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.package-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}
.package-card.hot .package-price {
    color: var(--primary);
}
.package-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 12px 0;
}
.package-gift {
    color: #10B981;
    font-size: 13px;
    margin-bottom: 16px;
}

/* 数据指标卡 */
.metric-card {
    padding: 20px;
    border-radius: 12px;
}
.metric-label {
    color: var(--text-secondary);
    font-size: 13px;
}
.metric-value {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0;
}
.metric-trend {
    font-size: 12px;
}

/* 服务状态指示 */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.online {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}
.status-dot.warning {
    background: #F59E0B;
}
.status-dot.offline {
    background: #EF4444;
}

/* Tab标签 */
.tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}
.tab-item {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.tab-item:hover {
    color: var(--text-primary);
}
.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* 缩略图 */
.thumb {
    width: 80px;
    height: 45px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

/* 品牌Logo */
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

/* KPI四宫格 */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
/* === AI数字孪生 新增组件 === */
/* 告警工单 */
.ticket-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}
.ticket-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 700px;
  overflow-y: auto;
}
.ticket-item {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.ticket-item:hover { background: var(--bg-tertiary); }
.ticket-item.active { background: rgba(79,124,255,0.1); border-left: 3px solid var(--primary); }
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ticket-title { font-weight: 600; font-size: 14px; }
.ticket-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.ticket-location { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }

.ticket-detail {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.ticket-process {
  margin: 24px 0;
  position: relative;
  padding-left: 30px;
}
.ticket-process::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--success), var(--primary), var(--border));
}
.process-step { position: relative; margin-bottom: 20px; }
.process-step::before {
  content: ''; position: absolute; left: -25px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg-primary);
}
.process-step.done::before { background: var(--success); }
.process-step.current::before { background: var(--warning); box-shadow: 0 0 10px var(--warning); animation: pulse 2s infinite; }
.process-time { font-size: 12px; color: var(--text-secondary); font-family: monospace; }
.process-title { font-weight: 600; margin: 4px 0; }
.process-desc { font-size: 13px; color: var(--text-secondary); }

/* 数字人联动 */
.human-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.human-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.human-preview {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.human-preview::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.human-status {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  z-index: 1; display: flex; justify-content: space-between; align-items: center;
}
.human-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.human-role { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.human-scene-list { margin-top: 12px; }
.scene-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; background: rgba(79,124,255,0.1); color: var(--primary);
  margin: 0 4px 4px 0;
}
.link-rule-item {
  background: var(--bg-tertiary); border-radius: 8px; padding: 16px;
  margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center;
}
.rule-trigger { font-size: 13px; }
.rule-arrow { color: var(--primary); margin: 0 12px; font-size: 20px; }
.rule-action { font-weight: 600; color: var(--primary); }

/* VR预览 */
.vr-container {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.vr-view {
  width: 100%;
  aspect-ratio: 16/9;
  background: radial-gradient(ellipse at center, #0B1024 0%, #05070F 100%);
  position: relative;
  overflow: hidden;
}
.vr-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(79,124,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,124,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  perspective: 1000px;
  transform: rotateX(60deg);
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
.vr-hotspot {
  position: absolute; width: 24px; height: 24px;
  background: rgba(79,124,255,0.3); border: 2px solid var(--primary);
  border-radius: 50%; cursor: pointer;
  animation: pulse 2s infinite;
}
.vr-hotspot::after {
  content: ''; position: absolute; inset: 6px;
  background: var(--primary); border-radius: 50%;
}
.vr-controls {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; background: rgba(0,0,0,0.6);
  padding: 8px; border-radius: 8px; backdrop-filter: blur(10px);
}
.vr-btn {
  width: 40px; height: 40px; border-radius: 6px;
  background: rgba(255,255,255,0.1); border: none; color: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.vr-btn:hover { background: var(--primary); }
.vr-scene-select {
  position: absolute; top: 20px; left: 20px;
  display: flex; gap: 8px;
}
.vr-info {
  position: absolute; top: 20px; right: 20px;
  background: rgba(0,0,0,0.6); padding: 12px; border-radius: 8px;
  backdrop-filter: blur(10px); font-size: 12px; min-width: 180px;
}
.vr-info-item { margin-bottom: 8px; display: flex; justify-content: space-between; }
.vr-info-label { color: var(--text-secondary); }

/* ============ AI数据中心专用样式 ============ */
.dataset-card { cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; }
.dataset-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.3); }
.dataset-card.active { border-color: #00d4ff; box-shadow: 0 0 20px rgba(0,212,255,0.2); }
.dataset-meta { margin: 16px 0; }
.meta-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; color: #cbd5e1; }
.meta-row span:last-child { color: #fff; font-weight: 500; }

.stat-list { padding: 8px 0; }
.stat-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; }
.stat-item > span:first-child { width: 100px; color: #cbd5e1; }
.stat-item > span:last-child { width: 50px; text-align: right; color: #fff; font-weight: 500; }
.stat-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.stat-bar > div { height: 100%; border-radius: 4px; transition: width 1s ease; }

.pipeline-item { margin-bottom: 20px; padding: 20px; }
.pipeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pipeline-header h4 { margin: 0; font-size: 16px; color: #fff; }
.pipeline-status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.pipeline-status.running { background: rgba(16,185,129,0.2); color: #10B981; }
.pipeline-status.stopped { background: rgba(148,163,184,0.2); color: #94a3b8; }
.pipeline-steps { display: flex; align-items: center; gap: 0; margin: 20px 0; flex-wrap: wrap; }
.pipeline-step { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #94a3b8; font-weight: 600; margin-bottom: 8px; }
.pipeline-step.done .step-num { background: linear-gradient(135deg,#00d4ff,#7c3aed); color: #fff; }
.step-name { font-size: 12px; color: #94a3b8; }
.pipeline-step.done .step-name { color: #fff; }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.1); min-width: 20px; margin-bottom: 28px; }
.pipeline-meta { display: flex; gap: 24px; margin: 16px 0; font-size: 13px; color: #94a3b8; }
.rule-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.rule-item { display: flex; align-items: center; gap: 16px; padding: 16px; }
.rule-name { font-weight: 600; color: #fff; min-width: 120px; }
.rule-desc { flex: 1; color: #cbd5e1; font-size: 14px; }

.chart-placeholder { color: #94a3b8; position: relative; overflow: hidden; }

/* ============================================
   V14.3 全模态多核引擎新增模块样式
   ============================================ */

/* 路由规则配置 */
.route-rule-card { background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; padding: 20px; margin-bottom: 16px; transition: all 0.3s ease; }
.route-rule-card:hover { border-color: rgba(99,102,241,0.5); }
.rule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.rule-name { display: flex; align-items: center; gap: 12px; }
.modal-tag { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.modal-tag.text { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.modal-tag.image { background: rgba(139,92,246,0.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.3); }
.modal-tag.audio { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.modal-tag.video { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.modal-tag.multimodal { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.strategy-tag { padding: 4px 8px; border-radius: 4px; font-size: 12px; background: rgba(99,102,241,0.1); color: #6366f1; border: 1px solid rgba(99,102,241,0.3); margin-left: 8px; }
.model-weight-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.model-weight-item { display: flex; align-items: center; gap: 12px; }
.model-weight-item .model-name { width: 180px; font-size: 14px; color: #e2e8f0; }
.model-weight-item .weight-bar { flex: 1; height: 8px; background: rgba(30,41,59,0.8); border-radius: 4px; overflow: hidden; }
.model-weight-item .weight-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 4px; }
.model-weight-item .weight-value { width: 50px; text-align: right; font-size: 13px; color: #94a3b8; }

/* 负载均衡配置 */
.balance-cluster-card { background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.balance-config-item label { font-size: 13px; color: #94a3b8; display: block; margin-bottom: 8px; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(30,41,59,0.8); border-radius: 24px; transition: 0.3s; }
.toggle-slider::before { position: absolute; content: ''; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #94a3b8; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: rgba(99,102,241,0.3); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); background: #6366f1; }
.health-node-list { margin-top: 20px; }
.health-node-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(30,41,59,0.5); border-radius: 8px; margin-bottom: 8px; }
.health-node-item.healthy { border-left: 3px solid #10b981; }
.health-node-item.unhealthy { border-left: 3px solid #ef4444; }
.health-status { display: flex; align-items: center; gap: 8px; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; }
.health-dot.healthy { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.health-dot.unhealthy { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.6); }

/* 故障转移日志 */
.failover-flow { display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.2); border-radius: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.fail-model { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.fail-model.from { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.fail-model.to { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10b981; }
.fail-arrow { font-size: 20px; color: #94a3b8; }
.fail-info { flex: 1; font-size: 13px; color: #cbd5e1; }
.fail-meta { font-size: 12px; color: #94a3b8; text-align: right; }
.circuit-breaker-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cb-card { background: rgba(15,23,42,0.6); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; padding: 20px; text-align: center; }
.cb-card.open { border-color: rgba(239,68,68,0.4); }
.cb-card.half-open { border-color: rgba(251,191,36,0.4); }
.cb-label { font-size: 13px; color: #94a3b8; margin-bottom: 8px; }
.cb-status-text { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.cb-status-text.closed { color: #10b981; }
.cb-status-text.open { color: #ef4444; }
.cb-status-text.half-open { color: #fbbf24; }
.cb-meta { font-size: 12px; color: #94a3b8; }
