* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}


body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 25%, #C084FC 50%, #DDD6FE 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 132, 252, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 20px 40px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding: 40px;
    text-align: center;
    max-width: 900px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 132, 252, 0.1) 0%, rgba(221, 214, 254, 0.05) 100%);
    border-radius: 24px;
    pointer-events: none;
}

h1 {
    color: #2d3748;
    margin-bottom: 30px;
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.game-info {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
    gap: 20px;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    border-radius: 16px;
    min-width: 140px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(196, 132, 252, 0.3), rgba(221, 214, 254, 0.2));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.white-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: #4a5568;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.black-player {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.95) 0%, rgba(59, 7, 100, 0.9) 100%);
    color: #f7fafc;
    box-shadow:
        0 8px 32px rgba(88, 28, 135, 0.3),
        inset 0 1px 0 rgba(196, 132, 252, 0.2);
}

.player:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.player-name {
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.pieces-count {
    font-size: 0.95em;
    opacity: 0.8;
    font-weight: 500;
}

.current-turn {
    font-size: 1.3em;
    font-weight: 600;
    color: #8B5CF6;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(196, 132, 252, 0.1) 100%);
    border-radius: 50px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.current-turn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 132, 252, 0.3), transparent);
    transition: left 0.5s;
}

.current-turn:hover::before {
    left: 100%;
}

.board-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
}

#gameBoard {
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    cursor: pointer;
    box-shadow:
        0 20px 40px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: block;
    margin: 0 auto;
}

#gameBoard::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(196, 132, 252, 0.3));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gameBoard:hover::before {
    opacity: 1;
}

#gameBoard:hover {
    transform: translateY(-2px);
    box-shadow:
        0 25px 50px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(139, 92, 246, 0.1);
}

.game-controls {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

button {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    margin: 0 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:active {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#resetBtn {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 50%, #FBBF24 100%);
    box-shadow:
        0 8px 32px rgba(236, 72, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#resetBtn:hover {
    box-shadow:
        0 12px 40px rgba(236, 72, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-status {
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

#gameMessage {
    font-size: 1.1em;
    font-weight: 500;
    color: #4a5568;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
    border-radius: 16px;
    border: none;
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

#gameMessage::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    border-radius: 0 2px 2px 0;
}

/* 走棋提示样式 */
.move-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow:
        0 20px 40px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.move-hint.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.move-hint::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #8B5CF6, #A855F7, #C084FC);
    border-radius: 18px;
    z-index: -1;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 3% auto;
    padding: 40px;
    border-radius: 24px;
    width: 85%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 25px 50px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(196, 132, 252, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #a0aec0;
    float: right;
    font-size: 32px;
    font-weight: 300;
    position: absolute;
    right: 25px;
    top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
}

.close:hover,
.close:focus {
    color: #EC4899;
    background: rgba(236, 72, 153, 0.1);
    transform: rotate(90deg);
}

.rules-content {
    text-align: left;
    line-height: 1.7;
    color: #4a5568;
}

.rules-content h2 {
    color: #2d3748;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-content h3 {
    color: #2d3748;
    margin: 25px 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.rules-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    border-radius: 2px;
}

.rules-content h4 {
    color: #4a5568;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.rules-content p {
    margin-bottom: 12px;
    color: #4a5568;
    font-size: 1em;
}

.rules-content ul {
    margin: 15px 0 15px 25px;
}

.rules-content li {
    margin-bottom: 10px;
    color: #4a5568;
    position: relative;
    padding-left: 10px;
}

.rules-content li::before {
    content: '•';
    color: #8B5CF6;
    font-weight: bold;
    position: absolute;
    left: -10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .game-container {
        padding: 25px;
        border-radius: 20px;
    }

    h1 {
        font-size: 2.2em;
        margin-bottom: 25px;
    }

    .player-info {
        flex-direction: column;
        gap: 15px;
    }

    .current-turn {
        order: -1;
        margin-bottom: 20px;
        font-size: 1.1em;
        padding: 14px 28px;
    }

    .player {
        min-width: 200px;
        padding: 18px 25px;
    }

    #gameBoard {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    button {
        padding: 12px 24px;
        margin: 8px;
        font-size: 0.95em;
    }

    .modal-content {
        width: 95%;
        margin: 8% auto;
        padding: 25px;
        border-radius: 20px;
    }

    .rules-content h2 {
        font-size: 1.8em;
    }

    .rules-content h3 {
        font-size: 1.2em;
    }

    .move-hint {
        padding: 16px 24px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .player {
        min-width: 160px;
        padding: 15px 20px;
    }

    .current-turn {
        font-size: 1em;
        padding: 12px 24px;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9em;
        margin: 6px;
    }

    .modal-content {
        padding: 20px;
        margin: 10% auto;
    }
}

/* 棋子高亮效果 */
.piece-highlight {
    animation: purplePulse 1.5s infinite ease-in-out;
}

@keyframes purplePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0));
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
    }
}

/* 获胜动画 */
.winner-animation {
    animation: purpleCelebration 2s ease-in-out;
}

@keyframes purpleCelebration {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1) hue-rotate(0deg);
    }

    25% {
        transform: scale(1.02) rotate(0.5deg);
        filter: brightness(1.1) hue-rotate(10deg);
    }

    50% {
        transform: scale(1.03) rotate(0deg);
        filter: brightness(1.2) hue-rotate(20deg);
    }

    75% {
        transform: scale(1.02) rotate(-0.5deg);
        filter: brightness(1.1) hue-rotate(10deg);
    }
}

