:root {
    --ios-blue: #46C0FF;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --reflect: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    --btn-main-gradient: linear-gradient(145deg, #46C0FF, #007AFF);
    --btn-main-shadow: 0 8px 20px rgba(0, 122, 255, 0.3), inset 0 -4px 0 rgba(0,0,0,0.1);
    --spring-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif; background: linear-gradient(160deg, #f0f9ff 0%, #cbebff 50%, #a1dbff 100%); background-attachment: fixed; overflow-x: hidden; padding: 20px 15px; display: flex; flex-direction: column; align-items: center; min-height: 100vh; color: #1d1d1f; }
.glass-card { position: relative; background: var(--glass-bg); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%); border: 1px solid var(--glass-border); border-radius: 35px; box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 20px 40px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(255,255,255,0.4); overflow: hidden; will-change: transform; }
.glass-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--reflect); pointer-events: none; }
.header { width: 100%; max-width: 420px; padding: 30px 25px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 20px; z-index: 1; }
.header-top { display: flex; align-items: flex-start; gap: 18px; }
.icon { width: 80px; height: 80px; border-radius: 26px; flex-shrink: 0; background: var(--btn-main-gradient); box-shadow: 0 15px 35px rgba(70, 192, 255, 0.4); border: 4px solid #fff; background-size: cover; background-position: center; }
.header-text-wrap { display: flex; flex-direction: column; justify-content: space-between; height: 80px; min-width: 0; }
.header h1 { font-size: 26px; font-weight: 700; letter-spacing: -1px; line-height: 1; overflow-wrap: anywhere; }
.system-tip { font-size: 14px; color: #007AFF; }
.warn-text { font-size: 14px; line-height: 1.6; color: #dd3333; z-index: 1; }
.btn { width: 100%; max-width: 420px; padding: 16px 10px; margin-bottom: 12px; border-radius: 18px; font-size: 17px; font-weight: 600; text-align: center; cursor: pointer; border: none; z-index: 1; background: var(--btn-main-gradient); color: #fff; box-shadow: var(--btn-main-shadow); transition: transform 0.2s var(--spring-ease), box-shadow 0.2s ease, opacity 0.2s; text-decoration: none; display: block; }
.btn-more-gap { margin-top: 15px; }
.btn:active { transform: scale(0.94); opacity: 0.9; }
.btn-group { display: flex; gap: 12px; margin-top: 20px; }
.btn-group .btn { flex: 1; margin-bottom: 0; }
@keyframes shake { 0%,100%{transform: translateX(0);} 20%{transform: translateX(-6px);} 40%{transform: translateX(6px);} 60%{transform: translateX(-6px);} 80%{transform: translateX(6px);} }
.shake-anim { animation: shake 0.4s ease-in-out 3; box-shadow: 0 0 15px #ff3b30 !important; }
.grid { width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 10px 0 30px; }
.item { padding: 22px 10px; border-radius: 28px; text-align: center; cursor: pointer; font-size: 16px; font-weight: 500; z-index: 1; transition: transform 0.2s var(--spring-ease), box-shadow 0.2s ease; position: relative; overflow-wrap: anywhere; }
.item.disabled { opacity: 0.45; pointer-events: none; }
.item:active { transform: scale(0.94); }
.new-cert-wrapper { width: 100%; max-width: 420px; display: flex; justify-content: center; margin: 5px 0 15px 0; z-index: 1; }
.new-cert-btn { width: 100%; padding: 22px 10px; border-radius: 28px; text-align: center; cursor: pointer; font-size: 17px; font-weight: 600; color: #007AFF; background: var(--glass-bg); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%); border: 1px solid var(--glass-border); box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 20px rgba(0,0,0,0.05), inset 0 0 0 1px rgba(255,255,255,0.4); transition: transform 0.2s var(--spring-ease), box-shadow 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.new-cert-btn:active { transform: scale(0.94); }
.new-tag { background: #ff3b30; color: white; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; line-height: 1.2; box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4); }
.mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 99; }
.sheet { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.85); opacity: 0; width: calc(100% - 40px); max-width: 400px; background: var(--glass-bg); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%); border-radius: 35px; padding: 25px 20px; transition: all 0.35s var(--sheet-ease); box-shadow: 0 20px 60px rgba(0,0,0,0.2); border: 1px solid var(--glass-border); z-index: 100; pointer-events: none; }
.sheet.active { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.mask.active { opacity: 1; pointer-events: auto; }
.sheet-title { font-size: 20px; font-weight: 600; margin-bottom: 10px; z-index: 1; text-align: left; }
.sheet-tip-text { font-size: 16px; color: #3c3c43; line-height: 1.6; text-align: left; }
.text-red { color: #dd3333; font-weight: 600; }
.handle { width: 40px; height: 5px; background: #d0d7e2; border-radius: 999px; margin: 0 auto 18px; }
.install-desc { width: 100%; max-width: 420px; padding: 24px 20px; margin-top: 20px; margin-bottom: 30px; font-size: 14px; line-height: 1.8; }
.install-desc h3 { font-size: 18px; margin-bottom: 12px; color: #1d1d1f; }
.install-desc ol { padding-left: 20px; color: #333; }
.install-desc li { margin-bottom: 8px; }
.video-sheet { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.85); opacity: 0; width: calc(100% - 30px); max-width: 420px; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%); border-radius: 25px; padding: 15px; transition: all 0.35s var(--sheet-ease); box-shadow: 0 20px 60px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); z-index: 101; pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.video-sheet.active { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.video-container { width: 100%; border-radius: 15px; overflow: hidden; background: #000; margin-bottom: 15px; }
.video-container video { width: 100%; display: block; outline: none; }
.close-video-btn { width: 100%; padding: 12px; border-radius: 15px; font-size: 16px; font-weight: 600; text-align: center; cursor: pointer; border: none; color: #fff; background: rgba(255,255,255,0.2); transition: background 0.2s; }
.close-video-btn:active { background: rgba(255,255,255,0.3); }
.free-notice-link { display: block; width: 100%; max-width: 420px; text-align: center; color: #007AFF; font-size: 15px; font-weight: 600; cursor: pointer; padding: 6px 0 12px 0; text-decoration: underline; text-underline-offset: 4px; transition: opacity 0.2s ease; z-index: 1; }
.free-notice-link:active { opacity: 0.6; }
.notice-body { font-size: 15px; color: #3c3c43; line-height: 1.7; text-align: left; max-height: 60vh; overflow-y: auto; }
.notice-body p { margin-bottom: 6px; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-stable { color: #34c759; font-weight: 700; margin-top: 10px !important; }
.cert-notice-body { font-size: 15px; color: #3c3c43; line-height: 1.6; text-align: left; max-height: 60vh; overflow-y: auto; }
.cert-notice-body p { margin-bottom: 8px; }
.cert-highlight { color: #007AFF; font-weight: 600; }
.cert-warn { color: #dd3333; font-size: 13px; margin-top: 12px; line-height: 1.5; }
