n/aiu/pppjj9 · 2 个月前
注册 登录
n/ai · 2 个月前 · 441 次浏览
u/pppjj9白银

GPT 6 PRO 真正的核弹爆炸

提示词如下:
创建一个HTML,内容是SVG绘制一个鹈鹕骑自行车的2D动画,你
不需要任何测试创建一个HTML,内容是SVG绘制一个鹈鹕骑自行
车的2D动画,你不需要任何测试

耗时11分钟,但真的太厉害了,O畜竟然赢了A畜

兄弟们,想自己看看动画代码在下面

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="theme-color" content="#f6f4ec">
  <title>乘着海风 · 鹈鹕骑行记</title>
  <style>
    :root {
      color-scheme: light;
      --paper: #f6f4ec;
      --ink: #29483e;
      --muted: #7b897e;
      --accent: #df754e;
      --line: #dfe3d7;
      --progress: 40%;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
      -webkit-font-smoothing: antialiased;
    }
    button, input { font: inherit; }
    button { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, input:focus-visible {
      outline: 3px solid #df754e;
      outline-offset: 5px;
    }
    .page { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
    .masthead {
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--line);
    }
    .brand { display: flex; align-items: center; gap: 12px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-name { font-size: 12px; font-weight: 750; letter-spacing: 2.6px; }
    .brand-sub { margin-top: 5px; font-size: 10px; color: var(--muted); letter-spacing: 3px; }
    .masthead-note { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
    .heading {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      padding: 35px 0 28px;
      gap: 20px;
    }
    .eyebrow { margin: 0 0 11px; color: var(--accent); font-size: 10px; letter-spacing: 2.7px; font-weight: 700; }
    h1 { margin: 0; font-size: clamp(28px, 3.5vw, 43px); font-weight: 600; letter-spacing: 2px; line-height: 1.35; }
    h1 span { color: var(--accent); }
    .intro { margin: 0 0 5px; font-size: 12px; color: var(--muted); letter-spacing: 1px; line-height: 1.9; text-align: right; }
    .postcard {
      overflow: hidden;
      border: 1px solid #d7e0d3;
      border-radius: 22px;
      background: #fcfbf5;
      box-shadow: 0 16px 44px -30px #53634b40;
    }
    .scene { position: relative; background: #edf3e7; overflow: hidden; }
    .scene > svg { display: block; width: 100%; height: auto; }
    .scene-tag {
      position: absolute;
      top: 27px;
      left: 30px;
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 10px;
      letter-spacing: 1.8px;
      color: #4f6b5b;
      pointer-events: none;
    }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: #df754e; box-shadow: 0 0 0 4px #df754e14; }
    .scene-tag.is-paused .status-dot { background: #8a9b8a; box-shadow: none; }
    .scene-number {
      position: absolute;
      right: 30px;
      top: 24px;
      color: #6d8673;
      font: italic 15px Georgia, serif;
      letter-spacing: 1px;
      pointer-events: none;
    }
    .bell-toast {
      position: absolute;
      top: 23%;
      left: 61%;
      padding: 10px 16px;
      border: 1px solid #d7ded1;
      border-radius: 15px 15px 15px 3px;
      color: #49604e;
      background: #fffdf2f5;
      font-size: 13px;
      letter-spacing: 2px;
      opacity: 0;
      transform: translateY(8px) rotate(-4deg);
      transition: opacity .18s, transform .25s;
      pointer-events: none;
    }
    .bell-toast.visible { opacity: 1; transform: translateY(0) rotate(-4deg); }
    .controls {
      min-height: 88px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 26px;
      padding: 18px 28px;
      border-top: 1px solid #dde1d1;
    }
    .play-control { display: flex; align-items: center; gap: 13px; }
    .play-button {
      width: 44px; height: 44px;
      display: grid; place-items: center;
      border: 0; border-radius: 50%;
      background: var(--ink); color: #fffbed;
      cursor: pointer;
      transition: background .18s, transform .18s;
    }
    .play-button:hover { background: #3f6250; transform: scale(1.04); }
    .play-button svg { width: 19px; height: 19px; }
    .control-title { display: block; font-size: 13px; font-weight: 600; letter-spacing: .8px; }
    .control-subtitle { display: block; margin-top: 5px; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
    .speed-control { display: flex; align-items: center; gap: 13px; }
    .speed-label { font-size: 11px; color: #7a8779; letter-spacing: 1px; white-space: nowrap; }
    input[type="range"] {
      appearance: none; -webkit-appearance: none;
      width: 140px; height: 4px; border-radius: 5px;
      background: linear-gradient(to right, #df754e 0%, #df754e var(--progress), #dfe4d6 var(--progress), #dfe4d6 100%);
      cursor: pointer;
    }
    input[type="range"]::-webkit-slider-thumb {
      appearance: none; -webkit-appearance: none;
      width: 13px; height: 13px; border: 3px solid #fcfbf5; border-radius: 50%;
      background: #df754e; box-shadow: 0 0 0 1px #df754e;
    }
    input[type="range"]::-moz-range-thumb {
      width: 8px; height: 8px; border: 3px solid #fcfbf5; border-radius: 50%;
      background: #df754e; box-shadow: 0 0 0 1px #df754e;
    }
    .speed-value { min-width: 35px; color: #546b59; font-size: 11px; font-variant-numeric: tabular-nums; }
    .bell-button {
      display: flex; align-items: center; gap: 9px;
      padding: 10px 16px;
      border: 1px solid #dce1d3; border-radius: 24px;
      background: transparent; color: #526653;
      font-size: 12px; cursor: pointer;
      transition: background .18s, border-color .18s;
    }
    .bell-button:hover { background: #f3f0e2; border-color: #c8cfbe; }
    .bell-button:active { transform: translateY(1px); }
    .bell-button svg { width: 17px; height: 17px; }
    .footer {
      display: flex; justify-content: space-between; align-items: center;
      padding: 20px 2px 28px; gap: 12px;
      color: #939b8c; font-size: 10px; letter-spacing: 1px;
    }
    .footer-em { font: italic 15px Georgia, serif; color: #81907e; letter-spacing: .3px; }
    kbd { font: inherit; border: 1px solid #dcdfd3; border-radius: 4px; padding: 2px 5px; margin-right: 4px; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    @media (max-width: 700px) {
      .page { width: calc(100% - 28px); }
      .masthead { height: 74px; }
      .masthead-note { font-size: 10px; letter-spacing: 0; }
      .brand-name { font-size: 10px; letter-spacing: 1.6px; }
      .brand-sub { font-size: 9px; letter-spacing: 1.5px; }
      .heading { padding: 26px 3px 22px; }
      .intro { display: none; }
      .postcard { border-radius: 16px; }
      .scene { aspect-ratio: 1.4; }
      .scene > svg { position: absolute; height: 100%; width: 100%; }
      .scene-tag { top: 17px; left: 17px; font-size: 8px; letter-spacing: 1px; }
      .scene-number { top: 14px; right: 17px; font-size: 12px; }
      .controls { padding: 16px; gap: 18px 12px; flex-wrap: wrap; }
      .play-control { gap: 10px; }
      .play-button { width: 39px; height: 39px; }
      .control-title { font-size: 12px; }
      .control-subtitle { font-size: 9px; }
      .speed-control { order: 3; width: 100%; justify-content: center; padding: 7px 0 1px; border-top: 1px solid #e9e9df; }
      input[type="range"] { flex: 1; max-width: 210px; margin: 14px 5px; }
      .bell-button { padding: 9px 12px; font-size: 11px; }
      .footer { font-size: 8px; letter-spacing: .3px; }
      .footer-em { font-size: 13px; }
      .keyboard-note { display: none; }
      .bell-toast { font-size: 10px; padding: 7px 10px; top: 25%; left: 62%; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { transition: none !important; }
    }
  </style>
</head>
<body>
  <div class="page">
    <header class="masthead">
      <div class="brand">
        <svg class="brand-mark" viewBox="0 0 40 40" aria-hidden="true">
          <circle cx="20" cy="20" r="19" fill="none" stroke="#bac7b5"/>
          <path d="M9 26c5-1 5-7 9-7 4 0 6 4 11 2M15 22c0-9 3-13 7-12 3 1 3 4 1 6l9 2-10 2" fill="none" stroke="#29483e" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
          <circle cx="21" cy="13" r="1" fill="#df754e"/>
          <path d="M9 30h21" stroke="#df754e" stroke-width="1.6" stroke-linecap="round"/>
        </svg>
        <div><div class="brand-name">COASTING CLUB</div><div class="brand-sub">海 风 骑 行 俱 乐 部</div></div>
      </div>
      <div class="masthead-note">不赶时间,只赶海风。</div>
    </header>

    <main>
      <div class="heading">
        <div>
          <p class="eyebrow">LITTLE RIDES, BIG DAYDREAMS</p>
          <h1>今天,<span>骑慢一点。</span></h1>
        </div>
        <p class="intro">一只鹈鹕,一辆单车。<br>和一整个无所事事的好天气。</p>
      </div>

      <section class="postcard" aria-label="鹈鹕骑自行车的互动动画">
        <div class="scene">
          <div class="scene-tag" id="scene-tag"><span class="status-dot"></span><span id="scene-state">海岸漫游中</span><span aria-hidden="true"> / </span><span>COASTAL CRUISE</span></div>
          <div class="scene-number">No. 001</div>
          <div class="bell-toast" id="bell-toast" aria-hidden="true">叮铃,海风借过~</div>

          <svg id="illustration" viewBox="0 0 1200 630" preserveAspectRatio="xMidYMid slice" role="img" aria-labelledby="scene-title scene-desc" xmlns="http://www.w3.org/2000/svg">
            <title id="scene-title">乘着海风:一只骑自行车的鹈鹕</title>
            <desc id="scene-desc">戴绿色头盔、系橙色围巾的白色鹈鹕,骑着橙色自行车沿海岸前进。双脚轮流踩踏,车轮转动,围巾飘扬,远方有灯塔、帆船和飞鸟。</desc>
            <defs>
              <linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
                <stop offset="0" stop-color="#f1f3e4"/>
                <stop offset="1" stop-color="#e2eee3"/>
              </linearGradient>
              <linearGradient id="sea" x1="0" y1="0" x2="0" y2="1">
                <stop offset="0" stop-color="#b9d9ca"/>
                <stop offset="1" stop-color="#cae2cf"/>
              </linearGradient>
              <pattern id="water-pattern" width="340" height="95" patternUnits="userSpaceOnUse" y="389">
                <path d="M15 17h42m15 0h9M168 39h65m11 0h10M83 72h72M282 12h30M292 85h43" fill="none" stroke="#eff5dc" stroke-width="2" stroke-linecap="round" opacity=".66"/>
              </pattern>
              <pattern id="road-grain" width="160" height="90" patternUnits="userSpaceOnUse">
                <path d="M17 29h4m53 18h3m40-29h5m24 54h2M32 79h5" stroke="#b7ad8c" stroke-width="1.5" stroke-linecap="round" opacity=".33"/>
              </pattern>
              <g id="cloud-shape" fill="#fffdf0">
                <path d="M0 24C5 12 17 11 28 15C34-6 61-4 69 12C82 4 98 12 99 24C112 22 117 29 116 32H-9C-8 27-4 24 0 24Z"/>
              </g>
              <g id="cloud-set" opacity=".82">
                <use href="#cloud-shape" transform="translate(116 131) scale(1.1)"/>
                <use href="#cloud-shape" transform="translate(419 75) scale(.75)"/>
                <use href="#cloud-shape" transform="translate(838 209) scale(.6)"/>
                <use href="#cloud-shape" transform="translate(1215 114) scale(1.2)"/>
              </g>
              <g id="island-set">
                <path d="M-20 390Q72 356 148 370Q220 334 288 365Q352 360 428 390Z" fill="#a9c7b4"/>
                <path d="M728 390Q786 362 837 374Q910 338 996 365Q1052 353 1145 390Z" fill="#acc9b4"/>
                <path d="M855 390Q958 367 1103 387" fill="none" stroke="#8fb39f" stroke-width="2"/>
                <g transform="translate(1004 298)" stroke="#6c8e7b" stroke-linejoin="round">
                  <path d="M-17 77L-10 15H10L17 77Z" fill="#fcf5d9" stroke-width="2"/>
                  <path d="M-12 40H12L14 54H-14Z" fill="#e5a184" stroke="none"/>
                  <path d="M-12 15V1H12V15Z" fill="#f9e6b0" stroke-width="2"/>
                  <path d="M-16 1L0-12L16 1Z" fill="#628a79" stroke-width="2"/>
                  <path d="M-17 17H17M0 0V14" fill="none" stroke-width="2"/>
                  <path d="M-3 77V65Q0 60 3 65V77" fill="#6c8e7b" stroke="none"/>
                  <path d="M-25 78H25" stroke-width="3" stroke-linecap="round"/>
                </g>
              </g>
              <g id="verge-tile" stroke-linecap="round" stroke-linejoin="round">
                <path d="M34 552L29 541M35 552L39 536M35 552L45 543M119 554L121 547M123 554L129 545" stroke="#92a785" stroke-width="2.5"/>
                <path d="M268 552L264 535M268 552L273 540" stroke="#819b77" stroke-width="2"/>
                <circle cx="264" cy="533" r="4" fill="#e6a46d"/>
                <circle cx="274" cy="538" r="3" fill="#f4dfaa"/>
                <path d="M191 555h8m-136 0h8M324 550h7" stroke="#b4bb8f" stroke-width="2"/>
              </g>
              <g id="wheel-spokes" stroke="#839a83" stroke-width="1.65" opacity=".85">
                <path d="M0-78V78M-78 0H78"/>
                <path d="M0-78V78M-78 0H78" transform="rotate(30)"/>
                <path d="M0-78V78M-78 0H78" transform="rotate(60)"/>
                <rect x="59" y="-39" width="12" height="5" rx="2" fill="#df9d58" stroke="none" transform="rotate(-30 65 -36)"/>
              </g>
            </defs>

            <!-- Entire scene is vector artwork. There are no external assets. -->
            <rect width="1200" height="630" fill="url(#sky)"/>
            <circle cx="992" cy="136" r="76" fill="#f5e6b7" opacity=".28"/>
            <circle cx="992" cy="136" r="59" fill="#f6deb0" opacity=".48"/>
            <circle cx="992" cy="136" r="45" fill="#edbf75"/>
            <g id="clouds"><use href="#cloud-set"/><use href="#cloud-set" x="1600"/></g>
            <g fill="none" stroke="#748f7b" stroke-width="2.5" stroke-linecap="round" opacity=".65">
              <g id="gull-one" transform="translate(805 122)"><path id="gull-wing-one" d="M-15 0Q-7-10 0 0Q8-10 17 0"/></g>
              <g id="gull-two" transform="translate(855 103) scale(.65)"><path id="gull-wing-two" d="M-15 0Q-7-8 0 0Q8-8 17 0"/></g>
            </g>
            <g id="islands" opacity=".88"><use href="#island-set"/><use href="#island-set" x="1600"/></g>
            <path d="M0 390H1200V548H0Z" fill="url(#sea)"/>
            <path d="M0 391H1200" fill="none" stroke="#a6cbb9" stroke-width="2"/>
            <rect y="397" width="1200" height="146" fill="url(#water-pattern)"/>
            <g id="sailboat" transform="translate(970 415)" stroke-linejoin="round">
              <path d="M1 38H65L53 49H13Z" fill="#729587"/>
              <path d="M33-10V37" fill="none" stroke="#729587" stroke-width="2"/>
              <path d="M28-6L28 31H1Z" fill="#fff9e6"/>
              <path d="M38 4L60 30H38Z" fill="#dea07e"/>
              <path d="M-5 54H70" stroke="#eef3d9" stroke-width="2" stroke-linecap="round"/>
            </g>
            <path d="M0 517Q200 533 394 523T781 526T1200 515V565H0Z" fill="#e9e4bd"/>
            <path d="M0 531Q161 542 328 535T658 538T971 534T1200 535" fill="none" stroke="#faf5d7" stroke-width="5"/>
            <path d="M0 544Q125 537 248 545T506 544T770 546T1000 542T1200 546V573H0Z" fill="#c6ce9f"/>
            <path d="M0 556H1200V630H0Z" fill="#e9dfc5"/>
            <path d="M0 556H1200" stroke="#aeb994" stroke-width="2"/>
            <g id="verge"><use href="#verge-tile" x="-360"/><use href="#verge-tile"/><use href="#verge-tile" x="360"/><use href="#verge-tile" x="720"/><use href="#verge-tile" x="1080"/><use href="#verge-tile" x="1440"/></g>
            <rect y="559" width="1200" height="71" fill="url(#road-grain)"/>
            <path id="road-marks" d="M-180 611H1380" fill="none" stroke="#fcf6de" stroke-width="5" stroke-dasharray="66 84" stroke-linecap="round"/>
            <ellipse id="bike-shadow" cx="594" cy="579" rx="256" ry="13" fill="#667963" opacity=".13"/>
            <ellipse cx="438" cy="577" rx="42" ry="5" fill="#5b7059" opacity=".1"/>
            <ellipse cx="752" cy="577" rx="42" ry="5" fill="#5b7059" opacity=".1"/>

            <g id="bicycle" stroke-linecap="round" stroke-linejoin="round">
              <!-- Wheels rotate independently of their non-rotating axles. -->
              <g transform="translate(438 485)">
                <circle r="90" fill="#f5f4df" fill-opacity=".43" stroke="#2e4b40" stroke-width="12"/>
                <circle r="82" fill="none" stroke="#f9f1d5" stroke-width="4"/>
                <circle r="78" fill="none" stroke="#b1bba0" stroke-width="1.7"/>
                <g id="rear-spokes"><use href="#wheel-spokes"/></g>
                <circle r="9" fill="#f7ebcb" stroke="#45624e" stroke-width="3"/>
              </g>
              <g transform="translate(752 485)">
                <circle r="90" fill="#f5f4df" fill-opacity=".43" stroke="#2e4b40" stroke-width="12"/>
                <circle r="82" fill="none" stroke="#f9f1d5" stroke-width="4"/>
                <circle r="78" fill="none" stroke="#b1bba0" stroke-width="1.7"/>
                <g id="front-spokes"><use href="#wheel-spokes"/></g>
                <circle r="9" fill="#f7ebcb" stroke="#45624e" stroke-width="3"/>
              </g>
              <!-- Fenders and rear wicker basket. -->
              <path d="M342 480A97 97 0 0 1 495 407M696 406A97 97 0 0 1 849 482" fill="none" stroke="#435c46" stroke-width="9"/>
              <path d="M342 480A97 97 0 0 1 495 407M696 406A97 97 0 0 1 849 482" fill="none" stroke="#d6b573" stroke-width="5"/>
              <path d="M371 382H483M386 383L438 485M474 383L438 485" fill="none" stroke="#52654b" stroke-width="3.5"/>
              <path d="M396 330C391 300 440 300 439 330" fill="none" stroke="#52654b" stroke-width="4"/>
              <path d="M375 329H461L454 378H383Z" fill="#d2ac76" stroke="#59644b" stroke-width="3"/>
              <path d="M381 343H457M383 356H455M385 369H453M393 336L397 374M408 336L409 376M424 335L423 376M442 335L438 376" fill="none" stroke="#b88f5f" stroke-width="2"/>
              <path d="M375 329H461V338H376Z" fill="#e9cd99" stroke="#59644b" stroke-width="2.5"/>
              <rect x="405" y="345" width="30" height="23" rx="6" fill="#efe1ba"/>
              <path d="M411 356Q418 347 426 355L431 351V360L426 357Q418 365 411 356Z" fill="#76917a"/>
              <circle cx="416" cy="354" r="1" fill="#fff7df"/>

              <!-- Far leg, crank, and pedal sit behind the frame. -->
              <path id="far-leg-outline" d="M532 336L605 400L580 500" fill="none" stroke="#675c39" stroke-width="12"/>
              <path id="far-leg" d="M532 336L605 400L580 500" fill="none" stroke="#c58b46" stroke-width="7"/>
              <line id="far-crank" x1="580" y1="478" x2="580" y2="510" stroke="#61745b" stroke-width="6"/>
              <g id="far-foot" transform="translate(580 510)">
                <rect x="-15" y="2" width="33" height="7" rx="3" fill="#455942"/>
                <path d="M-5-13Q1-16 5-8L9-3Q20-4 28 2L17 4L11 2L4 5L-10 1Z" fill="#c78f48" stroke="#675c39" stroke-width="2.7"/>
              </g>

              <!-- Two triangles form the bicycle frame. -->
              <path d="M438 485L516 356L580 478Z M516 356H688L701 396L580 478 M688 356L752 485" fill="none" stroke="#365444" stroke-width="13"/>
              <path d="M438 485L516 356L580 478Z M516 356H688L701 396L580 478" fill="none" stroke="#e28351" stroke-width="8"/>
              <path d="M692 368L752 485" fill="none" stroke="#f0b16f" stroke-width="7"/>
              <path d="M522 358H676" stroke="#f7b47a" stroke-width="2"/>
              <path d="M515 357L506 333" fill="none" stroke="#4b6752" stroke-width="7"/>
              <path d="M483 331Q508 324 535 332Q539 338 528 341H491Q480 340 483 331Z" fill="#344e40" stroke="#2a453b" stroke-width="3"/>
              <path d="M489 331Q512 328 529 333" fill="none" stroke="#71826a" stroke-width="2"/>
              <path d="M688 355L679 324L687 315" fill="none" stroke="#486550" stroke-width="7"/>
              <path d="M677 320Q697 299 716 312" fill="none" stroke="#385442" stroke-width="7"/>
              <path d="M709 308L719 314" fill="none" stroke="#b48452" stroke-width="10"/>
              <path d="M705 315Q731 338 708 394" fill="none" stroke="#6b7c61" stroke-width="1.8"/>
              <g transform="translate(698 304)">
                <path d="M-8 4Q-8-7 0-7Q8-7 8 4Z" fill="#e6b75f" stroke="#4a644c" stroke-width="2.4"/>
                <path d="M-10 5H10" stroke="#4a644c" stroke-width="2.5"/>
                <circle cx="0" cy="-8" r="2" fill="#4a644c"/>
              </g>
              <text x="561" y="360" fill="#fff0cb" font-family="sans-serif" font-size="7" font-weight="700" letter-spacing="2.4">SEABIRD</text>
              <!-- Chain follows the two chainrings. -->
              <path d="M438 470L578 454A24 24 0 0 1 578 502L438 500A15 15 0 0 1 438 470Z" fill="#e5ddbc" stroke="#627457" stroke-width="3"/>
              <path id="chain" d="M438 470L578 454A24 24 0 0 1 578 502L438 500A15 15 0 0 1 438 470Z" fill="none" stroke="#9b9f7c" stroke-width="1.7" stroke-dasharray="2 5"/>
              <circle cx="438" cy="485" r="11" fill="#748269" stroke="#4e654e" stroke-width="2"/>
              <circle cx="580" cy="478" r="24" fill="#f6efd4" stroke="#395944" stroke-width="4"/>
              <g id="chainring" transform="rotate(0 580 478)" stroke="#a6ad88" stroke-width="3.5">
                <path d="M580 460V496M562 478H598"/>
                <circle cx="580" cy="478" r="16" fill="none" stroke-width="2"/>
              </g>
              <line id="near-crank" x1="580" y1="478" x2="580" y2="446" stroke="#3f5a43" stroke-width="7"/>
              <circle cx="580" cy="478" r="6" fill="#38533e"/>
              <circle cx="580" cy="478" r="2.3" fill="#e7d8af"/>
              <path id="near-leg-outline" d="M549 337L622 372L580 436" fill="none" stroke="#615b36" stroke-width="13"/>
              <path id="near-leg" d="M549 337L622 372L580 436" fill="none" stroke="#e2a550" stroke-width="8"/>
              <g id="near-foot" transform="translate(580 446)">
                <rect x="-15" y="2" width="35" height="8" rx="3" fill="#344f3c"/>
                <path d="M-5-13Q1-16 5-8L9-3Q20-4 29 2L18 5L11 3L4 6L-10 1Z" fill="#efb45d" stroke="#615b36" stroke-width="2.7"/>
                <path d="M8-1L16 1M4 0L8 3" fill="none" stroke="#c58b43" stroke-width="1.5"/>
              </g>
            </g>

            <!-- Pelican: long bill, pendulous throat pouch, white plumage,
                 dark flight feathers, a helmet, and a windblown scarf. -->
            <g id="pelican" stroke="#344e40" stroke-linecap="round" stroke-linejoin="round">
              <path id="scarf-tail" d="M601 222Q559 210 536 219Q515 226 493 211L504 233L491 243Q536 251 560 232L607 239Z" fill="#d97650" stroke-width="3"/>
              <path id="scarf-stitch" d="M500 233Q538 244 562 224" fill="none" stroke="#efaa77" stroke-width="2"/>
              <path d="M461 303C446 287 444 276 427 265C449 263 466 274 479 279C489 238 529 231 563 240C568 218 568 191 580 164C590 140 614 128 638 136C662 142 671 164 663 187C655 210 635 213 632 235C631 261 628 300 607 322C581 351 537 360 501 345C483 337 468 321 461 303Z" fill="#fff9e8" stroke-width="3.6"/>
              <path d="M459 292Q478 316 506 325Q561 347 604 313C589 348 540 358 502 341Q479 331 459 303Z" fill="#e4e7cf" stroke="none"/>
              <path d="M438 274L464 291M447 282L462 301" fill="none" stroke="#b0baa0" stroke-width="2"/>
              <path d="M571 244Q578 233 580 209" fill="none" stroke="#d3dbc4" stroke-width="5"/>
              <path d="M592 204Q603 213 621 210" fill="none" stroke="#e8e8d3" stroke-width="4"/>
              <path d="M578 220Q600 231 631 228L629 242Q600 247 575 234Z" fill="#e88758" stroke-width="3"/>
              <path d="M584 226Q604 236 623 234" fill="none" stroke="#f3b47f" stroke-width="2"/>
              <path d="M591 242Q598 234 606 244L601 252L590 249Z" fill="#d4724c" stroke-width="2.5"/>
              <!-- The near wing reaches naturally toward the handlebars. -->
              <path d="M491 271C506 256 535 255 556 271C578 286 592 301 620 309L680 316C692 310 703 315 702 324C701 334 687 337 676 334L618 329C596 330 574 316 562 313C539 331 510 314 499 299Q492 286 491 271Z" fill="#f8f5e1" stroke-width="3.3"/>
              <path d="M500 291Q514 310 540 315Q551 316 562 309L574 317Q548 338 521 318Q506 307 500 291Z" fill="#40594a" stroke-width="1.6"/>
              <path d="M508 275Q524 278 542 295M507 285Q521 290 533 302M572 304Q589 318 610 320" fill="none" stroke="#bec8ae" stroke-width="2"/>
              <path d="M679 321Q686 327 696 322M676 326Q685 332 694 328" fill="none" stroke="#899b7f" stroke-width="1.8"/>
              <!-- Distinctive pelican throat pouch and elongated upper bill. -->
              <path d="M655 191L810 193Q777 223 724 247Q688 262 670 231Z" fill="#edbb79" stroke-width="3.3"/>
              <path d="M668 197Q680 233 715 240Q752 229 783 209Q742 243 723 247Q689 257 675 234Z" fill="#dc9a60" stroke="none" opacity=".58"/>
              <path d="M670 202Q681 225 701 233" fill="none" stroke="#f9d797" stroke-width="3"/>
              <path d="M652 170Q715 173 811 184Q826 187 816 195L654 194Q659 181 652 170Z" fill="#edb653" stroke-width="3.3"/>
              <path d="M673 179L793 188" fill="none" stroke="#f7d480" stroke-width="3"/>
              <path d="M654 194L814 195" fill="none" stroke="#9a713e" stroke-width="2"/>
              <circle cx="666" cy="180" r="1.8" fill="#9d7b46" stroke="none"/>
              <path d="M626 153Q635 149 642 153" fill="none" stroke-width="2.5"/>
              <g id="eye" transform="translate(636 168)">
                <ellipse rx="8" ry="9" fill="#fffdf1" stroke-width="2.2"/>
                <ellipse cx="2" cy="1" rx="4.2" ry="5" fill="#2d473c" stroke="none"/>
                <circle cx="3" cy="-1" r="1.4" fill="#fffdf1" stroke="none"/>
              </g>
              <!-- A small sage-green cycling helmet. -->
              <path d="M584 147Q582 128 597 117Q620 101 644 113Q666 123 669 147Z" fill="#6f9480" stroke-width="3.3"/>
              <path d="M592 130Q606 112 628 115" fill="none" stroke="#a7b9a0" stroke-width="3"/>
              <path d="M585 143Q624 138 669 147L671 154Q625 146 584 151Z" fill="#466b58" stroke-width="2.8"/>
              <path d="M608 118L603 132M624 116L623 131M640 120L645 134" fill="none" stroke="#355646" stroke-width="4"/>
              <path d="M592 153Q593 186 611 200L622 187" fill="none" stroke="#5a755f" stroke-width="3"/>
              <rect x="608" y="191" width="8" height="7" rx="2" fill="#d8b56f" stroke-width="1.5" transform="rotate(35 612 194)"/>
            </g>
            <g id="bell-ripples" transform="translate(698 292)" fill="none" stroke="#d28d44" stroke-width="2.5" stroke-linecap="round" opacity="0">
              <path d="M-17-3Q-23-13-16-21M17-3Q23-13 16-21M-27 0Q-38-18-25-30M27 0Q38-18 25-30"/>
            </g>
            <g fill="none" stroke="#88a38b" stroke-width="2" stroke-linecap="round" opacity=".5" id="breeze-lines">
              <path d="M314 244H348M327 254H351M296 302H332"/>
            </g>
            <text x="31" y="600" fill="#899477" font-family="Georgia, serif" font-style="italic" font-size="12" letter-spacing=".6">Somewhere by the sea.</text>
          </svg>
        </div>

        <div class="controls">
          <div class="play-control">
            <button class="play-button" id="play-button" type="button" aria-label="暂停骑行" aria-pressed="false" title="暂停 / 继续(空格键)">
              <svg viewBox="0 0 24 24" aria-hidden="true"><path id="play-icon" d="M8 5V19M16 5V19" fill="none" stroke="currentColor" stroke-width="3.2" stroke-linecap="round"/></svg>
            </button>
            <div><span class="control-title" id="ride-status">悠哉骑行中</span><span class="control-subtitle">目的地:好心情</span></div>
          </div>
          <div class="speed-control">
            <label class="speed-label" for="speed">骑行节奏</label>
            <input id="speed" type="range" min="0.5" max="1.75" step="0.25" value="1" aria-valuetext="1 倍速度">
            <output id="speed-value" class="speed-value" for="speed">1.0×</output>
          </div>
          <button class="bell-button" id="bell-button" type="button" title="响一下车铃(B 键)">
            <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 16H19L17 13V9A5 5 0 0 0 7 9V13Z"/><path d="M10 19Q12 22 14 19M12 2V4M3 7L2 10M21 7L22 10"/></svg>
            叮铃一下
          </button>
        </div>
      </section>
    </main>

    <footer class="footer">
      <span>纯 SVG 绘制 · 一段可以循环的好心情</span>
      <span class="footer-em">Enjoy the little detours.</span>
      <span class="keyboard-note"><kbd>Space</kbd> 暂停 <span aria-hidden="true"> / </span> <kbd>B</kbd> 车铃</span>
    </footer>
    <span class="sr-only" id="announcement" role="status" aria-live="polite"></span>
    <noscript><p>启用 JavaScript 后即可观看骑行动画;当前展示为静态 SVG 插画。</p></noscript>
  </div>

  <script>
    (() => {
      'use strict';
      const $ = (id) => document.getElementById(id);
      const TAU = Math.PI * 2;
      const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
      const state = { playing: !reducedMotion.matches, speed: 1, time: 0 };
      const nodes = {
        rearSpokes: $('rear-spokes'), frontSpokes: $('front-spokes'),
        chainring: $('chainring'), chain: $('chain'), pelican: $('pelican'),
        nearLeg: $('near-leg'), nearOutline: $('near-leg-outline'),
        farLeg: $('far-leg'), farOutline: $('far-leg-outline'),
        nearFoot: $('near-foot'), farFoot: $('far-foot'),
        nearCrank: $('near-crank'), farCrank: $('far-crank'),
        road: $('road-marks'), grain: $('road-grain'), verge: $('verge'),
        clouds: $('clouds'), islands: $('islands'), water: $('water-pattern'),
        boat: $('sailboat'), scarf: $('scarf-tail'), scarfStitch: $('scarf-stitch'),
        eye: $('eye'), gullOne: $('gull-one'), gullTwo: $('gull-two'),
        wingOne: $('gull-wing-one'), wingTwo: $('gull-wing-two'),
        breeze: $('breeze-lines'), ripples: $('bell-ripples')
      };
      const playButton = $('play-button');
      const speedInput = $('speed');
      let frameId = 0;
      let lastFrame = null;
      let bellStart = null;
      let audioContext = null;
      let audioCloseTimer = 0;

      const fmt = (value) => value.toFixed(2);
      const translate = (x, y = 0) => `translate(${fmt(x)} ${fmt(y)})`;

      /** Two-link inverse kinematics keeps each ankle attached to its pedal.
       *  Knees bend forward; clamping prevents invalid square roots. */
      function legPath(hipX, hipY, ankleX, ankleY, upper = 91, lower = 91) {
        const dx = ankleX - hipX;
        const dy = ankleY - hipY;
        const rawDistance = Math.hypot(dx, dy);
        const distance = Math.max(0.001, Math.min(rawDistance, upper + lower - 0.001));
        const ux = dx / (rawDistance || 1);
        const uy = dy / (rawDistance || 1);
        const along = (upper * upper - lower * lower + distance * distance) / (2 * distance);
        const outward = Math.sqrt(Math.max(0, upper * upper - along * along));
        const kneeX = hipX + ux * along + uy * outward;
        const kneeY = hipY + uy * along - ux * outward;
        return `M${fmt(hipX)} ${fmt(hipY)}L${fmt(kneeX)} ${fmt(kneeY)}L${fmt(ankleX)} ${fmt(ankleY)}`;
      }

      function updatePedal(phase, near, bob) {
        const px = 580 + Math.cos(phase) * 32;
        const py = 478 + Math.sin(phase) * 32;
        const foot = near ? nodes.nearFoot : nodes.farFoot;
        const crank = near ? nodes.nearCrank : nodes.farCrank;
        const leg = near ? nodes.nearLeg : nodes.farLeg;
        const outline = near ? nodes.nearOutline : nodes.farOutline;
        const d = legPath(near ? 548 : 533, (near ? 337 : 334) + bob, px, py - 10);
        foot.setAttribute('transform', translate(px, py));
        crank.setAttribute('x2', fmt(px));
        crank.setAttribute('y2', fmt(py));
        leg.setAttribute('d', d);
        outline.setAttribute('d', d);
      }

      function draw() {
        const t = state.time;
        const phase = -Math.PI / 2 + t * TAU * 0.46;
        // Wheel rotation and road displacement share the same distance.
        const distance = t * TAU * 0.46 * 1.6 * 90;
        const wheelAngle = (distance / 90 * 180 / Math.PI) % 360;
        const bob = Math.sin(phase * 2) * 1.65;
        nodes.rearSpokes.setAttribute('transform', `rotate(${fmt(wheelAngle)})`);
        nodes.frontSpokes.setAttribute('transform', `rotate(${fmt(wheelAngle)})`);
        nodes.chainring.setAttribute('transform', `rotate(${fmt(phase * 180 / Math.PI)} 580 478)`);
        nodes.chain.setAttribute('stroke-dashoffset', fmt(-t * 58));
        nodes.pelican.setAttribute('transform', translate(0, bob));
        updatePedal(phase + Math.PI, false, bob);
        updatePedal(phase, true, bob);

        nodes.road.setAttribute('stroke-dashoffset', fmt(distance % 150));
        nodes.grain.setAttribute('patternTransform', translate(-(distance % 160)));
        nodes.verge.setAttribute('transform', translate(-(distance % 360)));
        nodes.clouds.setAttribute('transform', translate(-((distance * 0.025) % 1600)));
        nodes.islands.setAttribute('transform', translate(-((distance * 0.018) % 1600)));
        nodes.water.setAttribute('patternTransform', translate(-((distance * 0.08) % 340)));
        const boatX = ((1090 - distance * 0.075) % 1490 + 1490) % 1490 - 120;
        nodes.boat.setAttribute('transform', `${translate(boatX, 414 + Math.sin(t * 1.7) * 2)} rotate(${fmt(Math.sin(t * 1.3) * 1.8)} 33 45)`);

        const flutter = Math.sin(t * 5.2) * 5;
        const flutter2 = Math.sin(t * 5.2 - 0.9) * 4;
        nodes.scarf.setAttribute('d', `M601 222Q559 ${fmt(210 + flutter2)} 536 ${fmt(219 + flutter)}Q515 ${fmt(226 + flutter2)} 493 ${fmt(211 + flutter)}L504 ${fmt(233 + flutter)}L491 ${fmt(243 + flutter2)}Q536 ${fmt(251 + flutter)} 560 232L607 239Z`);
        nodes.scarfStitch.setAttribute('d', `M500 ${fmt(233 + flutter)}Q538 ${fmt(244 + flutter2)} 562 224`);

        const blinkTime = t % 5.3;
        const eyeScale = blinkTime > 5.08 ? Math.max(0.08, Math.abs((blinkTime - 5.19) / 0.11)) : 1;
        nodes.eye.setAttribute('transform', `translate(636 168) scale(1 ${fmt(eyeScale)})`);
        const wing = -8 + Math.sin(t * 3.4) * 6;
        const wing2 = -8 + Math.sin(t * 3.4 + 1.2) * 6;
        nodes.wingOne.setAttribute('d', `M-15 0Q-7 ${fmt(wing)} 0 0Q8 ${fmt(wing)} 17 0`);
        nodes.wingTwo.setAttribute('d', `M-15 0Q-7 ${fmt(wing2)} 0 0Q8 ${fmt(wing2)} 17 0`);
        nodes.gullOne.setAttribute('transform', translate(805 + Math.sin(t * 0.25) * 29, 122 + Math.sin(t * 0.7) * 5));
        nodes.gullTwo.setAttribute('transform', `${translate(855 + Math.sin(t * 0.25) * 29, 103 + Math.sin(t * 0.7 + 1) * 5)} scale(.65)`);
        nodes.breeze.setAttribute('opacity', fmt(0.32 + Math.sin(t * 2.8) * 0.13));
        nodes.breeze.setAttribute('transform', translate(-Math.sin(t * 2.8) * 6));
      }

      function updateBell(now) {
        if (bellStart === null) return;
        const progress = (now - bellStart) / 1250;
        if (progress >= 1) {
          bellStart = null;
          nodes.ripples.setAttribute('opacity', '0');
          $('bell-toast').classList.remove('visible');
          return;
        }
        nodes.ripples.setAttribute('opacity', fmt((1 - progress) * 0.85));
        const scale = reducedMotion.matches ? 1 : 1 + progress * 0.5;
        nodes.ripples.setAttribute('transform', `translate(698 292) scale(${fmt(scale)})`);
      }

      function tick(now) {
        frameId = 0;
        if (document.hidden) { lastFrame = null; return; }
        const delta = lastFrame === null ? 0 : Math.min((now - lastFrame) / 1000, 0.05);
        lastFrame = now;
        if (state.playing) {
          state.time += delta * state.speed;
          draw();
        }
        updateBell(now);
        if (state.playing || bellStart !== null) frameId = requestAnimationFrame(tick);
        else lastFrame = null;
      }

      function wake() {
        if (!frameId && !document.hidden && (state.playing || bellStart !== null)) {
          lastFrame = null;
          frameId = requestAnimationFrame(tick);
        }
      }

      function syncPlayUI() {
        const paused = !state.playing;
        playButton.setAttribute('aria-label', paused ? '继续骑行' : '暂停骑行');
        playButton.setAttribute('aria-pressed', String(paused));
        $('play-icon').setAttribute('d', paused ? 'M9 5L19 12L9 19Z' : 'M8 5V19M16 5V19');
        $('play-icon').setAttribute('fill', paused ? 'currentColor' : 'none');
        $('play-icon').setAttribute('stroke-width', paused ? '1.5' : '3.2');
        $('ride-status').textContent = paused ? '停下来,吹吹风' : '悠哉骑行中';
        $('scene-state').textContent = paused ? '海边小憩中' : '海岸漫游中';
        $('scene-tag').classList.toggle('is-paused', paused);
      }

      function togglePlay() {
        state.playing = !state.playing;
        syncPlayUI();
        wake();
      }

      // The bell is synthesized locally and only sounds after user interaction.
      function soundBell() {
        try {
          const AudioEngine = window.AudioContext || window.webkitAudioContext;
          if (!AudioEngine) return;
          if (!audioContext || audioContext.state === 'closed') audioContext = new AudioEngine();
          const context = audioContext;
          if (context.state === 'suspended') context.resume().catch(() => {});
          const start = context.currentTime + 0.015;
          [[1568, 0, 0.065], [2352, 0, 0.024], [2093, 0.13, 0.042], [3136, 0.13, 0.013]].forEach(([frequency, delay, volume]) => {
            const oscillator = context.createOscillator();
            const envelope = context.createGain();
            oscillator.type = 'sine';
            oscillator.frequency.setValueAtTime(frequency, start + delay);
            envelope.gain.setValueAtTime(0, start + delay);
            envelope.gain.linearRampToValueAtTime(volume, start + delay + 0.006);
            envelope.gain.exponentialRampToValueAtTime(0.0001, start + delay + 0.95);
            oscillator.connect(envelope);
            envelope.connect(context.destination);
            oscillator.start(start + delay);
            oscillator.stop(start + delay + 1);
            oscillator.onended = () => { oscillator.disconnect(); envelope.disconnect(); };
          });
          clearTimeout(audioCloseTimer);
          audioCloseTimer = setTimeout(() => {
            if (context.state === 'running') context.suspend().catch(() => {});
          }, 2000);
        } catch (_) {
          // The visual bell remains usable when browser audio is unavailable.
        }
      }

      function ringBell() {
        bellStart = performance.now();
        $('bell-toast').classList.add('visible');
        $('announcement').textContent = '叮铃,海风借过~';
        soundBell();
        wake();
      }

      playButton.addEventListener('click', togglePlay);
      $('bell-button').addEventListener('click', ringBell);
      speedInput.addEventListener('input', () => {
        const value = Number(speedInput.value);
        if (!Number.isFinite(value)) return;
        state.speed = Math.max(0.5, Math.min(1.75, value));
        const label = Number.isInteger(state.speed * 10) ? state.speed.toFixed(1) : state.speed.toFixed(2);
        $('speed-value').textContent = `${label}×`;
        speedInput.setAttribute('aria-valuetext', `${label} 倍速度`);
        speedInput.style.setProperty('--progress', `${(state.speed - 0.5) / 1.25 * 100}%`);
      });
      document.addEventListener('keydown', (event) => {
        if (event.repeat || event.altKey || event.ctrlKey || event.metaKey) return;
        const target = event.target;
        if (target instanceof HTMLElement && (target.isContentEditable || /^(INPUT|TEXTAREA|SELECT|BUTTON|A)$/.test(target.tagName))) return;
        if (event.code === 'Space') { event.preventDefault(); togglePlay(); }
        else if (event.key.toLowerCase() === 'b') ringBell();
      });
      document.addEventListener('visibilitychange', () => {
        if (document.hidden) {
          if (frameId) cancelAnimationFrame(frameId);
          frameId = 0;
          lastFrame = null;
        } else wake();
      });
      const onMotionPreferenceChange = (event) => {
        if (event.matches) { state.playing = false; syncPlayUI(); }
      };
      if (reducedMotion.addEventListener) reducedMotion.addEventListener('change', onMotionPreferenceChange);
      else if (reducedMotion.addListener) reducedMotion.addListener(onMotionPreferenceChange);

      draw();
      syncPlayUI();
      wake();
    })();
  </script>
</body>
</html>
2
14
登录后参与讨论。

14 条回复

排序
  1. andyjiao15 青铜 2 个月前

    哪里可以体验的

    0
  2. pppjj9 白银 楼主 2 个月前

    X 5 pro

    0
  3. James 💯 传奇 MANAGER 2 个月前

    代差了,6代击败5代

    0
  4. pppjj9 白银 楼主 2 个月前

    这一代前端控制太强了computer use 也很厉害

    0
  5. yorushika 钻石 2 个月前

    可以

    0
  6. yuren 铂金 2 YEARS 2 个月前

    牛逼了

    0
  7. keioio 白银 3 YEARS 2 个月前

    说实话好像没啥大的区别?

    0
  8. a707214982 黄金 2 个月前

    还没有用过

    0
  9. Sync 青铜 2 个月前

    very good

    0
  10. LazyChara 铂金 3 YEARS 2 个月前

    老给子拿自己的pro套餐又在炫耀了 😡

    0
  11. pppjj9 白银 楼主 2 个月前

    羡慕嫉妒恨😏

    0
  12. Iewen 白银 2 个月前

    又要瘫坐在地上了

    0
  13. JinMukun 钻石 3 YEARS 2 个月前

    六代确实很强,但OpenAI也有可能针对这种常见问题做了优化。

    0
  14. syan 💬 黄金 2 个月前

    这一代太强了

    0