:root {
    --bg-main: #f8f9fc;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --text-primary: #1a1d24;
    --text-secondary: #5c6370;
    --text-tertiary: #8b929e;
    --accent-blue: #3b82f6;
    --accent-blue-light: #eff6ff;
    --up-color: #10b981;
    --down-color: #ef4444;
    --up-bg: #ecfdf5;
    --down-bg: #fef2f2;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

.price-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.market-countdown {
    font-size: 18px;
    font-weight: bold;
    color: #ef4444;
    padding: 2px 4px;
    letter-spacing: 1px;
}

/* K线容器已移除 */

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


body {
    background: var(--bg-main);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 16px 30px;
    /* 压缩顶部边距，整体向上移动 */
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.project-title span {
    font-size: 10px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-left: 6px;
    background: var(--accent-blue-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.nav-links a.active {
    background: var(--accent-blue);
    color: #fff;
}

#live-clock {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-main);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.status-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* live-dot 已移除 */

#status-msg {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#hibt-status {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* 统一筛选器样式 */
.filter-select {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    font-size: 11px;
    padding: 0 8px;
    border-radius: 8px;
    cursor: pointer;
    height: 28px;
    outline: none;
    color: var(--text-secondary);
    font-family: inherit;
}

.date-pill {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border-radius: 8px;
    padding: 0 8px;
    border: 1px solid var(--border-light);
    height: 28px;
}

.date-pill input[type="date"] {
    background: transparent;
    border: none;
    font-size: 11px;
    outline: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.combined-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 16px;
    height: 250px;
}

.price-section {
    display: flex;
    flex-direction: column;
}

.log-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-right: 16px;
    border-right: 1px solid var(--border-light);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-action {
    font-size: 10px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.card-action:hover {
    color: var(--down-color);
    border-color: var(--down-color);
}

.price-display {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 统一价格样式：使用 tabular-nums 既美观又防抖 */
.btc-price,
.open-price-val {
    font-family: inherit;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.btc-price {
    font-size: 42px;
    color: var(--text-primary);
    line-height: 1;
}

.open-price-row {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.open-price-val {
    font-size: 16px;
    /* 桌面端开盘价稍小作为辅助 */
    color: var(--text-secondary);
}

.market-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 38px 0 10px;
    flex-wrap: wrap;
}

.m-btn {
    flex: 0 1 auto;
    /* 不强制充满 */
    min-width: 65px;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3px 12px;
    /* 减小上下边距 */
    font-size: 11px;
    /* 减小字体 */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    margin-top: 0;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.m-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.m-btn.active {
    background: #1a1d24;
    color: #fff;
    border-color: #1a1d24;
}

.m-btn.active:hover {
    background: #2d3436;
}

.m-btn .dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 4px #ef4444;
}

.compact-price-row {
    margin-top: auto;
    padding-bottom: 10px;
}

.sentiment-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sentiment-labels {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    /* 调大数字 */
    font-weight: 700;
    margin-bottom: 2px;
}

.sentiment-labels .up-val {
    color: var(--up-color);
}

.sentiment-labels .down-val {
    color: var(--down-color);
}

.sentiment-bar {
    height: 6px;
    background: #fecaca;
    /* 增强红色显示 */
    border-radius: 3px;
    overflow: hidden;
}

.sentiment-fill {
    height: 100%;
    background: var(--up-color);
    width: 50%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.log-card {
    display: flex;
    flex-direction: column;
    height: 300px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.log-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.log-clear-btn {
    font-size: 11px;
    color: #fff;
    background: var(--accent-blue);
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.log-clear-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

#log-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 11px;
    line-height: 1.8;
    padding-right: 8px;
    min-height: 0;
}

#log-container::-webkit-scrollbar {
    width: 4px;
}

#log-container::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.log-line {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.log-line.skip {
    color: var(--accent-blue);
}

.log-line.up {
    color: var(--up-color);
}

.log-line.down {
    color: var(--down-color);
}

.status-bar {
    padding: 10px 14px;
    background: var(--accent-blue-light);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 11px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar .live-dot {
    background: var(--accent-blue);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.wins .stat-value {
    color: var(--up-color);
}

.stat-card.losses .stat-value {
    color: var(--down-color);
}

.stat-card.win-loss .stat-value {
    color: var(--text-primary);
}

.stat-card.win-loss #stats-wins {
    color: var(--up-color);
}

.stat-card.win-loss #stats-losses {
    color: var(--down-color);
}

.stat-card.rate .stat-value {
    color: var(--accent-blue);
}

.stat-card.profit .stat-value {
    color: var(--up-color);
}

.history-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    text-align: center;
    padding: 12px 4px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-light);
}

.history-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-align: center;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background: var(--bg-card-hover);
}

.td-time {
    color: var(--text-tertiary);
    font-family: monospace;
}

.td-dir {
    font-weight: bold;
}

.td-dir.up {
    color: var(--up-color);
}

.td-dir.down {
    color: var(--down-color);
}

.td-price {
    font-size: 12px;
}

.td-profit {
    font-weight: bold;
}

.td-status {
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
}

.td-status.success {
    color: var(--up-color);
    background: var(--up-bg);
}

.td-status.failure {
    color: var(--down-color);
    background: var(--down-bg);
}

.td-status.pending {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 13px;
}

@media (max-width: 768px) {
    .combined-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .log-section {
        height: 320px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .price-section {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contract-row {
        flex-direction: column;
        gap: 8px;
    }

    .btc-price {
        font-size: 32px;
        white-space: nowrap;
    }

    .signal-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .signal-result {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links a {
        padding: 6px 8px;
        font-size: 11px;
    }

    .project-title {
        font-size: 13px;
        white-space: nowrap;
    }

    .nav-right {
        gap: 8px;
        flex-shrink: 0;
    }

    #live-clock {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px 12px 30px;
    }

    .card {
        padding: 16px;
    }

    .status-row {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .status-pill {
        padding: 6px 10px;
        gap: 4px;
        flex-shrink: 0;
    }

    #status-msg,
    #hibt-status {
        font-size: 10px;
    }

    #live-clock-pill {
        padding: 6px 10px !important;
        font-size: 11px !important;
        margin-left: auto;
        white-space: nowrap;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px 8px;
    }

    .stat-value {
        font-size: 16px;
    }

    .history-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 4px !important;
        align-items: center;
        padding: 10px 8px !important;
        flex-wrap: nowrap !important;
    }

    .history-header>span {
        font-size: 11px !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .history-filters {
        gap: 4px !important;
        flex-shrink: 0;
        flex-wrap: nowrap !important;
    }

    .filter-select,
    .date-pill {
        height: 24px !important;
        padding: 0 4px !important;
        flex-shrink: 0;
    }

    .date-pill input[type="date"] {
        width: 88px;
    }

    /* 设置页适配 */
    .coin-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }

    .coin-header h3 {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .coin-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .coin-header>div:last-child {
        width: auto !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        flex-shrink: 0;
    }

    .switch-label {
        gap: 3px;
        font-size: 10px;
    }

    .switch-label span {
        white-space: nowrap;
    }

    .form-row-3,
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-group {
        padding: 12px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* 移动端价格：回归经典字体，控制大小与色彩 */
    .price-display {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 12px 0 !important;
    }

    .btc-price,
    .open-price-val {
        font-size: 26px !important;
        font-weight: 800;
        /* 调整为平衡的大小 */
    }

    .btc-price {
        color: var(--text-primary) !important;
        /* 现价用黑色 */
        text-align: left;
    }

    .open-price-row {
        margin: 0 !important;
        display: block !important;
    }

    .open-price-label {
        display: none;
    }

    .open-price-val {
        color: var(--text-tertiary) !important;
        /* 开盘价用灰色 */
        text-align: right;
        display: block;
    }

    /* 移动端特征隐藏：隐藏进出价列 (第四列) */
    .history-table th:nth-child(4),
    .history-table td:nth-child(4) {
        display: none !important;
    }
}

.form-group {
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: var(--accent-blue);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
}

button {
    width: 100%;
    padding: 14px;
    background: var(--accent-blue);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

button:hover {
    background: #2563eb;
}

button:active {
    opacity: 0.9;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.coin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.coin-card h3 {
    color: var(--accent-blue);
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.coin-header h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.scan-rules-block {
    margin-bottom: 20px;
}

.scan-rules-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.scan-rules-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-left: 6px;
}

.scan-rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scan-rule-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.scan-rule-row .rule-spec {
    flex: 0 0 auto;
    width: 14rem;
    max-width: min(14rem, 55vw);
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-family: ui-monospace, monospace;
    box-sizing: border-box;
    line-height: 40px;
}

.rule-row-tail {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 42px;
}

.rule-rev-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.btn-rule-minus {
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-rule-plus {
    margin-top: 10px;
    padding: 8px 16px;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
    background: var(--accent-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
}

.btn-rule-minus:hover {
    border-color: #f87171;
    background: #fee2e2;
}

.btn-rule-plus:hover {
    filter: brightness(1.08);
    color: #fff;
}

.btn-rule-plus:active {
    filter: brightness(0.95);
}

@media (max-width: 480px) {
    .scan-rule-row {
        flex-wrap: wrap;
    }

    .scan-rule-row .rule-spec {
        width: 100%;
        max-width: none;
    }

    .rule-row-tail {
        width: 100%;
        justify-content: flex-start;
    }
}

.strategy-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 18px;
}

.strategy-params-grid.strategy-params-three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
    .strategy-params-grid {
        grid-template-columns: 1fr;
    }

    .strategy-params-grid.strategy-params-three {
        grid-template-columns: 1fr;
    }
}

.settings-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-light);
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .tag {
    font-size: 9px;
    color: var(--text-tertiary);
    font-weight: 500;
    background: var(--bg-main);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--up-color);
}

.coin-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.config-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.config-section h3 {
    color: var(--accent-blue);
    font-size: 15px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-group button {
    flex: 1;
}

.btn-danger {
    background: var(--down-bg);
    color: var(--down-color);
    border: 1px solid var(--down-color);
}

.btn-danger:hover {
    background: var(--down-color);
    color: #fff;
}

.btn-success {
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid var(--up-color);
}

.btn-success:hover {
    background: var(--up-color);
    color: #fff;
}

/* --- 精英狙击组看板样式 (清新版) --- */
.god-squad-section {
    margin-bottom: 20px;
    padding: 20px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-sm) !important;
}

.god-squad-section .card-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.god-squad-section .card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.gods-count-tag {
    font-size: 11px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.god-pills {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.god-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.god-pill:hover {
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.god-addr {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.god-wr {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: var(--up-color);
    padding: 1px 6px;
    border-radius: 4px;
}

.empty-gods {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

/* 适配移动端 */
@media (max-width: 480px) {
    .god-pill {
        padding: 6px 12px;
        gap: 6px;
    }

    .god-addr {
        font-size: 11px;
    }
}