/* style.css - Inch Lim Site */
@font-face {
  font-family: '汇文明朝体';
  src: url('./fonts/huiwen.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #1a1a1a;
  --secondary: #f5f0eb;
  --accent: #c9a87c;
  --background: #faf8f5;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --auxiliary: #8b7355;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif; background: var(--background); color: var(--text); line-height: 1.8; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif; font-weight: 400; letter-spacing: 0.05em; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav { position: fixed; top: 0; left: 0; width: 100%; padding: 25px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.4s ease; }
nav.scrolled { background: rgba(255, 255, 255, 0.98); padding: 15px 50px; box-shadow: 0 2px 30px rgba(0,0,0,0.05); }
.logo { font-family: '汇文明朝体', 'Noto Serif SC', serif; font-size: 1.8rem; font-weight: 500; letter-spacing: 0.1em; word-spacing: -4px; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 50px; list-style: none; }
.nav-links a { color: var(--primary); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; position: relative; padding: 5px 0; }
.nav-links a::after { content:''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px; background: var(--accent); transition: all 0.4s; transform: translateX(-50%); }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 28px; height: 1.5px; background: var(--primary); transition: all 0.3s; }

/* Hero Section */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #0d0d0d 100%); }
.hero-bg:before { content:''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=80') center/cover; opacity: 0.3; mix-blend-mode: overlay; }
.hero-content { position: relative; text-align: center; color: var(--secondary); z-index: 1; }
.hero-subtitle { font-size: 0.9rem; letter-spacing: 0.4em; text-transform: uppercase; margin-bottom: 20px; opacity: 0; animation: fadeInUp 1s ease 0.3s forwards; }
.hero-title { font-family: '汇文明朝体', 'Noto Serif SC', serif; font-size: clamp(3rem, 10vw, 7rem); font-weight: 300; letter-spacing: 0.14em; word-spacing: -18px; line-height: 1.1; margin-bottom: 30px; opacity: 0; animation: fadeInUp 1s ease 0.5s forwards; }
.hero-tagline { font-family: 'Songti SC','SimSun', serif; font-style: italic; font-size: 1.3rem; letter-spacing: 0.1em; opacity: 0; animation: fadeInUp 1s ease 0.7s forwards; }
.scroll-indicator { position: absolute; bottom: 40px; left: calc(50% - 25px); width: 50px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: fadeInUp 1s ease 1s forwards; }
.scroll-indicator span { font-size: 0.8rem; color: var(--secondary); }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--secondary), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* Sections */
section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-label { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--auxiliary); margin-bottom: 15px; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--primary); }

/* Collections */
.collections { background: var(--background); }
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.collection-card { position: relative; overflow: hidden; cursor: pointer; }
.collection-image { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; }
.collection-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.collection-card:hover .collection-image img { transform: scale(1.1); }
.collection-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, transparent 50%); opacity: 0; transition: opacity 0.4s ease; }
.collection-card:hover .collection-overlay { opacity: 1; }
.collection-info { padding: 25px 0; text-align: center; }
.collection-name { font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; letter-spacing: 0.1em; }
.collection-desc { font-size: 0.85rem; color: var(--text-light); }

/* About */
.about { background: var(--primary); color: var(--secondary); }
.about .section-label { color: var(--accent); }
.about .section-title { color: var(--secondary); }
.about-content { display: grid; grid-template-columns: 1fr; gap: 40px; justify-items: center; align-items: start; }
.about-text { text-align: left; max-width: 900px; margin: 0 auto; }
.about-text h3 { font-size: 2.2rem; margin-bottom: 30px; letter-spacing: 0.1em; }
.about-text p { font-size: 1rem; line-height: 2; color: rgba(245,240,235,0.8); margin-bottom: 20px; }
.about-signature { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.5rem; color: var(--accent); margin-top: 40px; }

/* Contact */
.contact { background: var(--background); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h3 { font-size: 2rem; margin-bottom: 30px; margin-top: 0; line-height: 1.2; }
.contact-info p { color: var(--text-light); margin-bottom: 40px; line-height: 1.9; margin-top: 0; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; color: var(--text-light); }
.contact-item p:first-child { color: var(--text-light); font-size: 1rem; width: 40px; flex-shrink: 0; line-height: 1.6; margin: 0; }
.contact-item p:last-child { margin: 0; color: var(--text-light); font-size: 1rem; line-height: 1.6; }
.social-links { display: flex; gap: 20px; margin-top: 40px; }
.social-links a { width: 45px; height: 45px; border: 1px solid var(--auxiliary); display: flex; align-items: center; justify-content: center; color: var(--primary); text-decoration: none; font-size: 0.8rem; transition: all 0.4s ease; }
.social-links a:hover { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.qr-codes { display: flex; flex-direction: column; justify-content: center; }
.qr-codes h3 { font-size: 2rem; margin-bottom: 30px; margin-top: 0; line-height: 1.2; }
.qr-grid { display: flex; gap: 40px; }
.qr-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-item img { width: 120px; height: 120px; object-fit: contain; border: 1px solid #eee; padding: 10px; background: #fff; }
.qr-item span { font-size: 0.85rem; color: var(--text-light); letter-spacing: 0.1em; }
.contact-form { display: flex; flex-direction: column; gap: 25px; }
.form-group { position: relative; }
.form-group input, .form-group textarea { width: 100%; padding: 15px 0; background: transparent; border: none; border-bottom: 1px solid #ddd; font-family: 'Raleway', sans-serif; font-size: 1rem; color: var(--text); transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-group label { position: absolute; left: 0; top: 15px; font-size: 0.85rem; color: var(--text-light); pointer-events: none; transition: all 0.3s ease; }
.form-group input:focus ~ label, .form-group input:valid ~ label, .form-group textarea:focus ~ label, .form-group textarea:valid ~ label { top: -10px; font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.submit-btn { padding: 18px 50px; background: transparent; border: 1px solid var(--primary); color: var(--primary); font-family: 'Raleway', sans-serif; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all 0.4s ease; align-self: flex-start; margin-top: 20px; }
.submit-btn:hover { background: var(--primary); color: var(--secondary); }
.form-message { padding: 15px 20px; margin-top: 20px; display: none; }
.form-message.success { display: block; background: rgba(201,168,124,0.2); border-left: 3px solid var(--accent); color: var(--primary); }

/* Footer */
footer { background: var(--primary); color: var(--secondary); padding: 25px 50px; text-align: left; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: '汇文明朝体', 'Noto Serif SC', serif; font-size: 1.3rem; letter-spacing: 0.1em; word-spacing: -3px; }
.footer-text { font-size: 0.8rem; color: rgba(245,240,235,0.6); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.5); opacity: 0.5; } }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 1024px) {
  .about-content, .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 20px; }
  .nav-links { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--background); flex-direction: column; justify-content: center; align-items: center; gap: 40px; transition: right 0.4s; }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1.2rem; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  section { padding: 80px 0; }
  .collections-grid { grid-template-columns: 1fr; gap: 30px; }
  .collection-image { height: 400px; }
  .qr-grid { flex-direction: column; align-items: flex-start; gap: 25px; }
  .qr-item { flex-direction: row; gap: 15px; }
  .qr-item img { width: 80px; height: 80px; }
}
