diff --git a/resources/css/tool_index.css b/resources/css/tool_index.css index b8116dd..8a06fbc 100644 --- a/resources/css/tool_index.css +++ b/resources/css/tool_index.css @@ -1,95 +1,551 @@ html { scroll-behavior: smooth; } +:root { + --page-max-width: 1480px; +} + body { background: #ffffff !important; } -.tool-home { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: .72rem; align-items: start; } -.tool-side { position: sticky; top: .72rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: .6rem .48rem; max-height: calc(100vh - 1.44rem); overflow: auto; } -.tool-side-logo { display: flex; align-items: center; gap: .38rem; padding: .22rem .3rem .56rem; border-bottom: 1px solid var(--line); margin-bottom: .36rem; font-family: "Outfit", "Noto Sans SC", sans-serif; color: var(--text-main); font-size: 1.12rem; font-weight: 800; } -.tool-side-logo-dot { width: 1.35rem; height: 1.35rem; border-radius: .38rem; background: linear-gradient(135deg, #a777ff, #6e77ff); color: #fff; font-size: .68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; } -.tool-side-links { display: grid; gap: .16rem; } -.tool-side-link { display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; align-items: center; gap: .42rem; border: 1px solid transparent; border-radius: .58rem; text-decoration: none; color: #4e6189; padding: .38rem .42rem; font-size: .82rem; transition: .16s ease; } -.tool-side-link:hover, .tool-side-link.active, .tool-side-link.is-active { border-color: var(--line-strong); background: var(--brand-soft); color: #21345f; box-shadow: inset 3px 0 0 #5f72ff; } -.tool-side-link i { color: #687ba2; text-align: center; } -.tool-side-link small { color: #97a9c8; font-size: .7rem; } +/* 头部和底部保持最大宽度限制 */ +.site-header .container, +.footer-shell .container { + max-width: var(--page-max-width); +} -.tool-main { min-width: 0; display: grid; gap: .62rem; } +/* 首页内容区域横向满屏 */ +.page-tools .page-main .container { + max-width: 100%; + padding-left: 0; + padding-right: 0; +} -.tool-hero { border: 1px solid #e5e7eb; border-radius: 12px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1.2rem 1rem 1rem; text-align: center; } -.tool-chip { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-surface); color: #6f81a7; font-size: .68rem; font-weight: 700; padding: .14rem .5rem; margin-bottom: .4rem; } -.tool-title { margin: 0 0 .24rem; font-family: "Outfit", "Noto Sans SC", sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; color: var(--text-main); line-height: 1.1; } -.tool-sub { margin: 0 0 .7rem; color: var(--text-muted); font-size: .92rem; max-width: 600px; margin-left: auto; margin-right: auto; } +.tool-home { + display: grid; + grid-template-columns: 208px minmax(0, 1fr); + gap: .72rem; + align-items: start; + width: 100%; + padding: 0 1.5rem; +} -:root[data-theme="dark"] .tool-hero { background: linear-gradient(180deg, #1b2849 0, #16223f 100%); } +.tool-side { + position: sticky; + top: .72rem; + border: 1px solid #e5e7eb; + border-radius: 12px; + background: #ffffff; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); + padding: .6rem .48rem; + max-height: calc(100vh - 1.44rem); + overflow: auto; +} -.tool-search { margin: 0 auto .8rem; width: min(860px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .38rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-surface); padding: .3rem; } -.tool-search input { border: 0; box-shadow: none; height: 2.4rem; padding: 0 1rem; background: transparent; color: var(--text-main); font-size: .9rem; } -.tool-search button { border-radius: 999px; min-width: 100px; height: 2.4rem; font-size: .88rem; font-weight: 600; } +.tool-side-logo { + display: flex; + align-items: center; + gap: .38rem; + padding: .22rem .3rem .56rem; + border-bottom: 1px solid var(--line); + margin-bottom: .36rem; + font-family: "Outfit", "Noto Sans SC", sans-serif; + color: var(--text-main); + font-size: 1.12rem; + font-weight: 800; +} -.tool-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; margin-bottom: .6rem; } -.tool-kpi { border: 1px solid #e5e7eb; border-radius: .8rem; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: .56rem .6rem; text-align: center; } -.tool-kpi .label { display: block; color: #7b8fb2; font-size: .76rem; margin-bottom: .2rem; } -.tool-kpi .value { font-family: "Outfit", "Noto Sans SC", sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text-main); line-height: 1.1; } +.tool-side-logo-dot { + width: 1.35rem; + height: 1.35rem; + border-radius: .38rem; + background: linear-gradient(135deg, #a777ff, #6e77ff); + color: #fff; + font-size: .68rem; + font-weight: 700; + display: inline-flex; + align-items: center; + justify-content: center; +} -.tool-channel { border: none; border-radius: 12px; background: transparent; padding: .6rem; display: grid; grid-template-columns: 70px repeat(4, minmax(0, 1fr)); gap: .5rem; } -.tool-channel-mini { border: 1px solid #e5e7eb; border-radius: 10px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); display: grid; gap: .4rem; padding: .5rem .35rem; } -.tool-channel-mini a { text-decoration: none; color: #5f7399; font-size: .76rem; text-align: center; } -.tool-channel-mini a i { display: block; font-size: 1.1rem; margin-bottom: .2rem; color: var(--brand-strong); } -.tool-channel-card { border: 1px solid #e5e7eb; border-radius: 10px; min-height: 110px; display: flex; align-items: flex-end; justify-content: flex-start; text-decoration: none; font-family: "Outfit", "Noto Sans SC", sans-serif; font-size: .96rem; font-weight: 700; color: #fff; background-size: cover; background-position: center; position: relative; overflow: hidden; padding: .6rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); } -.tool-channel-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,56,.08), rgba(20,32,56,.68)); } -.tool-channel-card span { position: relative; z-index: 1; } +.tool-side-links { + display: grid; + gap: .16rem; +} -.tool-banner-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } -.tool-banner { border: 1px solid #e5e7eb; border-radius: 10px; background: #ffffff; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .8rem; text-decoration: none; transition: .16s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.08); } -.tool-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); border-color: #d1d5db; } -.tool-banner.alt { background: #f9fafb; } -.tool-banner b { color: var(--text-main); font-size: 1.1rem; font-family: "Outfit", "Noto Sans SC", sans-serif; font-weight: 700; } -.tool-banner small { border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-surface); color: #5f749a; font-size: .76rem; padding: .16rem .5rem; } +.tool-side-link { + display: grid; + grid-template-columns: 1rem minmax(0, 1fr) auto; + align-items: center; + gap: .42rem; + border: 1px solid transparent; + border-radius: .58rem; + text-decoration: none; + color: #4e6189; + padding: .38rem .42rem; + font-size: .82rem; + transition: .16s ease; +} -.tool-section { border: none; border-radius: 12px; background: transparent; padding: .7rem; scroll-margin-top: 1rem; } -.tool-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .56rem; } -.tool-section-head h2 { margin: 0; color: var(--text-main); font-size: 1.08rem; font-family: "Outfit", "Noto Sans SC", sans-serif; font-weight: 700; } -.tool-section-head a { color: var(--brand-strong); text-decoration: none; font-size: .8rem; font-weight: 600; transition: color .16s ease; } -.tool-section-head a:hover { color: var(--brand); } +.tool-side-link:hover, .tool-side-link.active, .tool-side-link.is-active { + border-color: var(--line-strong); + background: var(--brand-soft); + color: #21345f; + box-shadow: inset 3px 0 0 #5f72ff; +} -.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; } -.tool-card { border: 1px solid #e5e7eb; border-radius: 10px; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: .7rem .75rem; text-decoration: none; transition: .18s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; } -.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); border-color: #d1d5db; } -.tool-card-icon { width: 48px; height: 48px; border-radius: 10px; background: #f8fafc; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem; flex-shrink: 0; overflow: hidden; } -.tool-card-icon img { width: 100%; height: 100%; object-fit: contain; } -.tool-card-name { color: var(--text-main); font-size: .96rem; line-height: 1.3; font-weight: 700; margin-bottom: .25rem; flex-shrink: 0; } -.tool-card-meta { color: var(--text-muted); font-size: .78rem; margin-bottom: .45rem; flex-shrink: 0; } -.tool-card-desc { color: var(--text-muted); font-size: .8rem; line-height: 1.4; margin: 0 0 .6rem; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } -.tool-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; flex-shrink: 0; } -.tool-card-tag { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: .14rem .5rem; color: var(--brand-strong); background: var(--brand-soft); font-size: .72rem; font-weight: 500; flex-shrink: 0; } -.tool-card-date { color: #97a9c8; font-size: .7rem; flex-shrink: 0; white-space: nowrap; } +.tool-side-link i { + color: #687ba2; + text-align: center; +} -.channel-tabs { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; } -.channel-tab { border: 1px solid transparent; border-radius: 999px; padding: .24rem .65rem; color: #56698d; text-decoration: none; font-size: .82rem; white-space: nowrap; transition: .16s ease; font-weight: 500; } -.channel-tab.active, .channel-tab:hover { border-color: #d7dff1; background: #f4f7ff; color: #27406f; } +.tool-side-link small { + color: #97a9c8; + font-size: .7rem; +} + +.tool-main { + width: 100%; + display: grid; + gap: .62rem; +} + +.tool-hero { + border: 1px solid #e5e7eb; + border-radius: 12px; + background: #ffffff; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); + padding: 1.2rem 1rem 1rem; + text-align: center; +} + +.tool-chip { + display: inline-flex; + border: 1px solid var(--line-strong); + border-radius: 999px; + background: var(--bg-surface); + color: #6f81a7; + font-size: .68rem; + font-weight: 700; + padding: .14rem .5rem; + margin-bottom: .4rem; +} + +.tool-title { + margin: 0 0 .24rem; + font-family: "Outfit", "Noto Sans SC", sans-serif; + font-size: clamp(1.8rem, 3vw, 2.8rem); + font-weight: 800; + color: var(--text-main); + line-height: 1.1; +} + +.tool-sub { + margin: 0 0 .7rem; + color: var(--text-muted); + font-size: .92rem; + max-width: 600px; + margin-left: auto; + margin-right: auto; +} + +:root[data-theme="dark"] .tool-hero { + background: linear-gradient(180deg, #1b2849 0, #16223f 100%); +} + +.tool-search { + margin: 0 auto .8rem; + width: min(860px, 100%); + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + gap: .38rem; + border: 1px solid var(--line-strong); + border-radius: 999px; + background: var(--bg-surface); + padding: .3rem; +} + +.tool-search input { + border: 0; + box-shadow: none; + height: 2.4rem; + padding: 0 1rem; + background: transparent; + color: var(--text-main); + font-size: .9rem; +} + +.tool-search button { + border-radius: 999px; + min-width: 100px; + height: 2.4rem; + font-size: .88rem; + font-weight: 600; +} + +.tool-kpis { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: .6rem; + margin-top: .8rem; + margin-bottom: .6rem; +} + +.tool-kpi { + border: 1px solid #e5e7eb; + border-radius: .8rem; + background: #ffffff; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); + padding: .56rem .6rem; + text-align: center; +} + +.tool-kpi .label { + display: block; + color: #7b8fb2; + font-size: .76rem; + margin-bottom: .2rem; +} + +.tool-kpi .value { + font-family: "Outfit", "Noto Sans SC", sans-serif; + font-size: 1.2rem; + font-weight: 800; + color: var(--text-main); + line-height: 1.1; +} + +.tool-channel { + border: none; + border-radius: 12px; + background: transparent; + padding: .6rem; + display: grid; + grid-template-columns: 70px repeat(4, minmax(0, 1fr)); + gap: .5rem; +} + +.tool-channel-mini { + border: 1px solid #e5e7eb; + border-radius: 10px; + background: #ffffff; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); + display: grid; + gap: .4rem; + padding: .5rem .35rem; +} + +.tool-channel-mini a { + text-decoration: none; + color: #5f7399; + font-size: .76rem; + text-align: center; +} + +.tool-channel-mini a i { + display: block; + font-size: 1.1rem; + margin-bottom: .2rem; + color: var(--brand-strong); +} + +.tool-channel-card { + border: 1px solid #e5e7eb; + border-radius: 10px; + min-height: 110px; + display: flex; + align-items: flex-end; + justify-content: flex-start; + text-decoration: none; + font-family: "Outfit", "Noto Sans SC", sans-serif; + font-size: .96rem; + font-weight: 700; + color: #fff; + background-size: cover; + background-position: center; + position: relative; + overflow: hidden; + padding: .6rem; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); +} + +.tool-channel-card::after { + content: ''; + position: absolute; + inset: 0; + background: linear-gradient(180deg, rgba(20,32,56,.08), rgba(20,32,56,.68)); +} + +.tool-channel-card span { + position: relative; + z-index: 1; +} + +.tool-banner-row { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: .6rem; +} + +.tool-banner { + border: 1px solid #e5e7eb; + border-radius: 10px; + background: #ffffff; + min-height: 80px; + display: flex; + align-items: center; + justify-content: space-between; + gap: .6rem; + padding: .65rem .8rem; + text-decoration: none; + transition: .16s ease; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); +} + +.tool-banner:hover { + transform: translateY(-2px); + box-shadow: 0 8px 20px rgba(0,0,0,0.12); + border-color: #d1d5db; +} + +.tool-banner.alt { + background: #f9fafb; +} + +.tool-banner b { + color: var(--text-main); + font-size: 1.1rem; + font-family: "Outfit", "Noto Sans SC", sans-serif; + font-weight: 700; +} + +.tool-banner small { + border: 1px solid var(--line-strong); + border-radius: 999px; + background: var(--bg-surface); + color: #5f749a; + font-size: .76rem; + padding: .16rem .5rem; +} + +.tool-section { + border: none; + border-radius: 12px; + background: transparent; + padding: .7rem; + scroll-margin-top: 1rem; +} + +.tool-section-head { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: .56rem; +} + +.tool-section-head h2 { + margin: 0; + color: var(--text-main); + font-size: 1.08rem; + font-family: "Outfit", "Noto Sans SC", sans-serif; + font-weight: 700; +} + +.tool-section-head a { + color: var(--brand-strong); + text-decoration: none; + font-size: .8rem; + font-weight: 600; + transition: color .16s ease; +} + +.tool-section-head a:hover { + color: var(--brand); +} + +.tool-grid { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: .6rem; +} + +.tool-card { + border: 1px solid #e5e7eb; + border-radius: 10px; + background: #ffffff; + box-shadow: 0 1px 3px rgba(0,0,0,0.08); + padding: .7rem .75rem; + text-decoration: none; + transition: .18s ease; + position: relative; + overflow: hidden; + display: flex; + flex-direction: column; + height: 100%; +} + +.tool-card:hover { + transform: translateY(-3px); + box-shadow: 0 8px 20px rgba(0,0,0,0.12); + border-color: #d1d5db; +} + +.tool-card-icon { + width: 48px; + height: 48px; + border-radius: 10px; + background: #f8fafc; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: .5rem; + flex-shrink: 0; + overflow: hidden; +} + +.tool-card-icon img { + width: 100%; + height: 100%; + object-fit: contain; +} + +.tool-card-name { + color: var(--text-main); + font-size: .96rem; + line-height: 1.3; + font-weight: 700; + margin-bottom: .25rem; + flex-shrink: 0; +} + +.tool-card-meta { + color: var(--text-muted); + font-size: .78rem; + margin-bottom: .45rem; + flex-shrink: 0; +} + +.tool-card-desc { + color: var(--text-muted); + font-size: .8rem; + line-height: 1.4; + margin: 0 0 .6rem; + flex-grow: 1; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; +} + +.tool-card-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: .4rem; + margin-top: auto; + flex-shrink: 0; +} + +.tool-card-tag { + display: inline-flex; + border: 1px solid var(--line-strong); + border-radius: 999px; + padding: .14rem .5rem; + color: var(--brand-strong); + background: var(--brand-soft); + font-size: .72rem; + font-weight: 500; + flex-shrink: 0; +} + +.tool-card-date { + color: #97a9c8; + font-size: .7rem; + flex-shrink: 0; + white-space: nowrap; +} + +.channel-tabs { + display: flex; + align-items: center; + gap: .4rem; + flex-wrap: wrap; + justify-content: center; + margin-top: .6rem; +} + +.channel-tab { + border: 1px solid transparent; + border-radius: 999px; + padding: .24rem .65rem; + color: #56698d; + text-decoration: none; + font-size: .82rem; + white-space: nowrap; + transition: .16s ease; + font-weight: 500; +} + +.channel-tab.active, .channel-tab:hover { + border-color: #d7dff1; + background: #f4f7ff; + color: #27406f; +} @media (max-width: 1199px) { - .tool-home { grid-template-columns: 1fr; } - .tool-side { position: static; max-height: none; } - .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } + .tool-home { + grid-template-columns: 1fr; + } + .tool-side { + position: static; + max-height: none; + } + .tool-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } } @media (max-width: 991px) { - .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } + .tool-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } } @media (max-width: 767px) { - .tool-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .tool-search { grid-template-columns: 1fr; border-radius: 12px; } - .tool-search button { width: 100%; border-radius: 10px; } - .tool-channel { grid-template-columns: repeat(2, minmax(0, 1fr)); } - .tool-banner-row { grid-template-columns: 1fr; } - .tool-hero { padding: 1rem .8rem; } - .tool-title { font-size: clamp(1.6rem, 6vw, 2.2rem); } + .tool-kpis { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + .tool-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + .tool-search { + grid-template-columns: 1fr; + border-radius: 12px; + } + .tool-search button { + width: 100%; + border-radius: 10px; + } + .tool-channel { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + .tool-banner-row { + grid-template-columns: 1fr; + } + .tool-hero { + padding: 1rem .8rem; + } + .tool-title { + font-size: clamp(1.6rem, 6vw, 2.2rem); + } } @media (max-width: 575px) { - .tool-grid { grid-template-columns: 1fr; } - .tool-kpis { grid-template-columns: 1fr; } - .tool-channel { grid-template-columns: 1fr; } -} \ No newline at end of file + .tool-grid { + grid-template-columns: 1fr; + } + .tool-kpis { + grid-template-columns: 1fr; + } + .tool-channel { + grid-template-columns: 1fr; + } +}