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

:root {
    --primary: #00d4ff;
    --secondary: #00ff88;
    --accent: #ffa502;
    --danger: #ff4757;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border: rgba(255,255,255,0.08);
    --glow-primary: rgba(0, 212, 255, 0.3);
    --glow-secondary: rgba(0, 255, 136, 0.3);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 255, 136, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 165, 2, 0.04) 0%, transparent 60%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
header {
    text-align: center;
    padding: 48px 0 40px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #00d4ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    letter-spacing: -0.5px;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.btn-reset {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 24px;
    width: auto;
    border-radius: 24px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-reset:hover {
    background: rgba(255,71,87,0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-2px);
}

/* 配置面板 */
.config-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.config-panel h2 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.config-item label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-item input {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    min-width: 0;
}

.config-item input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

/* 流程步骤 */
.main-flow {
    margin-bottom: 32px;
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 70px;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s;
}

.step.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 40px var(--glow-primary);
}

.step.active::before {
    opacity: 0.05;
}

.step.completed {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--secondary);
    box-shadow: 0 8px 30px var(--glow-secondary);
}

.step-number {
    display: none;
}

.step-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.step.active .step-title,
.step.completed .step-title {
    color: var(--text-primary);
}

.step-arrow {
    display: none;
}

/* 操作区域 */
.operation-area {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.panel:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
}

.panel h3 {
    padding: 18px 24px;
    background: rgba(0,0,0,0.3);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-content {
    padding: 24px;
}

/* 用户面板 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.form-group select:focus, .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.form-group select option {
    background: #1a1a2e;
    color: #fff;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--glow-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #ff6b81 100%);
    color: #fff;
    margin-top: 16px;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 充电状态 */
.charging-status {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    margin-top: 20px;
}

.status-icon {
    display: none;
}

.status-text {
    font-size: 1.3rem;
    margin: 12px 0;
    color: var(--primary);
    font-weight: 600;
}

.charging-info {
    text-align: left;
    background: rgba(0,0,0,0.3);
    padding: 18px;
    border-radius: 12px;
    margin: 18px 0;
    border: 1px solid var(--border);
}

.charging-info p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.charging-info span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* API日志 */
.api-logs {
    height: 320px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.api-logs::-webkit-scrollbar {
    width: 6px;
}

.api-logs::-webkit-scrollbar-track {
    background: transparent;
}

.api-logs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.log-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.log-item {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.4);
    border-left: 3px solid var(--primary);
    transition: all 0.3s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-item:hover {
    background: rgba(0,0,0,0.5);
}

.log-item.success {
    border-left-color: var(--secondary);
}

.log-item.error {
    border-left-color: var(--danger);
}

.log-time {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.log-api {
    color: var(--primary);
    font-weight: 600;
    margin: 6px 0;
    font-size: 0.85rem;
}

.log-item.success .log-api {
    color: var(--secondary);
}

.log-data {
    color: var(--text-secondary);
    font-size: 0.75rem;
    word-break: break-all;
    line-height: 1.5;
}

/* 分账结果 */
.result-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 60px 20px;
    font-style: italic;
}

.split-detail {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
}

.split-detail h4 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.95rem;
}

.split-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.split-row:last-child {
    border-bottom: none;
}

.split-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.split-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.split-value.positive {
    color: var(--secondary);
}

.split-value.negative {
    color: var(--danger);
}

/* 账户卡片 */
.accounts-section {
    margin-bottom: 32px;
}

.accounts-section h2 {
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color), transparent);
}

.account-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.account-card.platform {
    --card-color: var(--primary);
}

.account-card.platform::before {
    background: linear-gradient(90deg, var(--primary), transparent);
}

.account-card.agent {
    --card-color: var(--accent);
}

