@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:wght@400;600&display=swap");

/* ----- 暗黑透明主题 (仅颜色改变，不影响布局) ----- */
:root {
    --ink: #ffffff;               /* 原为深色，改为白色文字 */
    --muted: #c0c8e0;             /* 原为灰色，改为浅灰 */
    --accent: #f97316;             /* 保持橙色 */
    --accent-dark: #c2410c;
    --surface: rgba(28, 28, 36, 0.8);   /* 原为浅色，改为半透明深色 */
    --surface-strong: rgba(18, 18, 24, 0.9);
    --line: rgba(255, 255, 255, 0.1);    /* 原为深色线条，改为半透明白 */
    --ok: #16a34a;
    --warn: #f59e0b;
    --bad: #dc2626;
    --radius: 20px;
    --shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #2d2d3a, #0a0a0f 90%);
    min-height: 100vh;
    padding-top: 2rem;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px clamp(20px, 4vw, 60px);
}

header h1 {
    font-size: clamp(22px, 3vw, 34px);
    margin: 0;
    letter-spacing: 0.5px;
}

header .meta {
    font-size: 14px;
    color: var(--muted);
}

.banner {
    padding: 16px clamp(20px, 4vw, 60px);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.banner .card {
    background: linear-gradient(140deg, #fff1df 0%, #ffffff 65%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.banner .card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.18);
    top: -60px;
    right: -40px;
}

.card h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.content {
    flex: 1;
    padding: 0 clamp(20px, 4vw, 60px) 40px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel {
    background: var(--surface-strong);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 20px;
    box-shadow: var(--shadow);
}

.panel h3 {
    margin: 0 0 14px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(150deg, #fff5e8 0%, #ffffff 70%);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile,
.tile:visited {
    color: inherit;
    text-decoration: none;
}

.tile:hover {
    transform: translateY(-2px);
}

.tile.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(249, 115, 22, 0.18);
    color: var(--accent-dark);
}

.tile-title {
    font-weight: 600;
}

.tile-desc {
    color: var(--muted);
    font-size: 13px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    margin-top: 20px;
}

input,
select,
textarea,
button {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

input,
select,
textarea {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    min-width: 0;

}

textarea {
    min-height: 90px;
}

button {
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

button.secondary {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent);
    box-shadow: none;
}

button:hover {
    transform: translateY(-1px);
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tag.ok {
    background: rgba(22, 163, 74, 0.14);
    color: var(--ok);
}

.tag.warn {
    background: rgba(245, 158, 11, 0.14);
    color: var(--warn);
}

.tag.bad {
    background: rgba(220, 38, 38, 0.14);
    color: var(--bad);
}

.list {
    display: grid;
    gap: 12px;
}

.list .item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.7fr 0.7fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    align-items: center;
}
.transferItem{
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.7fr 0.7fr 0.7fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    align-items: center;

}

.reportInputDiv{
    width: 90%;
    margin: 0 auto; /* 水平居中 */
    border-radius: 30px; /* 四周圆角，可以调整数值 */
}

.reportInput{
    display: flex;
    align-items: center;
    margin-left: 20px
}

.reportInputP{
    font-size: 25px;
}

.reportInputLabel{
    font-size: 17px;
}


.list .item.small {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.list .item:last-child {
    border-bottom: none;
}

.item .title {
    font-weight: 600;
}

.item .muted {
    color: var(--muted);
    font-size: 13px;
}

.taskAddInput {
    width: 50%;

}
.view{
    border: none;               /* 去掉边框 */
    background: transparent;     /* 背景透明 */
    color: inherit;              /* 文字颜色与周围文本一致 */
    outline: none;               /* 去掉聚焦时的轮廓（虽然 disabled 时无法聚焦，但以防万一） */
    cursor: default;             /* 鼠标样式改为默认箭头，而不是禁止符号 */
    padding: 0;                  /* 可选：去掉内边距，让文字对齐更自然 */
    margin: 0;                   /* 可选：去掉外边距 */
    /* 如果希望完全像普通文本，可以再设置字体、字号与父元素一致 */
    font: inherit;
}


.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.photo-grid img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    object-fit: cover;
    max-height: 140px;
}

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-wrap {
    max-width: 420px;
    margin: 10vh auto;
    background: var(--surface-strong);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.login-wrap h2 {
    margin-top: 0;
}

.status-line {
    font-size: 13px;
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .banner {
        grid-template-columns: 1fr;
    }

    .list .item {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* ===== UUID 批量生成控件 ===== */
.uuid-form-row{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

.uuid-count-box{
    min-width:140px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.uuid-checkbox{
    font-size:16px;
    color:var(--muted);
    display:flex;
    align-items:center;
    gap:6px;
}

#uuid-count:disabled{
    opacity:.5;
    cursor:not-allowed;
}

#uuid-count {
    height: 45px;
    font-size: 15px;
}

/* 针对 Chrome, Safari, Edge 等 WebKit 浏览器 */
#uuid-count::-webkit-inner-spin-button,
#uuid-count::-webkit-outer-spin-button {
    height: 40px;        /* 增加按钮高度 */
    width: 50px;         /* 增加按钮宽度 */
    opacity: 1;          /* 确保按钮显示（有些浏览器默认半透明） */
    margin-left: 5px;    /* 与输入框左侧内容的间距 */
}

/* 1. 隐藏原生 radio，使用自定义样式 */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 8px;
}

/* 2. 正常选中状态 */
input[type="radio"]:checked {
    background: var(--accent, #f97316);   /* 橙色实心 */
    border-color: var(--accent, #f97316);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* 3. 禁用状态（未选中） */
input[type="radio"]:disabled {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.7;
}

/* 4. 禁用且选中状态（关键） */
input[type="radio"]:disabled:checked {
    background: rgba(249, 115, 22, 0.6);   /* 半透明橙色 */
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.canIn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
}


.tool-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* 限制为两行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 可选：设置宽度，确保溢出效果 */
    width: 100%;                     /* 或指定固定宽度，如 300px */
    /* 如果需要，可以设置行高和字体大小 */
    line-height: 1.5;
    font-size: 14px;
}