/* 雨晨爱开发 - 样式文件 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --primary: #3b82f6; --text-primary: #1e293b; --text-secondary: #64748b; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #ecfdf5 100%); min-height: 100vh; color: var(--text-primary); overflow-x: hidden; }
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 1000; background: rgba(255,255,255,0.25); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(255,255,255,0.3); box-shadow: 0 4px 30px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; transition: all .3s ease; }
.navbar.scrolled { background: rgba(255,255,255,0.45); box-shadow: 0 8px 32px rgba(31,38,135,0.1); }
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer; }
.nav-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 12px rgba(59,130,246,0.2); transition: transform .3s ease; }
.nav-brand:hover img { transform: scale(1.08) rotate(-3deg); }
.nav-brand span { font-size: 20px; font-weight: 700; background: linear-gradient(135deg, #3b82f6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.5px; }
.nav-menu { display: flex; gap: 8px; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--text-secondary); font-size: 15px; font-weight: 500; padding: 10px 24px; border-radius: 12px; transition: all .3s ease; cursor: pointer; }
.nav-menu a:hover { color: var(--primary); background: rgba(59,130,246,0.08); }
.nav-menu a.active { color: var(--primary); background: rgba(59,130,246,0.12); font-weight: 600; }
.page { padding-top: 72px; min-height: 100vh; display: none; animation: fadeIn .5s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.home-hero { text-align: center; padding: 100px 24px 60px; }
.home-hero h1 { font-size: 52px; font-weight: 800; background: linear-gradient(135deg, #1e40af, #0891b2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; letter-spacing: -1px; }
.home-hero p { font-size: 18px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 60px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; padding: 0 24px 80px; }
.contact-card { background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); border-radius: 24px; padding: 36px 32px; text-align: center; transition: all .4s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 20px rgba(0,0,0,0.04); position: relative; overflow: hidden; }
.contact-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #3b82f6, #06b6d4); opacity: 0; transition: opacity .3s ease; }
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(59,130,246,0.12); background: rgba(255,255,255,0.8); }
.contact-card:hover::before { opacity: 1; }
.contact-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.contact-icon.qq { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; }
.contact-icon.group { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.contact-icon.wx { background: linear-gradient(135deg, #22c55e, #4ade80); color: white; }
.contact-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.contact-card .label { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.contact-card p { font-size: 16px; color: var(--text-secondary); font-family: "SF Mono", "Fira Code", monospace; letter-spacing: 0.5px; }
.works-header { text-align: center; padding: 100px 24px 40px; }
.works-header h1 { font-size: 42px; font-weight: 800; background: linear-gradient(135deg, #1e40af, #0891b2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.works-header p { font-size: 17px; color: var(--text-secondary); }
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; padding: 0 24px 100px; }
.work-card { background: rgba(255,255,255,0.65); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.5); border-radius: 28px; padding: 40px; transition: all .4s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 24px rgba(0,0,0,0.04); position: relative; overflow: hidden; }
.work-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(59,130,246,0.1); background: rgba(255,255,255,0.85); }
.work-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.work-icon { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; box-shadow: 0 4px 16px rgba(0,0,0,0.1); transition: transform .4s ease; }
.work-card:hover .work-icon { transform: scale(1.05); }
.work-icon-fallback { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.work-title-group { flex: 1; }
.work-title-group h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.work-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; }
.badge-harmony { background: rgba(16,185,129,0.12); color: #059669; }
.badge-android { background: rgba(59,130,246,0.12); color: #2563eb; }
.work-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }
.work-link { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 14px; text-decoration: none; font-size: 15px; font-weight: 600; transition: all .3s ease; border: none; cursor: pointer; }
.work-link.primary { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: white; box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
.work-link.primary:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }
.work-link.secondary { background: rgba(59,130,246,0.08); color: var(--primary); }
.work-link.secondary:hover { background: rgba(59,130,246,0.15); transform: translateX(4px); }
.bg-blob { position: fixed; border-radius: 50%; filter: blur(80px); opacity: 0.35; z-index: -1; pointer-events: none; }
.blob-1 { width: 500px; height: 500px; background: #bfdbfe; top: -10%; left: -10%; animation: float 8s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: #a5f3fc; bottom: -10%; right: -10%; animation: float 10s ease-in-out infinite reverse; }
.blob-3 { width: 300px; height: 300px; background: #bbf7d0; top: 40%; right: 20%; animation: float 12s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-30px) scale(1.05); } 66% { transform: translate(-20px,20px) scale(0.95); } }
.footer { text-align: center; padding: 40px 24px; color: #94a3b8; font-size: 14px; }
@media(max-width:768px) { .navbar { padding: 0 20px; height: 64px; } .nav-brand span { font-size: 17px; } .nav-menu a { padding: 8px 16px; font-size: 14px; } .home-hero h1 { font-size: 36px; } .works-header h1 { font-size: 32px; } .works-grid { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