.account-card.agent::before {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.account-card.site {
    --card-color: var(--secondary);
}

.account-card.site::before {
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.account-card.user {
    --card-color: var(--danger);
}

.account-card.user::before {
    background: linear-gradient(90deg, var(--danger), transparent);
}

.account-icon {
    display: none;
}

.account-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.account-balance {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.account-card.platform:hover .account-balance {
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
}

.account-card.agent:hover .account-balance {
    background: linear-gradient(135deg, var(--accent), #fff);
    -webkit-background-clip: text;
    background-clip: text;
}

.account-card.site:hover .account-balance {
    background: linear-gradient(135deg, var(--secondary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
}

.account-card.user:hover .account-balance {
    background: linear-gradient(135deg, var(--danger), #fff);
    -webkit-background-clip: text;
    background-clip: text;
}

.account-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 订单详情 */
.order-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    animation: fadeIn 0.5s ease-out;
}

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

.order-detail h2 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.order-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.order-field {
    background: rgba(0,0,0,0.3);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.order-field:hover {
    background: rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}

.order-field label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.order-field value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 历史订单表格 */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.history-section h2 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.order-table th, .order-table td {
    padding: 16px;
    text-align: left;
}

.order-table th {
    background: rgba(0,0,0,0.3);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.order-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.order-table td {
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-table tr {
    transition: all 0.3s;
}

.order-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.order-table tbody tr:hover td {
    color: var(--text-primary);
}

.empty-row {
    text-align: center;
    color: var(--text-muted);
    padding: 48px !important;
    font-style: italic;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.completed {
    background: rgba(0, 255, 136, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-badge.refunded {
    background: rgba(255, 107, 129, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 129, 0.3);
}

/* 响应式 - 平板 */
@media (max-width: 1200px) {
    .operation-area {
        grid-template-columns: 1fr;
    }
    
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-info {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 响应式 - H5移动端 */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    header {
        padding: 32px 0 28px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 0.9rem;
    }

    header::after {
        width: 80px;
    }

    .btn-reset {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* 配置面板 */
    .config-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .config-panel h2 {
        font-size: 0.95rem;
    }

    .config-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .config-item label {
        font-size: 0.75rem;
    }

    .config-item input {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    /* 流程步骤 */
    .flow-steps {
        flex-wrap: wrap;
        gap: 6px;
        padding: 16px;
        border-radius: 16px;
    }

    .step {
        padding: 10px 14px;
        min-width: 58px;
        border-radius: 12px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .step-title {
        font-size: 0.7rem;
    }

    .step-arrow {
        display: none;
    }

    /* 操作区域 */
    .operation-area {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .panel {
        border-radius: 16px;
    }

    .panel h3 {
        padding: 14px 18px;
        font-size: 0.85rem;
    }

    .panel-content {
        padding: 18px;
    }

    .form-group select, .form-group input {
        padding: 12px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .btn {
        padding: 14px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    /* 充电状态 */
    .charging-status {
        padding: 22px;
        border-radius: 14px;
    }

    .status-icon {
        font-size: 2.8rem;
    }

    .status-text {
        font-size: 1.1rem;
    }

    .charging-info {
        padding: 14px;
        border-radius: 10px;
    }

    .charging-info p {
        font-size: 0.85rem;
    }

    .charging-info span {
        font-size: 1rem;
    }

    /* API日志 */
    .api-logs {
        height: 220px;
        font-size: 0.7rem;
    }

    .log-item {
        padding: 10px;
        border-radius: 10px;
    }

    .log-api {
        font-size: 0.75rem;
    }

    .log-data {
        font-size: 0.65rem;
    }

    /* 分账结果 */
    .split-detail {
        padding: 16px;
        border-radius: 14px;
    }

    .split-row {
        padding: 10px 0;
        font-size: 0.85rem;
    }

    .split-label {
        font-size: 0.8rem;
    }

    .split-value {
        font-size: 0.95rem;
    }

    /* 账户卡片 */
    .accounts-section h2 {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .account-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .account-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .account-name {
        font-size: 0.8rem;
    }

    .account-balance {
        font-size: 1.4rem;
    }

    .account-desc {
        font-size: 0.7rem;
    }

    /* 订单详情 */
    .order-detail {
        padding: 18px;
        border-radius: 16px;
    }

    .order-detail h2 {
        font-size: 0.95rem;
    }

    .order-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .order-field {
        padding: 14px;
        border-radius: 12px;
    }

    .order-field label {
        font-size: 0.7rem;
    }

    .order-field value {
        font-size: 0.95rem;
    }

    /* 历史订单 - 卡片式 */
    .history-section {
        padding: 18px;
        border-radius: 16px;
    }

    .history-section h2 {
        font-size: 0.95rem;
    }

    .order-table {
        display: block;
    }

    .order-table thead {
        display: none;
    }

    .order-table tbody {
        display: block;
    }

    .order-table tr {
        display: block;
        background: rgba(0,0,0,0.3);
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid var(--border);
    }

    .order-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.85rem;
    }

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

    .order-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-weight: 500;
    }

    .empty-row {
        display: block !important;
        text-align: center;
        padding: 32px 16px !important;
    }

    .empty-row::before {
        display: none;
    }
}

/* 超小屏幕 */
@media (max-width: 375px) {
    header h1 {
        font-size: 1.4rem;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .order-info {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 8px 10px;
        min-width: 50px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-title {
        font-size: 0.65rem;
    }
}

/* 动画优化 - 减少移动端动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* 额外UI优化 */
.logo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-icon, .panel-icon {
    margin-right: 6px;
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-suffix input {
    padding-right: 36px;
    flex: 1;
    min-width: 0;
}

.input-suffix {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-weight: 500;
    pointer-events: none;
}

.btn-icon {
    margin-right: 6px;
    font-size: 1.1rem;
}

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

.demo-footer {
    text-align: center;
    padding: 32px 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.demo-footer p {
    opacity: 0.6;
}

/* 玻璃态效果增强 */
.panel, .config-panel, .order-detail, .history-section, .account-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* 输入框聚焦动画 */
input:focus, select:focus {
    animation: focusPulse 0.3s ease-out;
}

@keyframes focusPulse {
    0% { box-shadow: 0 0 0 0 var(--glow-primary); }
    100% { box-shadow: 0 0 0 3px var(--glow-primary); }
}

/* 按钮点击效果 */
.btn:active:not(:disabled) {
    transform: scale(0.98) !important;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* 选择框样式 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

/* 移动端footer */
@media (max-width: 768px) {
    .logo-badge {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
    
    .demo-footer {
        padding: 24px 0 12px;
        font-size: 0.75rem;
    }
}


/* SVG图标样式 */
.icon-title {
    width: 48px;
    height: 48px;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.icon-section {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 8px;
    stroke: var(--primary);
}

.icon-panel {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    stroke: var(--text-secondary);
}

.icon-btn {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}

.icon-placeholder {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    stroke: var(--text-muted);
    opacity: 0.5;
}

/* 流程步骤图标 */
.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.4s;
}

.step-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    transition: all 0.4s;
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--primary), #0099cc);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.step.active .step-icon svg {
    stroke: #000;
}

.step.completed .step-icon {
    background: linear-gradient(135deg, var(--secondary), #00cc6a);
}

.step.completed .step-icon svg {
    stroke: #000;
}

.step-line {
    width: 30px;
    height: 2px;
    background: var(--border);
    transition: all 0.4s;
    flex-shrink: 0;
}

/* 充电动画图标 */
.status-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    position: relative;
}

.charging-bolt {
    width: 100%;
    height: 100%;
    animation: chargingPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary));
}

@keyframes chargingPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 15px var(--primary));
    }
    50% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 25px var(--secondary));
    }
}

/* 账户卡片图标 */
.account-icon-wrapper {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    transition: all 0.4s;
}

.account-icon-wrapper svg {
    width: 28px;
    height: 28px;
    transition: all 0.4s;
}

.account-card.platform .account-icon-wrapper {
    background: rgba(0, 212, 255, 0.1);
}

.account-card.platform .account-icon-wrapper svg {
    stroke: var(--primary);
}

.account-card.agent .account-icon-wrapper {
    background: rgba(255, 165, 2, 0.1);
}

.account-card.agent .account-icon-wrapper svg {
    stroke: var(--accent);
}

.account-card.site .account-icon-wrapper {
    background: rgba(0, 255, 136, 0.1);
}

.account-card.site .account-icon-wrapper svg {
    stroke: var(--secondary);
}

.account-card.user .account-icon-wrapper {
    background: rgba(255, 71, 87, 0.1);
}

.account-card.user .account-icon-wrapper svg {
    stroke: var(--danger);
}

.account-card:hover .account-icon-wrapper {
    transform: scale(1.1);
}

/* 日志占位符样式 */
.log-placeholder, .result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 移动端图标适配 */
@media (max-width: 768px) {
    .icon-title {
        width: 32px;
        height: 32px;
    }
    
    .icon-section {
        width: 18px;
        height: 18px;
    }
    
    .icon-panel {
        width: 16px;
        height: 16px;
    }
    
    .flow-steps {
        padding: 16px 12px;
        gap: 4px;
    }
    
    .step {
        padding: 10px 12px;
        min-width: 56px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        margin-bottom: 6px;
    }
    
    .step-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .step-line {
        width: 16px;
    }
    
    .status-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .account-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .account-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .flow-steps {
        padding: 12px 8px;
        gap: 2px;
    }
    
    .step {
        padding: 8px 8px;
        min-width: 48px;
    }
    
    .step-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        margin-bottom: 4px;
    }
    
    .step-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .step-title {
        font-size: 0.65rem;
    }
    
    .step-line {
        width: 10px;
    }
}


/* 分账明细图标样式 */
.split-detail h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.95rem;
}

.split-detail h4 .split-icon {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.split-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.split-icon.site {
    stroke: var(--secondary);
}

.split-icon.agent {
    stroke: var(--accent);
}

.split-icon.platform {
    stroke: var(--primary);
}

.split-icon.user {
    stroke: var(--danger);
}

.split-label {
    display: flex;
    align-items: center;
}

.split-total {
    background: rgba(0, 255, 136, 0.08) !important;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* 内联流程步骤样式 - 放在用户面板内 */
.main-flow-inline {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 14px;
    border: 1px solid var(--border);
}

.flow-steps-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.step-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    flex: 1;
    min-width: 0;
}

.step-inline.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--glow-primary);
}

.step-inline.completed {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--secondary);
}

.step-icon-inline {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: all 0.4s;
}

.step-icon-inline svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
    transition: all 0.4s;
}

.step-inline.active .step-icon-inline {
    background: linear-gradient(135deg, var(--primary), #0099cc);
    box-shadow: 0 2px 10px var(--glow-primary);
}

.step-inline.active .step-icon-inline svg {
    stroke: #000;
}

.step-inline.completed .step-icon-inline {
    background: linear-gradient(135deg, var(--secondary), #00cc6a);
}

.step-inline.completed .step-icon-inline svg {
    stroke: #000;
}

.step-title-inline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step-inline.active .step-title-inline,
.step-inline.completed .step-title-inline {
    color: var(--text-primary);
}

.step-line-inline {
    width: 12px;
    height: 2px;
    background: var(--border);
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .main-flow-inline {
        margin-top: 16px;
        padding: 12px;
    }
    
    .flow-steps-inline {
        gap: 2px;
    }
    
    .step-inline {
        padding: 6px 4px;
    }
    
    .step-icon-inline {
        width: 24px;
        height: 24px;
    }
    
    .step-icon-inline svg {
        width: 12px;
        height: 12px;
    }
    
    .step-title-inline {
        font-size: 0.6rem;
    }
    
    .step-line-inline {
        width: 8px;
    }
}
