/* 沿用原风格体系，加强艺术字效果，突出合作按钮，修复切换卡死(保留所有卡片可访问) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.15;
    font-size: 11px;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px;
    position: relative;
}

/* 头部区域——艺术字改造 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e6e6e6 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 艺术字——逆云科技 (手写质感+立体光影) */
.art-logo {
    display: flex;
    flex-direction: column;
}
.company-name-art {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(145deg, #2a3e5a, #1b2a41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1), 6px 6px 0 rgba(255,255,255,0.3);
    letter-spacing: 2px;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'Poppins', sans-serif;
    transform: perspective(400px) rotateX(2deg);
    line-height: 1;
    margin-bottom: 2px;
}
.company-subtitle {
    font-size: 9px;
    color: #666;
    margin-top: 1px;
    letter-spacing: 0.2px;
    background: rgba(255,255,255,0.5);
    padding: 2px 6px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

/* 导航栏 */
.nav-bar {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 8px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.nav-link {
    font-size: 10px;
    color: #555;
    text-decoration: none;
    padding: 3px 6px;
    position: relative;
    transition: all 0.2s;
    border-radius: 2px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #222;
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    color: #222;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* 网格布局 —— 保证所有卡片都在grid内，不会消失 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;  /* 改为block，所有卡片默认可见，但我们用.active控制显隐 */
    display: none;   /* 仍然默认隐藏，通过active显示 */
}
.card.active {
    display: block;
    animation: fadeIn 0.3s ease-out forwards;
}

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

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title i {
    color: #666;
    font-size: 11px;
}

.card-content {
    font-size: 10px;
    color: #444;
    line-height: 1.2;
}

.card-content p {
    margin-bottom: 4px;
}

.card-content ul {
    padding-left: 12px;
    margin-bottom: 5px;
}

.card-content li {
    margin-bottom: 2px;
}

/* 网格尺寸 */
.card-large { grid-column: span 9; }
.card-medium { grid-column: span 3; }
.card-small { grid-column: span 2; }
.card-full { grid-column: span 12; }

/* 佣金数据网格 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.stat-item {
    text-align: center;
    padding: 6px 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 1px;
    line-height: 1.1;
}

.stat-label {
    font-size: 9px;
    color: #666;
    line-height: 1.1;
}

/* ========= 超大联系合作按钮 ========= */
.btn {
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4a6fa5, #3a5a8a);
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #3a5a8a, #2a4a7a);
    transform: translateY(-1px);
}
.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
}
.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-1px);
}

/* 超大醒目的联系合作按钮——放大加粗 */
.btn-super-warning {
    background: linear-gradient(145deg, #ff8c1a, #e65c00);
    color: white;
    font-size: 15px !important;     /* 明显加大 */
    padding: 12px 22px !important;
    border-radius: 40px !important;
    box-shadow: 0 6px 14px rgba(255, 140, 0, 0.4);
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: 0.25s;
    text-transform: uppercase;
    display: inline-flex;
    gap: 10px;
}
.btn-super-warning i {
    font-size: 18px;
}
.btn-super-warning:hover {
    background: linear-gradient(145deg, #f57c00, #d94e00);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 100, 0, 0.5);
}

/* 次要按钮 */
.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.btn-group {
    display: flex;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* 佣金特色卡片 */
.game-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 8px;
}
.game-feature {
    background: rgba(255, 255, 255, 0.6);
    padding: 6px;
    border-radius: 3px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.game-feature i {
    font-size: 12px;
    color: #4a6fa5;
    margin-bottom: 3px;
}
.game-feature-title {
    font-weight: 600;
    font-size: 10px;
    margin-bottom: 2px;
    color: #222;
}
.game-feature-desc {
    font-size: 9px;
    color: #555;
    line-height: 1.1;
}

.compact-table {
    width: 100%;
    font-size: 9.5px;
    border-collapse: collapse;
    margin-bottom: 6px;
}
.compact-table th, .compact-table td {
    padding: 4px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.compact-table th {
    font-weight: 600;
    color: #444;
    background: rgba(255, 255, 255, 0.3);
}

.card-section {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.card-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer {
    padding: 10px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #666;
}
.footer-links {
    display: flex;
    gap: 10px;
}
.footer-links a {
    color: #666;
    text-decoration: none;
}
.footer-links a:hover {
    color: #222;
    text-decoration: underline;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 5px;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.sidebar-card-title {
    font-size: 11px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-commission {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-top: 8px;
}
.commission-big-number {
    font-size: 28px;
    font-weight: 800;
    color: #e65100;
    display: inline-block;
    margin-right: 5px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .card-large { grid-column: span 8; }
    .card-medium { grid-column: span 4; }
    .game-features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .card-large { grid-column: span 12; }
    .card-medium { grid-column: span 6; }
    .stats-container { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .card-medium { grid-column: span 12; }
    .game-features { grid-template-columns: repeat(2, 1fr); }
    .stats-container { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .stats-container { grid-template-columns: repeat(4, 1fr); }
    .stat-value { font-size: 11px; }
}
@media (max-width: 480px) {
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .game-features { grid-template-columns: 1fr; }
}

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