/* 自定义滚动条 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 50%, #A855F7 100%);
}

/* 焦点样式 */
button:focus,
#gameBoard:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.3),
        0 8px 32px rgba(139, 92, 246, 0.3);
}

/* 禁用状态 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2) !important;
}

/* 移动设备触摸优化 */
#gameBoard {
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 防止移动设备上的双击缩放 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许文本选择的元素 */
.rules-content,
.rules-content p,
.rules-content li,
.rules-content h2,
.rules-content h3,
.rules-content h4 {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 移动设备上的Canvas容器优化 */
.board-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 10px;
    box-sizing: border-box;
}

/* 确保Canvas在移动设备上正确显示 */
@media (max-width: 768px) {
    .board-container {
        padding: 10px 15px;
        margin: 20px auto;
        max-width: 90vw;
    }

    #gameBoard {
        max-width: 100%;
        width: min(400px, calc(100vw - 60px));
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

/* 竖屏时的特殊优化 */
@media (max-width: 480px) and (orientation: portrait) {
    .game-container {
        padding: 15px;
        margin: 10px;
        max-width: 95vw;
    }

    .board-container {
        margin: 15px auto;
        padding: 5px 10px;
    }

    #gameBoard {
        width: min(320px, calc(100vw - 50px));
        max-width: 320px;
    }

    .player-info {
        gap: 10px;
        flex-wrap: wrap;
    }

    .player {
        min-width: 120px;
        max-width: 140px;
        padding: 12px 16px;
        flex: 1;
    }

    .current-turn {
        font-size: 0.95em;
        padding: 10px 20px;
        width: 100%;
        order: -1;
        margin-bottom: 15px;
    }

    button {
        padding: 10px 18px;
        font-size: 0.9em;
        margin: 4px 6px;
        min-width: 80px;
    }

    .game-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    #gameMessage {
        font-size: 1em;
        padding: 15px 20px;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 360px) {
    .game-container {
        padding: 12px;
        margin: 5px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .board-container {
        padding: 5px;
        margin: 10px auto;
    }

    #gameBoard {
        width: min(280px, calc(100vw - 40px));
        max-width: 280px;
    }

    .player {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .current-turn {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    button {
        padding: 8px 14px;
        font-size: 0.85em;
        margin: 3px 4px;
    }

    .move-hint {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 90vw;
        word-wrap: break-word;
    }
}

/* 横屏时的优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .game-container {
        padding: 15px;
        max-height: 95vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    h1 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .game-info {
        margin-bottom: 10px;
    }

    .player-info {
        margin-bottom: 10px;
    }

    .board-container {
        margin: 10px auto;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #gameBoard {
        width: min(300px, 40vh);
        height: min(300px, 40vh);
    }

    .game-controls {
        margin: 10px 0;
    }

    .game-status {
        margin-top: 10px;
    }

    .credits {
        margin-top: 10px;
        padding-top: 8px;
    }
}

/* 超小屏幕横屏优化 */
@media (max-height: 480px) and (orientation: landscape) {
    .game-container {
        padding: 10px;
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.4em;
        margin-bottom: 8px;
    }

    .player {
        padding: 8px 12px;
        min-width: 90px;
    }

    .current-turn {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    #gameBoard {
        width: min(250px, 35vh);
        height: min(250px, 35vh);
    }

    button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* 创作提示样式 */
.credits {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 1;
}

.credits p {
    font-size: 0.9em;
    color: rgba(139, 92, 246, 0.7);
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.credits p:hover {
    opacity: 1;
    color: #8B5CF6;
    transform: translateY(-1px);
}

/* 移动设备上的创作提示优化 */
@media (max-width: 768px) {
    .credits {
        margin-top: 15px;
        padding-top: 12px;
    }

    .credits p {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .credits p {
        font-size: 0.8em;
    }
}

/* Language and page links */
.language-switch {
    text-align: right;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.language-switch a,
.page-links a {
    color: #6b46c1;
    font-weight: 600;
    text-decoration: none;
    background: rgba(139, 92, 246, 0.12);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-block;
    transition: all 0.3s ease;
}

.language-switch a:hover,
.page-links a:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

.page-links {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Origin page */
.origin-content {
    text-align: left;
    color: #4a5568;
    line-height: 1.7;
    margin: 10px 0 25px 0;
    position: relative;
    z-index: 1;
}

.origin-content p {
    margin-bottom: 12px;
}

.origin-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.origin-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
    text-align: left;
}

.origin-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.origin-card figcaption {
    padding: 14px 16px;
    font-size: 0.95em;
    color: #4a5568;
}

@media (max-width: 900px) {
    .origin-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .origin-gallery {
        grid-template-columns: 1fr;
    }

    .origin-card img {
        height: 180px;
    }
}
