:root {
    --primary: #16baaa;
    --primary-dark: #12a496;
    --primary-light: #e8f8f6;
    --text: #333333;
    --muted: #8a8f99;
    --border: #e6e6e6;
    --bg: #f2f3f5;
    --danger: #ff5722;
    --warning: #ffb800;
    --success: #16b777;
    --radius: 3px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .5px;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #16baaa, #0f9c8f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.brand small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
}

.site-nav a {
    color: #555;
}

.site-nav a.active {
    color: var(--primary);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
}

.card + .card {
    margin-top: 18px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 20px;
}

.form-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.form-label {
    width: 104px;
    flex: 0 0 104px;
    padding-top: 8px;
    text-align: right;
    color: #555;
    font-size: 14px;
}

.form-control {
    flex: 1;
    min-width: 0;
}

.form-control input[type=text],
.form-control input[type=url],
.form-control input[type=password],
.form-control input[type=color] {
    width: 100%;
    height: 38px;
    line-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color .15s;
}

.form-control input[type=color] {
    padding: 4px;
    width: 72px;
    cursor: pointer;
}

.form-control input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control input::placeholder {
    color: #b9bdc4;
}

.hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.6;
}

.hint code {
    background: #f5f6f7;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 12px;
}

.uploader {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.upload-box {
    width: 92px;
    height: 92px;
    border: 1px dashed #d2d5da;
    border-radius: var(--radius);
    background: #fafbfc center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b5bd;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.upload-box.wide {
    width: 150px;
    height: 84px;
}

.upload-box:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.upload-box.filled {
    border-style: solid;
    border-color: var(--border);
}

.upload-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: #fff;
    border-color: var(--border);
    color: #555;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff;
}

.btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: 13px;
}

.btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.alert {
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fff1ee;
    border: 1px solid #ffd7cd;
    color: #d93a12;
}

.alert-info {
    background: var(--primary-light);
    border: 1px solid #c8ece8;
    color: #0e8b80;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
}

.task-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light) center/cover no-repeat;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    overflow: hidden;
}

.task-main {
    flex: 1;
    min-width: 0;
}

.task-name {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.task-url {
    color: var(--muted);
    font-size: 12px;
    word-break: break-all;
    margin-top: 2px;
}

.task-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 0 8px;
    height: 22px;
    line-height: 22px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 400;
}

.badge-wait {
    background: #f4f4f5;
    color: #909399;
}

.badge-run {
    background: #fff7e6;
    color: #d97706;
}

.badge-ok {
    background: #e8f8f1;
    color: var(--success);
}

.badge-fail {
    background: #fff1ee;
    color: var(--danger);
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 34px 10px;
    font-size: 13px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
    line-height: 1.9;
}

.faq {
    margin-top: 18px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 18px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--muted);
    font-weight: 400;
    font-size: 18px;
}

.faq details[open] summary::after {
    content: "−";
}

.faq-body {
    padding: 0 0 16px;
    color: #666;
    font-size: 13px;
    line-height: 1.9;
    border-top: 1px solid #f2f3f5;
    padding-top: 12px;
}

.faq-body p {
    margin: 0 0 8px;
}

.site-footer {
    text-align: center;
    color: #a7abb2;
    font-size: 12px;
    padding: 10px 0 40px;
    line-height: 2;
}

.share-wrap {
    max-width: 460px;
    margin: 40px auto;
}

.share-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 24px;
    text-align: center;
}

.share-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    margin: 0 auto 14px;
    background: var(--primary-light) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    font-weight: 600;
    overflow: hidden;
}

.share-name {
    font-size: 19px;
    font-weight: 600;
}

.share-url {
    color: var(--muted);
    font-size: 12px;
    word-break: break-all;
    margin: 6px 0 20px;
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-tip {
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.9;
    text-align: left;
    background: #fafbfc;
    border-radius: var(--radius);
    padding: 12px 14px;
}

.progress {
    height: 4px;
    background: #eef0f2;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.progress span {
    display: block;
    height: 100%;
    width: 30%;
    background: var(--primary);
    animation: slide 1.2s ease-in-out infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(340%); }
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tabs a {
    padding: 9px 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

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

table.data th,
table.data td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: middle;
    white-space: nowrap;
}

table.data td.wrap {
    white-space: normal;
    min-width: 180px;
}

table.data th {
    background: #fafbfc;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

table.data tr:hover td {
    background: #fbfcfd;
}

.table-wrap {
    overflow-x: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: #fff;
}

.stat-num {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 720px) {
    .container {
        padding: 16px 12px 40px;
    }

    .card {
        padding: 18px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 6px;
    }

    .form-label {
        width: auto;
        flex: none;
        text-align: left;
        padding-top: 0;
    }

    .site-nav {
        gap: 14px;
        font-size: 13px;
    }

    .site-header-inner {
        padding: 0 12px;
    }

    .brand small {
        display: none;
    }

    .task-item {
        flex-direction: column;
    }
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
}

.nav-account {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    font-size: 13px;
    color: var(--text);
}

.nav-balance {
    font-size: 11px;
    color: var(--muted);
}

.nav-quiet {
    color: #555;
}

.auth-wrap {
    max-width: 400px;
    margin: 36px auto 0;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px 26px 22px;
}

.auth-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.auth-sub {
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 18px;
}

.auth-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.auth-tabs a {
    padding: 0 0 9px;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 14px;
}

.auth-tabs a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.field-group {
    margin-bottom: 14px;
}

.field-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row input {
    flex: 1;
    min-width: 0;
}

.text-input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 12px;
    font-size: 14px;
    color: var(--text);
    background: #fff;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-code {
    height: 38px;
    min-width: 104px;
    padding: 0 12px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-code[disabled] {
    border-color: #d8dce1;
    color: #a8adb5;
    cursor: not-allowed;
}

.auth-foot {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.auth-agree {
    font-size: 12px;
    color: var(--muted);
    margin: 4px 0 14px;
    line-height: 1.7;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 18px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-card.hot {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 186, 170, .1);
}

.plan-name {
    font-size: 15px;
    font-weight: 600;
}

.plan-price {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.plan-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 2px;
}

.plan-desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    flex: 1;
}

.channel-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
}

.channel-item input {
    margin: 0;
}

.channel-item.checked {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 4px;
}

.kv-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.kv-label {
    color: var(--muted);
    font-size: 12px;
}

.kv-value {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
}

.kv-value.accent {
    color: var(--primary);
}

.badge-pending {
    background: #fff7e6;
    color: #d97706;
}

.badge-paid {
    background: #e8f8f1;
    color: var(--success);
}

.badge-closed {
    background: #f4f4f5;
    color: #909399;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.checkbox-line input {
    margin-top: 3px;
}

@media (max-width: 720px) {
    .nav-account {
        font-size: 12px;
    }

    .nav-balance {
        display: none;
    }

    .site-nav {
        gap: 12px;
    }

    .auth-wrap {
        margin-top: 16px;
    }
}

.login-promo {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px dashed #cfe9e5;
    background: #f6fcfb;
    border-radius: 6px;
    padding: 18px;
    flex-wrap: wrap;
}

.login-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex: 0 0 48px;
}

.login-promo-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-promo-text strong {
    font-size: 15px;
}

.login-promo-text span {
    color: var(--muted);
    font-size: 12px;
}

.login-promo-actions {
    display: flex;
    gap: 10px;
}

.quota-tip {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}

.quota-tip b {
    color: var(--primary);
    font-size: 14px;
}

table.data td form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px 6px 2px 0;
}

table.data td form .btn {
    margin: 0;
}
