:root {
    --bg: #0b0d10;
    --panel: #11141a;
    --accent: #ffb703;
    --accent-2: #8ecae6;
    --text: #e8edf5;
    --muted: #9aa5b5;
    --border: #1f2530;
    --success: #5be49b;
    --radius: 14px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 15% 20%, rgba(255, 183, 3, 0.08), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(142, 202, 230, 0.12), transparent 30%),
    var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(11, 13, 16, 0.8);
    border-bottom: 2px solid #6D27F2;
    z-index: 20;
}

.nav {
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand .logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd166, #ffb703, #fb8500);
    display: grid;
    place-items: center;
    color: #0b0d10;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(255, 183, 3, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a {
    padding: 8px 10px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 183, 3, 0.08);
}

.btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #0b0d10;
    box-shadow: 0 10px 30px rgba(251, 133, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
}

main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px 10px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 26px;
    margin: 30px 0 50px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
    letter-spacing: 0.2px;
}

.hero-copy p {
    color: var(--muted);
    margin: 0 0 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffd166;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 12px;
}

.hero-actions {
    gap: 12px;
    flex-wrap: wrap;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pill {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffd166;
    backdrop-filter: blur(6px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 26px 0 10px;
}

.feature {
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 12px;
}

.feature h3 {
    margin: 0 0 6px;
}

.feature p {
    margin: 0;
    color: var(--muted);
}

.status {
    margin-top: 20px;
    display: block;
    text-align: right;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #c8f7dc;
    font-size: 13px;
    font-weight: normal;
}

.status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(91, 228, 155, 0.8);
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #0f131a;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: var(--text);
    min-width: 220px;
    transform: translateY(150%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 40;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

footer {
    margin-top: 40px;
    padding: 20px 0 10px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 12px;
    cursor: pointer;
    transition: border .2s, transform .2s;
}

.chip:hover {
    border-color: rgba(255, 183, 3, 0.7);
    transform: translateY(-1px);
}

.upload-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px dashed rgba(255, 183, 3, 0.4);
    border-radius: 12px;
    background: rgba(255, 183, 3, 0.05);
}

.upload-preview {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #0d1117;
    min-height: 120px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    header {
        position: sticky;
    }

    .nav-links {
        display: none;
    }
}

.contentForm {
    line-height: 1.8;
    background: #1E1F22;
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 20px 20px 20px;
}

.contentForm label {
    padding: 5px 0;
    display: inline-block;
    padding-right: 20px;
}

.contentForm a {
    text-decoration: underline;
}

#formButton2 {
    background: #6D27F2;
    padding: 20px 0;
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #fff;
    font-size: 18px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 10px;
}

#templates {
    text-align: center;
}

#templates a {
    display: inline-block;
    width: 210px;
    overflow: hidden;
    padding: 10px 15px;
    opacity: 0.8;
}

#templates a:hover {
    opacity: 1;
}

#templates small {
    position: absolute;
    margin-top: 135px;
    width: 200px;
    overflow: hidden;
    height: 60px;
}

#templates small img {
    width: 50px;
    border: 2px solid #fff;
    border-radius: 5px;
    margin: 5px 0 5px 5px;
}

#templates a span {
    display: block;
    text-align: center;
    padding: 5px;
    font-size: 14px;
}
#promptText{
    border-radius: 5px;
    border: none;
    outline: none;
    color: #FFF;
    overflow: hidden;
    width: 100%;
    display: block;
    padding: 5px 0;
    background: #383A40;
    font-size: 16px;
    font-family: Verdana, "微软雅黑", sans-serif;
    line-height: 1.5;
    cursor: text;
    height: 34px;
}
em.a2 {
    color: #666;
    text-decoration: none;
    border: 1px solid #666;
    border-radius: 15px;
    padding: 5px 10px;
    font-style: normal;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}

em.a2:hover, em.a2:active {
    color: #ff6600;
    border: 1px solid #ff6600;
}

#article-content {margin: 34px auto;}
#article-content .article-wrap{max-width:100%;width:100%;margin:0;}
#article-content .panel{width:100%;padding:24px;}
#article-content h1{margin:0 0 14px;color:#ffb703;font-size:32px;}
#article-content p{margin:0 0 16px;color:#cfd7e3;line-height:1.9;}
#article-content .back{display:inline-block;margin-top:12px;padding:10px 16px;border-radius:10px;background:linear-gradient(135deg,#ffb703,#fb8500);color:#0b0d10;text-decoration:none;font-weight:700;}

#docs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#docs li {
    box-sizing: border-box;
}