/* style.css - 完整版 */

/* 膠帶效果 */
.tape-strip {
    background-color: rgba(240, 215, 140, 0.8);
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 膠帶遮罩 */
.tape-strip-mask {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='200' height='50' viewBox='0 0 200 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L200,0 L195,50 L5,50 Z' fill='black'/%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='200' height='50' viewBox='0 0 200 50' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L200,0 L195,50 L5,50 Z' fill='black'/%3E"); 
}

/* 隨機旋轉效果 (還原原本的設計) */
.rotate-random-1 { transform: rotate(-1.5deg); }
.rotate-random-2 { transform: rotate(1.2deg); }
.rotate-random-3 { transform: rotate(-2.5deg); }
.rotate-random-4 { transform: rotate(2deg); }

/* 邊框標記 */
.border-marker { border: 3px solid #181210; }

/* 導航按鈕樣式 */
.nav-btn {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #191514;
    transform: rotate(1deg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-0.5rem) rotate(0deg);
}

.nav-btn.active {
    background-color: #ef847d;
    color: white;
    border-color: #ef847d;
    transform: translateY(-0.5rem) rotate(-2deg);
}

.nav-btn.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 2rem;
    height: 1rem;
    background-color: rgba(126, 211, 194, 0.8);
    z-index: 10;
}

@media (max-width: 640px) {
    .nav-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding-bottom: 6rem;
    align-items: start;
}

.fluid-padding {
    padding-left: clamp(16px, 5vw, 80px);
    padding-right: clamp(16px, 5vw, 80px);
}

/* 全域字型設定 */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

html { scroll-behavior: smooth; }

img, a {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}
