/* ===== Sahik · about.sahik.dev ===== 米色復古電腦主題:機殼米色、綠色電源燈、CRT 螢幕 */ :root { --cream: #f3ecdc; --paper: #fbf7ee; --case: #e8dec5; --case-dark: #d3c6a6; --line: #ddd2b9; --ink: #2a2620; --muted: #6e6656; --led: #2bb24c; --amber: #c9781a; --screen: #1f2a23; --screen-text: #9be8ae; --radius: 14px; --shadow: 0 1px 0 #fff8 inset, 0 2px 0 var(--case-dark), 0 10px 24px -14px #5a4a2a55; --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; } * { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 72px; } body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; } img { max-width: 100%; height: auto; display: block; } a { color: inherit; } h1, h2, h3, h4 { line-height: 1.3; margin: 0; } small { font-size: .8em; } :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; } /* ===== Header ===== */ .site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; } .brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--case-dark); } .nav { display: flex; gap: 4px; overflow-x: auto; } .nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: var(--muted); font-size: 15px; } .nav a:hover { background: var(--case); color: var(--ink); } main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } /* ===== Hero ===== */ .hero { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 80px); } .monitor { background: linear-gradient(#efe6cf, var(--case)); border-radius: 22px 22px 18px 18px; padding: 18px 18px 0; box-shadow: var(--shadow), 0 24px 40px -24px #5a4a2a88; transform: rotate(-2deg); } .monitor-screen { background: var(--screen); border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 3px #00000022, inset 0 0 30px #000a; position: relative; } .monitor-screen::after { /* scanlines */ content: ""; position: absolute; inset: 14px; border-radius: 8px; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, #0000000f 2px 4px); } .avatar-btn { all: unset; display: block; cursor: pointer; border-radius: 8px; overflow: hidden; } .avatar-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; } .avatar-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9) contrast(1.02); transition: transform .3s; } .avatar-btn:hover img { transform: scale(1.03); } .avatar-btn.wiggle img { animation: wiggle .4s; } @keyframes wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } } .monitor-chin { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 16px; } .vents { width: 45%; height: 10px; background: repeating-linear-gradient(90deg, var(--case-dark) 0 4px, transparent 4px 9px); border-radius: 2px; } .led { width: 10px; height: 10px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); animation: blink 3.2s infinite; } @keyframes blink { 0%, 92%, 100% { opacity: 1; } 95% { opacity: .35; } } .prompt { font-family: var(--mono); color: var(--amber); margin: 0 0 4px; font-size: 15px; } .hero h1 { font-size: clamp(52px, 9vw, 88px); letter-spacing: -.02em; font-weight: 800; } .tagline { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 14px 0 22px; max-width: 34em; } .stats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; } .stats li { font-size: 14px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; } .stats b { color: var(--ink); font-family: var(--mono); font-size: 16px; margin-right: 2px; } .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; } .btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 20px; border-radius: 10px; background: var(--paper); border: 1px solid var(--case-dark); box-shadow: 0 2px 0 var(--case-dark); transition: transform .1s, box-shadow .1s; } .btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--case-dark); } .btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--case-dark); } .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 2px 0 #000; } .btn-primary:hover { box-shadow: 0 3px 0 #000; } /* ===== Sections ===== */ .section { padding: clamp(48px, 8vw, 88px) 0 0; } .section-head { margin-bottom: 28px; } .label { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--amber); } .section-head h2 { font-size: clamp(28px, 4vw, 36px); margin-top: 2px; } .section-note { color: var(--muted); margin: 6px 0 0; } .section-note a { color: var(--ink); text-underline-offset: 3px; } .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); } .card h3 { font-size: 17px; margin-bottom: 12px; } /* ===== About ===== */ .about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; } .about-bio p { margin: 0 0 14px; font-size: 17px; } .about-bio p:last-child { margin-bottom: 0; } .about-side { display: grid; gap: 20px; } .skills { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 0; } .skills dt { font-size: 14px; color: var(--muted); padding-top: 3px; } .skills dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; } .skills span, .tags li { font-family: var(--mono); font-size: 13px; line-height: 1.4; background: var(--case); border-radius: 6px; padding: 4px 9px; } .likes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .likes li { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .likes li b { font-size: 20px; } .likes li b::before { content: "zz "; font-family: var(--mono); font-size: 13px; color: var(--amber); font-weight: 400; } .likes li:nth-child(2) b::before { content: ">_ "; } .likes li:nth-child(3) b::before { content: "✎ "; } .likes li span { color: var(--muted); font-size: 14px; } /* ===== Works ===== */ .works { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .work { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; } .work:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 16px 30px -18px #5a4a2a77; } .work-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; } .work-media { margin: 0; height: 170px; overflow: hidden; position: relative; background: var(--case); border-bottom: 1px solid var(--line); display: grid; place-items: center; } .work-media > img { width: 100%; height: 100%; object-fit: cover; } /* 吱鼯:直式卡片放在同色底上 */ .media-zhiwu { background: radial-gradient(circle at 50% 30%, #4a2a10, #1c0f05); } .media-zhiwu > img { width: auto; height: 160px; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 24px #0008; transform: rotate(3deg) translateY(10px); } /* Discord 示意 */ .media-discord { background: #313338; } .dc { width: 250px; transform: scale(.78); transform-origin: center; font-size: 13px; color: #dbdee1; line-height: 1.45; } .dc-channel { color: #949ba4; font-weight: 600; margin-bottom: 10px; } .dc-msg { display: flex; gap: 10px; margin-bottom: 10px; } .dc-msg p { margin: 0; } .dc-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f0b232; } .dc-avatar.bot { background: #5865f2 url("img/favicon.png") center/cover; } .dc-name { font-weight: 600; color: #f2f3f5; } .dc-name i { font-style: normal; font-size: 10px; background: #5865f2; color: #fff; border-radius: 3px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; } .dc-react { display: inline-block; margin-top: 4px; font-size: 12px; background: #373a6d; border: 1px solid #5865f2; border-radius: 8px; padding: 0 6px; } .dc-embed { margin-top: 4px; background: #2b2d31; border-left: 4px solid #f0b232; border-radius: 4px; padding: 6px 10px; } .dc-embed ol { list-style: none; margin: 2px 0 0; padding: 0; color: #949ba4; font-family: var(--mono); font-size: 12px; } /* 手機掛機示意 */ .media-phone { background: linear-gradient(160deg, #f6d9b0, #e9b98a); } .phone { width: 150px; height: 150px; align-self: end; font-size: 11.5px; padding: 8px 10px; background: #fffaf1; border: 6px solid #2a2620; border-radius: 22px 22px 0 0; border-bottom: 0; } .phone-bar { font-family: var(--mono); font-size: 11px; color: #fff; background: var(--led); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; text-align: center; } .phone-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .phone-log { gap: 2px; } .phone-log li { display: flex; justify-content: space-between; border-bottom: 1px dashed #e4d8c2; padding-bottom: 3px; } .phone-log b { color: var(--led); } .phone-log b.wait { color: var(--amber); animation: blink 1.2s infinite; } /* Rickroll 假影片 */ .media-video { background: #111; } .vid { position: absolute; inset: 0; display: grid; place-items: center; } .vid-title { position: absolute; top: 12px; left: 14px; color: #ddd; font-size: 13px; font-family: var(--mono); } .vid-play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff2; color: #fff; font-size: 24px; padding-left: 4px; transition: transform .2s, background .2s; } .work:hover .vid-play { transform: scale(1.12); background: #e33; } .vid-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 4px; background: #fff3; border-radius: 2px; } .vid-bar i { display: block; width: 18%; height: 100%; background: #e33; border-radius: 2px; } .work-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; } .work-cat { font-size: 13px; color: var(--muted); font-family: var(--mono); } .badge { font-size: 12px; font-family: var(--mono); border: 1px solid var(--case-dark); border-radius: 999px; padding: 1px 10px; color: var(--muted); } .badge.live { color: #1d7a36; border-color: #9fd4ad; background: #e7f5e9; } .badge.live::before { content: "● "; color: var(--led); } .work h3 { font-size: 18px; margin-bottom: 6px; } .work .tags li { font-size: 12px; padding: 3px 7px; } .work-links a { font-size: 13.5px; } .work-body > p { margin: 0 0 12px; color: var(--muted); flex: 1; font-size: 15px; line-height: 1.7; } .tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; } .work-links { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px dashed var(--line); padding-top: 12px; } .work-links a { font-size: 14px; font-weight: 600; text-decoration: none; } .work-links a:hover { color: var(--amber); } .work.featured { grid-column: 1 / -1; background: var(--screen); color: #e9f3ea; border-color: #111; box-shadow: 0 2px 0 #0d130f, 0 18px 34px -20px #000a; position: relative; overflow: hidden; } .work.featured .work-media { height: auto; border-color: #111; background: #111; } .work.featured .work-media > img { height: auto; aspect-ratio: 1928 / 360; } .work.featured::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, #ffffff05 2px 4px); } .work.featured h3 { font-size: clamp(22px, 3vw, 28px); color: var(--screen-text); font-family: var(--mono); letter-spacing: -.01em; } .work.featured .work-body > p { color: #c6d5c9; max-width: 46em; font-size: 16.5px; } .work.featured .work-cat { color: var(--screen-text); } .work.featured .badge { color: var(--screen-text); border-color: #3b5444; } .work.featured .tags li { background: #2d3d33; color: #d5e8da; } .work.featured .work-links { border-color: #3b5444; } .work.featured .work-links a { color: var(--screen-text); } .work.featured .work-links a:hover { color: #fff; } /* ===== Homelab ===== */ .servers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .server { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; } .server-photos { position: relative; background: var(--case); } .server-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; } .thumbs { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; } .thumbs button { all: unset; cursor: pointer; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 2px solid #fff9; box-shadow: 0 4px 12px #0006; opacity: .75; transition: opacity .2s, border-color .2s; } .thumbs button[aria-pressed="true"] { opacity: 1; border-color: #fff; } .thumbs button:focus-visible { outline: 3px solid var(--amber); } .thumbs img { width: 100%; height: 100%; object-fit: cover; } .photo-caption { position: absolute; left: 12px; bottom: 12px; margin: 0; font-size: 13px; color: #fff; background: #0008; backdrop-filter: blur(4px); padding: 3px 10px; border-radius: 999px; max-width: calc(100% - 150px); } .server-info { padding: clamp(20px, 3vw, 26px); } .server-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; } .server-title h3 { font-size: 24px; margin: 0; } .role { font-family: var(--mono); font-size: 13px; background: var(--ink); color: var(--paper); padding: 2px 10px; border-radius: 6px; } .specs { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px 12px; margin: 0; font-size: 15px; } .specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 500; } .specs small { color: var(--muted); font-weight: 400; margin-left: 6px; font-family: var(--mono); } .storage { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); } .storage-title { margin: 0 0 8px; font-size: 15px; } .storage-title small { color: var(--muted); } .storage-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--case); } .storage-bar span { width: var(--w); min-width: 6px; } .s-ssd { background: var(--amber); } .s-4t { background: #7c9a6d; } .s-6t { background: #4c6b5a; } .storage-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); } .storage-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; } .apps { margin-top: 20px; } .apps-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; } .apps-head h3 { margin: 0; font-size: 19px; } .apps-head p { margin: 0; color: var(--muted); } .app-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; } .app-group h4 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; } .app-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .app-group li { font-family: var(--mono); font-size: 14px; background: var(--screen); color: var(--screen-text); border-radius: 6px; padding: 5px 10px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .app-group li small { color: #7fa58a; font-family: var(--font); font-size: 12px; } .app-group.mine li { background: var(--amber); color: #fff8ec; } .app-group.mine li::before { content: "★"; font-size: 11px; order: 2; opacity: .8; } .flow { margin-top: 20px; } .flow h3 { font-size: 19px; margin-bottom: 16px; } .flow-rows { display: grid; gap: 12px; } .flow-row { display: grid; grid-template-columns: 110px 40px 200px 40px 1fr; align-items: center; gap: 8px; } .node { background: var(--case); border: 1px solid var(--case-dark); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 15px; line-height: 1.4; display: flex; flex-direction: column; } .node small { font-weight: 400; color: var(--muted); font-size: 12.5px; } .node.accent { background: var(--ink); color: var(--paper); border-color: var(--ink); } .node.accent small { color: #cfc6b3; } .arrow { height: 2px; background: var(--case-dark); position: relative; } .arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--case-dark); border-right: 0; } .flow-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; } /* ===== Links ===== */ .link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; } .link-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); transition: transform .2s; } .link-card:hover { transform: translateY(-3px); } .link-name { font-weight: 700; font-size: 19px; } .link-url { font-family: var(--mono); font-size: 13px; color: var(--amber); word-break: break-all; } .link-desc { color: var(--muted); font-size: 14px; margin-top: 6px; } /* ===== Footer ===== */ .site-footer { margin-top: clamp(64px, 10vw, 120px); } .waves { display: block; width: 100%; height: 80px; } .waves .w1 { fill: var(--case); } .waves .w2 { fill: var(--case-dark); } .footer-inner { background: var(--case-dark); text-align: center; padding: 8px 20px 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; } .to-top { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); text-decoration: none; font-size: 18px; line-height: 1; box-shadow: 0 3px 0 #a99a78; margin-top: -40px; transition: transform .2s; } .to-top span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; } .to-top:hover { transform: translateY(-4px); } .footer-nav { display: flex; gap: 18px; } .footer-nav a { text-decoration: none; font-size: 15px; } .footer-nav a:hover { text-decoration: underline; } .footnote { margin: 4px 0 0; font-size: 14px; color: #5d5444; } .copyright { margin: 0; font-family: var(--mono); font-size: 13px; color: #5d5444; } /* ===== Toast & Boot ===== */ .toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 10px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; } .toast.show { opacity: 1; transform: translate(-50%, 0); } .boot { position: fixed; inset: 0; z-index: 100; background: var(--screen); display: grid; place-items: center; cursor: pointer; transition: opacity .35s; } .boot.done { opacity: 0; pointer-events: none; } .boot pre { margin: 0; padding: 24px; font-family: var(--mono); font-size: clamp(12px, 2.2vw, 15px); color: var(--screen-text); line-height: 1.8; min-width: min(460px, 90vw); text-shadow: 0 0 6px #9be8ae66; } .boot pre .ok { color: #fff; } .boot .cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--screen-text); vertical-align: -.2em; animation: cur .8s steps(1) infinite; } @keyframes cur { 50% { opacity: 0; } } /* ===== Responsive ===== */ @media (max-width: 860px) { .hero { grid-template-columns: 1fr; text-align: left; } .monitor { max-width: 280px; } .about-grid, .servers { grid-template-columns: 1fr; } .flow-row { grid-template-columns: 1fr; gap: 6px; } .arrow { width: 2px; height: 16px; margin-left: 24px; } .arrow::after { right: auto; top: auto; bottom: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--case-dark); border-bottom: 0; } } @media (max-width: 520px) { .site-header { padding: 10px 14px; } .brand span { display: none; } .nav a { padding: 6px 10px; } .work.featured .work-media > img { aspect-ratio: 16 / 7; object-position: 30% center; } .photo-caption { max-width: calc(100% - 140px); font-size: 12px; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }