/* ==================== 全局重置 ==================== */
*{box-sizing:border-box;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica Neue,Arial,sans-serif}
body{background:#f8f9fa;color:#1f2937;line-height:1.6}
.container{max-width:920px;margin:0 auto;padding:0 16px;width:100%}

/* ==================== 导航栏 ==================== */
.nav {
  background: #fff;
  padding: 3px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
  min-width: 100%;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.nav-tooltip {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10000;
}
.logo{display:flex;align-items:center;flex-shrink:0;margin-right:auto;cursor:pointer}

.nav-icons{display:flex;align-items:center;gap:12px;flex-shrink:0}
.nav-icon-link{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;cursor:pointer;transition:background 0.2s ease}
.nav-icon-link:hover{background:#f3f4f6}
.nav-icon-link svg{width:24px;height:24px}

/* 原生 select 模拟为导航图标 */
.lang-selector,.more-selector{position:relative}
.nav-select{width:36px;height:36px;border:none;border-radius:8px;background:transparent;font-size:0;cursor:pointer;appearance:none;-webkit-appearance:none;text-indent:-9999px}
.nav-select:focus{outline:none}
.nav-select:hover{outline: 1px solid rgba(100, 181, 246, 0.35);outline-offset: -2px}
.nav-select option{font-size:14px;text-indent:0;padding:8px 12px;color:#1f2937;background:#fff}

/* 语言 select 用地球图标作为背景提示 */
.lang-selector::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat}

/* 更多选项 select 用三点图标作为背景提示 */
.more-selector::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='1.4' fill='%236b7280'/%3E%3Ccircle cx='12' cy='12' r='1.4' fill='%236b7280'/%3E%3Ccircle cx='12' cy='18' r='1.4' fill='%236b7280'/%3E%3C/svg%3E") center/contain no-repeat}

.page{display:none;position:relative;z-index:1}
.page.active{display:block}

@media (max-width:767px){
  .nav-inner{padding:0 12px}
  .nav-icons{gap:8px}
  .nav-icon-link{width:32px;height:32px}
  .nav-icon-link svg{width:20px;height:20px}
  .nav-select{width:32px;height:32px}
  .lang-selector::before,.more-selector::before{width:20px;height:20px}
}

.nav-right{display:none!important}

/* ==================== 营销首页 ==================== */
.home-wrap{max-width:900px;margin:0 auto;padding:28px}
.hero{background:linear-gradient(135deg,#ffffff 0%,#e3f2fd 100%);border-radius:24px;padding:60px 32px;text-align:center;margin-bottom:32px;box-shadow:0 2px 12px rgba(0,0,0,0.04)}
.hero h1{font-size:34px;font-weight:700;margin-bottom:14px}
.hero p{font-size:17px;color:#6b7280;max-width:600px;margin:0 auto 28px}
.cta{display:inline-block;padding:14px 36px;background:#4a90e2;color:#fff;border-radius:12px;font-weight:600;text-decoration:none;box-shadow:0 8px 20px rgba(74,144,226,0.18);transition:.2s;cursor:pointer}
.cta:hover{transform:translateY(-3px)}
.features{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.item{background:#fff;padding:24px;border-radius:18px;box-shadow:0 2px 8px rgba(0,0,0,0.03);transition:box-shadow .2s}
.item:hover{box-shadow:0 0 0 1px rgba(100,181,246,0.35),0 2px 12px rgba(0,0,0,0.06)}
.item h3{font-size:16px;font-weight:600;color:#4a90e2;margin-bottom:12px}
.item p{font-size:14px;color:#6b7280;line-height:1.5}
.bottom{background:#fff;padding:32px;border-radius:20px;text-align:center;margin-top:24px;transition:box-shadow .2s}
.bottom:hover{box-shadow:0 0 0 1px rgba(100,181,246,0.35)}
.bottom h3{font-size:20px;margin-bottom:10px}
.bottom p{font-size:15px;color:#6b7280}
.sub-link{margin-top:12px;font-size:14px;color:#6b7280}
.sub-link a{color:#4a90e2;text-decoration:none;cursor:pointer}
.footer-links{text-align:center;margin:24px 0;color:#6b7280;font-size:14px}
.footer-links a{color:#6b7280;text-decoration:none;margin:0 6px;cursor:pointer}

/* ==================== 使用说明弹窗 ==================== */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.4);z-index:1000;display:none;align-items:center;justify-content:center;padding:16px}
.modal-overlay.show{display:flex}
.modal{background:#fff;border-radius:16px;width:100%;max-width:480px;max-height:75vh;overflow-y:auto;padding:20px}
.modal h4{font-size:16px;margin-bottom:12px;color:#1f2937;font-weight:700}
.modal ul{list-style:none;display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.modal li{font-size:13px;color:#374151;line-height:1.4;padding-left:14px;position:relative}
.modal li::before{content:"•";position:absolute;left:2px;color:#4a90e2}
.modal-highlight-text{font-size:13px;color:#4a90e2;font-weight:500}
.close-btn{margin-top:16px;width:100%;height:44px;border-radius:12px;border:none;background:#4a90e2;color:#fff;font-size:15px;cursor:pointer}

/* ==================== 登录/注册页 ==================== */
.auth-container { max-width: 380px; width: 100%; margin: 40px auto; padding: 0 16px; }
.auth-card-new { background: #fff; border-radius: 22px; box-shadow: 0 8px 28px rgba(0,0,0,0.04); padding: 38px 30px; border: 1px solid rgba(0,0,0,0.03); animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.auth-tabs { display: flex; border-bottom: 1px solid #f1f1f1; margin-bottom: 26px; }
.auth-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; font-weight: 600; color: #9ca3af; cursor: pointer; border-bottom: 1px solid transparent; transition: all 0.25s ease; }
.auth-tab.active { color: #111; border-color: #4a90e2; }
.auth-panel { display: none; animation: panelFade 0.28s ease; }
.auth-panel.active { display: block; }
@keyframes panelFade { from { opacity: 0; } to { opacity: 1; } }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 26px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; font-weight: 500; cursor: pointer; transition: background 0.2s ease; white-space: nowrap; color: #1f2937; }
.social-btn:hover { background: #f3f4f6; }
.google-color { color: #4285F4; }
.fb-color { color: #1877F2; }
.wx-color { color: #07C160; }
.qq-color { color: #12B7F5; }
.device-color { color: #4a90e2; }
.divider { text-align: center; font-size: 12px; color: #9ca3af; position: relative; margin: 26px 0; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: #e5e7eb; }
.divider::before { left: 0; }
.divider::after { right: 0; }
.auth-input-wrapper { margin-bottom: 16px; }
.auth-input-new { width: 100%; height: 46px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fafbfc; padding: 0 14px; font-size: 14px; outline: none; transition: border-color 0.2s ease; display: block; box-sizing: border-box; line-height: 46px; }
.auth-input-new:focus { border-color: #93c5fd; }
.pwd-wrapper { position: relative; }
.pwd-wrapper .auth-input-new { padding-right: 44px; }
.pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.pwd-icon { display: inline-block; width: 20px; height: 20px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.pwd-icon-eye { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E"); }
.pwd-icon-eye-slash { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E"); }
.auth-link-row { text-align: right; margin-bottom: 20px; }
.auth-link-text { font-size: 12px; color: #4a90e2; cursor: pointer; }
.auth-link-text:hover { color: #2563eb; }
.auth-btn-primary { width: 100%; height: 46px; border-radius: 10px; background: #4a90e2; color: #fff; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: transform 0.15s ease, background 0.2s; }
.auth-btn-primary:active { transform: scale(0.97); }
.auth-btn-primary:hover { background: #3a7bc8; }
.auth-btn-secondary { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.auth-btn-secondary:hover { background: #e5e7eb; color: #4a90e2; }
.auth-swap { text-align: center; margin-top: 18px; font-size: 14px; color: #6b7280; }
.auth-swap-link { color: #4a90e2; cursor: pointer; margin-left: 4px; font-weight: 500; }
.modal-overlay-new { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 300; visibility: hidden; opacity: 0; transition: .2s; }
.modal-overlay-new.show { visibility: visible; opacity: 1; }
.modal-card-new { background: #fff; border-radius: 16px; padding: 30px; width: 90%; max-width: 360px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); animation: modalPop 0.3s ease; }
@keyframes modalPop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.modal-title-new { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: #1f2937; text-align: center; }
.modal-actions-new { display: flex; gap: 12px; margin-top: 8px; }
.modal-actions-new .auth-btn-secondary, .modal-actions-new .auth-btn-primary { flex: 1; }

/* ==================== 个人信息页 ==================== */
.profile-container{max-width:580px;width:100%;margin:20px auto;padding:0 20px;display:flex;flex-direction:column;gap:16px}
.profile-card-new{background:#fff;border-radius:16px;padding:28px;box-shadow:0 2px 12px rgba(0,0,0,0.04)}
.avatar-area{text-align:center;margin-bottom:28px}
.avatar-box{position:relative;width:88px;height:88px;margin:0 auto 10px;border-radius:50%;overflow:hidden;border:1px solid #e5e7eb}
.avatar{width:100%;height:100%;object-fit:cover;display:block}
.camera{position:absolute;right:2px;bottom:2px;width:24px;height:24px;background:#4a90e2;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;cursor:pointer}
.camera input{display:none}
.info-item{padding:14px 0;border-bottom:1px solid #f3f4f6;display:flex;justify-content:space-between;align-items:center}
.label{font-size:14px;color:#6b7280}
.value{font-size:15px;color:#1f2937;font-weight:500}
.edit{font-size:14px;color:#4a90e2;cursor:pointer}
.plan-status{margin-top:22px;padding:16px;border-radius:14px;background:#f9fafb;border:1px solid #e5e7eb}
.plan-row{display:flex;justify-content:space-between;align-items:center}
.plan-title{font-size:15px;font-weight:600;color:#1f2937}
.plan-tag{padding:4px 10px;border-radius:999px;font-size:12px;background:#f3f4f6;color:#374151}
.plan-desc{margin-top:6px;font-size:13px;color:#6b7280}
.invite-box-new{padding:12px;background:#f0f9ff;border-radius:8px;font-size:14px}
.logout{margin-top:22px;padding:12px;border-radius:10px;background:#f3f4f6;color:#6b7280;text-align:center;font-size:14px;cursor:pointer}
.promo-card{background:#fff;border-radius:16px;padding:22px;box-shadow:0 2px 12px rgba(0,0,0,0.04);border:1px solid #dbeafe}
.promo-title{font-size:18px;font-weight:600;color:#1f2937;margin-bottom:8px}
.promo-sub{font-size:13px;color:#6b7280;margin-bottom:16px}
.promo-list{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}
.promo-item{display:flex;align-items:center;gap:10px}
.check{width:18px;height:18px;border-radius:50%;background:#dbeafe;display:flex;align-items:center;justify-content:center;color:#4a90e2;font-size:12px}
.promo-text{font-size:14px;color:#1f2937}
.subscribe-btn{width:100%;padding:14px;border-radius:10px;background:#4a90e2;color:#fff;font-weight:600;text-align:center;cursor:pointer}
.crop-modal{position:fixed;inset:0;background:rgba(0,0,0,0.85);display:none;align-items:center;justify-content:center;z-index:310}
.crop-modal.show{display:flex}
.crop-box{background:#fff;border-radius:14px;padding:24px;width:90%;max-width:330px}
.crop-wrap{width:240px;height:240px;border-radius:50%;overflow:hidden;margin:0 auto;position:relative;touch-action:none;background:#f3f4f6;border:2px solid #fff;box-shadow:0 0 0 1px #e5e7eb}
.crop-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;transform-origin:center center;display:block}
.crop-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.crop-btn{height:42px;padding:0 22px;border-radius:8px;font-size:16px;cursor:pointer;border:none}
.crop-cancel{background:#e5e7eb;color:#1f2937}
.crop-confirm{background:#4a90e2;color:#fff}
.error{color:#ef4444;font-size:14px;margin-bottom:16px;display:none}
.modal-row{display:flex;gap:8px;align-items:stretch;margin-bottom:20px}
#newEmailInput{margin-bottom:16px!important}
#newNicknameInput{margin-bottom:20px}

/* ==================== 订阅支付页 ==================== */
.pricing-header{text-align:center;margin-bottom:30px;padding-top:20px}
.pricing-subtitle{font-size:14px;color:#6b7280;margin-bottom:6px}
.pricing-title{font-size:24px;font-weight:700;color:#1f2937}
.plans-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:1200px;margin:20px 0 30px}
.plan-card{background:#fff;border-radius:16px;padding:28px 24px;box-shadow:0 2px 12px rgba(0,0,0,0.06);display:flex;flex-direction:column;height:100%;border:1px solid #e5e7eb}
.plan-name{font-size:20px;font-weight:700;margin-bottom:6px;color:#1f2937}
.plan-desc{font-size:14px;color:#6b7280;margin-bottom:14px}
.plan-price{font-size:28px;font-weight:700;color:#1f2937}
.plan-price span{font-size:14px;color:#6b7280;font-weight:400}
.paypal-button-container{margin:12px 0 6px 0;min-height:46px}
.paypal-security{font-size:10px;color:#6b7280;display:flex;justify-content:center;align-items:center;gap:4px;padding-bottom:12px}
.features-list{list-style:none;margin-top:4px;padding:0}
.features-list li{font-size:14px;margin-bottom:8px;display:flex;align-items:center;gap:8px;color:#1f2937}
.features-list li::before{content:"✓";width:18px;height:18px;background:#e5e7eb;color:#1f2937;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:bold;margin-right:8px}
.fine-print{text-align:center;margin:24px 0;font-size:13px;color:#94a3b8}
.fine-print a{color:#4a90e2;text-decoration:none;cursor:pointer}

/* ==================== 法律页 ==================== */
.legal-card{display:flex;flex-direction:row;padding:20px;background:#fff;border-radius:16px;box-shadow:0 2px 12px rgba(0,0,0,0.06);margin-top:20px}
.legal-content{flex:1;padding-right:20px}
.legal-tabs{width:48px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;border-left:1px solid #e5e7eb;padding-left:8px;gap:20px}
.legal-tab{writing-mode:vertical-rl;text-orientation:mixed;cursor:pointer;padding:12px 2px;color:#6b7280;font-size:14px;font-weight:500;border-right:2px solid transparent}
.legal-tab.active{color:#4a90e2;border-right:none}
.legal-section h1{font-size:20px;margin-bottom:10px;color:#1f2937}
.legal-section h2{font-size:16px;margin:15px 0 5px;color:#374151}
.legal-section p{font-size:13px;line-height:1.5;margin-bottom:8px;color:#4b5563;white-space: pre-line;}
.cta{width:100%;max-width:240px;margin:0 auto;text-align:center;box-sizing:border-box}
.logo{margin-left:16px}

/* ==================== 语音输入与发送图标（旧版兼容） ==================== */
.input-with-icon{position:relative;display:flex;align-items:center;width:100%}
.input-with-icon input{flex:1;padding-right:40px}
.mic-btn,.send-btn{position:static;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;cursor:pointer;border-radius:50%;transition:background 0.15s ease;color:#9ca3af}
.mic-btn:hover,.send-btn:hover{background:#f3f4f6;color:#6b7280}
.mic-btn:active,.send-btn:active{transform:scale(0.95)}
.mic-btn.recording{color:#ef4444;animation:pulse 1.5s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}
#dishMicBtn{right:8px}
.ai-input-wrapper .mic-btn{left:8px}
.ai-input-wrapper .send-btn{right:8px}
.ai-input-wrapper input{padding-left:40px;padding-right:40px}
.btn-video{position:absolute;right:16px;bottom:0;width:auto;min-width:140px;height:40px;padding:0 20px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px 8px 0 0;color:#4a90e2;font-size:13px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;box-shadow:0 -2px 8px rgba(0,0,0,0.04);z-index:10;transition:all 0.2s ease}
#qaLimitNote{text-align:left!important;padding-left:16px!important;line-height:1.2;z-index:10}
.btn-video::after{content:'';position:absolute;right:0;bottom:-6px;width:100%;height:12px;background:linear-gradient(to bottom,rgba(0,0,0,0.03),transparent);border-radius:0 0 4px 4px;transform:perspective(20px) rotateX(5deg);transform-origin:top}
.btn-video::before{content:"▶";font-size:10px}
.btn-video:hover{background:#f0f4ff;border-color:#4a90e2;color:#2563eb;bottom:-4px}
.mic-btn.unsupported{display:none!important}
/* ==================== 生成器页（新版设计） ==================== */
.generator-wrap-new{width:100%;min-height:100vh;display:flex;flex-direction:column}
.main-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding-bottom:140px;gap:38px;transition:all 0.3s ease}
.main-wrap.top-fixed{justify-content:flex-start;padding-top:30px;padding-bottom:120px;gap:24px}
.top-inner{width:100%;display:flex;flex-direction:column;align-items:center}
.gen-title-new{font-size:18px;font-weight:600;color:#1f2937;text-align:center;width:100%;line-height:1.3;margin-bottom:24px;white-space:nowrap}
.mode-group{position:relative;display:flex;border:1px solid #e5e7eb;border-radius:999px;width:100%;max-width:280px;height:44px;overflow:hidden;background:radial-gradient(ellipse at center,#ffffff 65%,rgba(255,255,255,0.15) 100%)}
.mode-slider{position:absolute;top:0;left:0;width:50%;height:100%;background:#4a90e2;border-radius:999px;transition:left 0.3s cubic-bezier(0.34,1.56,0.64,1);z-index:1}
.mode-slider.right{left:50%}
.mode-btn{flex:1;height:100%;border:none;background:transparent;font-size:15px;cursor:pointer;position:relative;z-index:2;color:#111827;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mode-btn.active{color:#ffffff}
.mode-btn:focus { outline: none; }
.mode-btn:active { background-color: rgba(0,0,0,0.05); }
.mode-desc{font-size:12px;color:#9ca3af;margin:4px 0 0;width:280px;line-height:1.1;transition:all 0.3s ease}
.mode-desc.left-indent{padding-left:16px;text-align:left}
.mode-desc.right-normal{padding-left:0;text-align:right}
.content-block{width:100%;max-width:700px;margin:0 auto;display:none;flex:1;padding:20px 0 160px;overflow-y:auto;overflow-x:hidden}
.content-block.show{display:flex;flex-direction:column}
.recipe-content{width:100%;display:none;padding:0 20px}
.recipe-content.show{display:block}
.qa-content{display: flex;flex-direction: column;flex: 1;overflow: hidden;}
.qa-content.show{display:block}
.recipe-list{display:flex;flex-direction:column;gap:0}
.recipe-card{background:none;border-radius:0;padding:20px 0;box-shadow:none;border:none;border-bottom:1px dashed #e5e7eb;margin:0}
.recipe-card:last-child{border-bottom:none}
.recipe-card-name{font-size:20px;font-weight:400;color:#6b7280;text-align:center;margin-bottom:20px}
.recipe-card-body{background: #f9fafb;border-radius: 12px;padding: 20px;min-height: 300px;height: auto;max-height: none;overflow-y: visible;color: #1f2937;line-height: 1.6;font-size: 15px;}
.recipe-card-body h4 {font-weight: 700 !important;font-size: 18px;margin: 24px 0 8px 0;padding-left: 0;}
.recipe-card-body h4:first-of-type { margin-top: 0; }
.recipe-card-body ul { list-style: none; padding: 0; margin: 0; }
.recipe-card-body li { line-height: 1.5; margin-bottom: 2px; }
.qa-list-new {display: flex;flex-direction: column;gap: 8px;padding: 12px;background-color: #f9fafb;border-radius: 12px;flex: 1;overflow-y: auto;scroll-behavior: smooth;min-height: 200px;}
.qa-bubble{padding:12px 16px;border-radius:16px;max-width:85%;line-height:1.5;font-size:14px;word-wrap:break-word}
.user-bubble{align-self:flex-end;background:#cce5ff;color:#1f2937;border-radius:16px 16px 4px 16px}
.ai-bubble{align-self:flex-start;background:#f3f4f6;color:#1f2937;border-radius:16px 16px 16px 4px}
.input-container{
  border:1px solid #e5e7eb;border-radius:24px;padding:12px 18px;background:#ffffff;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);display:flex;flex-direction:column;
  gap:12px;z-index:99;position:relative;width:100%
}
.generating-tip{
  position:absolute;
  top:-28px;
  right:10px;
  background:rgba(255,255,255,0.95);
  padding:4px 12px;
  border-radius:12px;
  color:#4a90e2;
  font-size:12px;
  box-shadow:0 1px 6px rgba(0,0,0,0.08);
  white-space:nowrap;
  z-index:102;
  display:none;
}
.generating-tip.show{display:block}
.generating-tip::after{content:'...';animation:dotPulse 1.5s steps(4,end) infinite}
@keyframes dotPulse{0%{content:'.'}33%{content:'..'}66%{content:'...'}100%{content:''}}
@media (max-width:767px){
  .input-container{width:calc(100% - 40px);position:fixed;bottom:20px;left:20px;right:20px}
}
@media (min-width:768px){
  .input-container{max-width:700px;position:static;margin:0 auto}
  .top-fixed .input-container{position:fixed;bottom:20px;left:50%;transform:translateX(-50%)}
}
@media (min-width:1025px){
  .voice-btn{display:none!important;}
}
.input-area{
  width:100%;border:none;outline:none;font-size:14px;padding:6px 0 0 0;resize:none;
  min-height:36px;max-height:44px;color:#1f2937;background:transparent;line-height:1.4
}
.input-area::placeholder{font-size:12px;color:#cbd5e1}
.func-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;width:100%}
.select-group{display:flex;gap:10px;flex-shrink:0}
.action-group{display:flex;gap:8px;align-items:center;flex-shrink:0}
.icon-btn{
  width:36px;height:36px;border:none;border-radius:50%;background:transparent;
  display:flex;align-items:center;justify-content:center;cursor:pointer;color:#6b7280;
  transition:all 0.2s ease;flex-shrink:0
}
.icon-btn:active{background:#eeeef0;transform:scale(0.96)}
.icon-btn svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.select-btn{padding:6px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;font-size:14px;color:#6b7280;cursor:pointer}
.tip-modal-new{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#ffffff;padding:16px 24px;border-radius:16px;box-shadow:0 4px 30px rgba(0,0,0,0.15);z-index:999;display:none;font-size:14px;color:#1f2937;text-align:center}
.tip-modal-new.show{display:block}
.hidden-select{display:none!important;}
.select-wrapper { position: relative; display: inline-block; }
.transparent-select { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 14px; }
.qa-content:not(.show) {display: none !important;}
.recipe-content:not(.show) {display: none !important;}
@media (max-width: 767px) {
  .select-wrapper {
    min-width: 90px;
    max-width: 90px;
    overflow: hidden;
  }
  .select-group .select-btn {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
  .transparent-select {
    width: 100%;
  }
}

/* ==================== AI 独立页面样式 ==================== */
.ai-standalone-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.func-row.ai-mode {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 4px;
}

/* AI 页面输入卡片定位（与生成器页面保持一致） */
#aiInputContainer {
  position: relative;
}

@media (max-width: 767px) {
  #aiInputContainer {
    width: calc(100% - 40px);
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
  #aiSelectGroup .select-btn {
    min-width: 90px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  #aiInputContainer {
    max-width: 700px;
    position: static;
    margin: 0 auto;
  }
  .top-fixed #aiInputContainer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  #aiSelectGroup .select-btn {
    min-width: auto;
    max-width: none;
    width: auto;
  }
}

@media (min-width: 1025px) {
  #aiInputContainer .voice-btn {
    display: none !important;
  }
}

/* ==================== 视频页面 ==================== */
.video-page-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px;
}

.video-player-section {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: visible;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

#mainVideoPlayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  background: #000;
}

/* 轮播线：居中显示在视频内部下方，不遮挡功能键 */
.video-timeline {
  position: absolute;
  bottom: 70px;                 /* 您测试的合适位置 */
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 20;
  background: transparent;
  white-space: nowrap;          /* 防止内容换行 */
}

.video-timeline-track {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 4px;
  position: relative;
  overflow: visible;            /* 允许点突出显示 */
}

.video-timeline-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;             /* 默认白色点 */
  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* 激活状态：高亮蓝色，加粗为短线，提高优先级 */
.video-timeline-dot.active {
  background: #4a90e2 !important;  /* 确保覆盖任何行内样式 */
  width: 20px;
  border-radius: 2px;
}

.video-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
}

.video-title {
  font-weight: 600;
  color: #1f2937;
  flex: 1;
  margin-right: 25px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.video-source {
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
  background: #e3f2fd;
  padding: 2px 10px;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* 分类标签 */
.video-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.video-categories::-webkit-scrollbar {
  display: none;
}

.video-cat-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.video-cat-btn:hover {
  background: #f9fafb;
}

.video-cat-btn.active {
  background: #4a90e2;
  color: #fff;
  border-color: #4a90e2;
}

/* 视频网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  min-height: 200px;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 桌面端卡片：悬停仅上浮+阴影，无边框 */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  /* 无任何蓝色边框 */
}

.video-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e5e7eb;
  display: block;
}

.video-card-info {
  padding: 10px 12px;
}

.video-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  font-size: 12px;
  color: #9ca3af;
}

/* 移动端：单列、无图、极细蓝色边框悬停 */
@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    box-shadow: none;
    border: 1px solid transparent;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
  }

  .video-card:active,
  .video-card:hover {
    box-shadow: 0 0 0 1px rgba(100,181,246,0.35); /* 极细蓝框 */
    transform: none;
  }

  .video-card-img {
    display: none;
  }

  .video-card-info {
    padding: 0;
  }

  .video-card-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .video-card-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* 弹窗播放器：底部半屏卡片，无全屏遮罩 */
.video-player-overlay {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 55vh;
  background: rgba(0,0,0,0.9);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding: 10px 0 20px;
  z-index: 10000;
  box-sizing: border-box;
}

.video-player-overlay.active {
  display: block;
}

/* 移动端横屏自动全屏 */
@media (orientation: landscape) {
  .video-player-overlay {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    padding: 0 !important;
  }
  .overlay-close {
    top: 10px;
    left: 10px;
  }
}

.overlay-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.overlay-video {
  width: 100%;
  height: 100%;
  display: block;
}

/* 关闭按钮，避免与原生音量按钮重叠 */
.overlay-close {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* 电脑/平板端：居中缩放弹窗，半透明遮罩，点击遮罩空白处不关闭 */
@media (min-width: 768px) {
  .video-player-overlay {
    display: none;
    background: transparent;
    pointer-events: none;
  }

  .video-player-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    pointer-events: auto;
  }

  .video-player-overlay .overlay-container {
    width: 80vw;
    max-width: 1200px;
    height: auto;
    max-height: 80vh;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    pointer-events: auto;
  }
}
 
.video-footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 32px;
  padding: 0 16px;
}

/* ==================== 响应式 ==================== */
@media (max-width:1000px){.plans-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.features{grid-template-columns:1fr}.hero{padding:40px 20px}}
@media (max-width:640px){.plans-grid{grid-template-columns:1fr}.video-grid{grid-template-columns:1fr}}
