/* 自动生成：home, veo31 等页面共有的内联样式（从页面 <style> 抽取，勿在各页重复定义） */
#login-modal .modal-close { position: absolute; right: 18px; top: 18px; background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; }
.credits-btn:hover { background-color: rgba(255, 255, 255, 0.2); }
.credits-btn { color: white; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; padding: 6px 12px; border-radius: 20px; background-color: rgba(255, 255, 255, 0.1); transition: background-color 0.2s; }
.custom-footer { background: #111; color: #ccc; padding: 60px 0 30px 0; font-size: 1em; border-top: 1px solid #222; margin-top: 80px; }
.dropdown-arrow { font-size: 0.7em; transition: transform 0.3s ease; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 0 30px; }
.footer-copyright { color: #666; font-size: 0.95em; margin-top: 18px; }
.footer-desc { color: #aaa; margin-bottom: 18px; font-size: 1em; line-height: 1.6; max-width: 350px; }
.footer-link:hover { color: #fff; text-decoration: underline; }
.footer-logo-title { display: flex; align-items: center; margin-bottom: 12px; }
.footer-section.footer-brand { flex: 1 1 320px; min-width: 260px; margin-bottom: 30px; }
.footer-title { font-size: 1.5em; font-weight: bold; color: #fff; }
.header-icon:hover { color: #fff; }
.header-right { display: flex; align-items: center; gap: 20px; }
.language-popup select option { padding: 5px; }
.language-popup select { width: 100%; padding: 8px; border-radius: 4px; border: 1px solid #444; background-color: #333; color: #fff; font-size: 14px; }
.language-popup.show { display: block; }
.language-popup { display: none; position: absolute; top: 100%; right: 0; background-color: #2c2c2c; border: 1px solid #555; border-radius: 5px; padding: 10px; z-index: 1000; min-width: 180px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.login-btn:hover { color: #fff; }
.login-btn { color: #ccc; text-decoration: none; font-size: 0.95em; transition: color 0.3s ease; }
.mobile-menu-overlay.active { display: block; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 1001; }
.mobile-menu.active { transform: translateX(0); visibility: visible; }
.nav-dropdown-menu a .soon-badge, nav a .soon-badge { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; font-size: 10px; font-weight: bold; padding: 2px 6px; margin-left: 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3); line-height: 1; display: inline-block; vertical-align: middle; }
.nav-dropdown-menu a.active { color: #02effe; background: rgba(2, 239, 254, 0.05); }
.nav-dropdown-menu a:hover { background: rgba(2, 239, 254, 0.1); color: #02effe; padding-left: 25px; }
.nav-dropdown-menu a { display: block; padding: 10px 20px; color: #ccc; text-decoration: none; font-size: 0.9em; transition: all 0.2s ease; }
.nav-dropdown-toggle.active { color: #02effe; }
.nav-dropdown-toggle:hover { color: #fff; }
.nav-dropdown-toggle { text-decoration: none; color: #ccc; font-weight: 500; font-size: 0.95em; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color 0.3s ease; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

@media (max-width: 900px){
.footer-container { flex-direction: column; gap: 30px; align-items: flex-start; }
.footer-section.footer-links { flex-direction: column; gap: 30px; width: 100%; }
.mobile-menu-toggle { display: block; }
header nav, header .header-right { display: none; }
}
header .logo img { height: 40px; vertical-align: middle; }
header .logo-nav { display: flex; align-items: center; }
header .logo { font-size: 1.8em; font-weight: bold; color: #fff; text-decoration: none; margin-right: 30px; }
nav a .free-badge { position: absolute; top: -10px; right: -18px; background: linear-gradient(135deg, #4CAF50, #45a049); color: white; font-size: 0.5em; font-weight: bold; padding: 2px 5px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.3px; box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3); line-height: 1; }
nav a.active { color: #02effe; }
nav a:hover { color: #fff; }
nav { display: flex; gap: 25px; align-items: center; }
#login-modal .modal-content { background: #18181b; border-radius: 16px; padding: 40px 32px 32px 32px; min-width: 350px; position: relative; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); text-align: center; }
.mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1001; }
.modal-close:hover { background: rgba(255, 0, 0, 0.8); }
.modal-close { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, 0.6); border: none; color: #fff; font-size: 24px; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2001; transition: background-color 0.2s; }
.modal-content { background-color: var(--primary-bg); padding: 30px; border-radius: 12px; width: 90%; max-width: 600px; position: relative; border: 1px solid var(--border-color); max-height: 90vh; overflow-y: auto; }
/* Modal Styles */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 2000; }
:root { --bg-color: #0d0d0d; --primary-bg: #131313; --secondary-bg: #1a1a1a; --tertiary-bg: #2a2a2a; --text-color: #ffffff; --text-secondary-color: #b0b8c1; --accent-color: #02effe; --accent-hover: #04d0db; --border-color: #333333; --warning-color: #ffa500; }
.form-group { margin-bottom: 20px; }
.image-uploader:hover { border-color: var(--accent-color); }

@media (max-width: 900px){
.content-area { grid-template-columns: 1fr; }
}
header { background-color: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); padding: 0 30px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 70px; }
.action-bar .credits-info { font-size: 0.9em; color: var(--text-secondary-color); }
.action-bar .generate-btn:hover { background: linear-gradient(90deg, #02a4b2 0%, #0057c2 100%); box-shadow: 0 0 6px 2px rgba(2, 239, 254, 0.5), 0 2px 8px rgba(0,0,0,0.15); }
.action-bar .generate-btn { background: linear-gradient(90deg, #02effe 0%, #0072FF 100%); border: none; color: var(--text-color); padding: 10px 25px; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: bold; margin-left: 10px; }
.action-bar .generate-section { text-align: right; }
.action-bar .reset-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-color); padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: 500; }
.action-bar { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; }
.btn-primary:hover { background: linear-gradient(90deg, #02a4b2 0%, #0057c2 100%); box-shadow: 0 0 8px 2px rgba(2,239,254,0.3); }
.character-count.danger { color: #ff4444; }
.character-count.warning { color: var(--warning-color); }
.character-count { font-size: 0.85em; color: var(--text-secondary-color); font-weight: 500; white-space: nowrap; }
.footer-col-title { color: #02effe; font-weight: bold; margin-bottom: 10px; letter-spacing: 1px; font-size: 1em; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-color); }
.hero-section .btn.start-creating-btn:hover { background: linear-gradient(90deg, #02a4b2 0%, #0057c2 100%); box-shadow: 0 0 16px 4px rgba(2, 239, 254, 0.5), 0 2px 8px rgba(0,0,0,0.15); }
.hero-section .btn.start-creating-btn { background: linear-gradient(90deg, #02effe 0%, #0072FF 100%); color: #fff; padding: 15px 35px; font-size: 1.1em; border-radius: 15px; text-decoration: none; font-weight: bold; transition: background 0.3s, box-shadow 0.3s; border: none; box-shadow: none; }
.history-item .delete-btn:hover { background: rgba(255, 0, 0, 0.8); }
.history-item .history-item-content { padding: 15px; }
.history-item:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); }
.history-item { position: relative; background-color: var(--secondary-bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.history-pagination button:disabled { opacity: 0.5; cursor: not-allowed; background-color: var(--secondary-bg); border-color: var(--border-color); }
.history-pagination button:hover { background-color: var(--primary-bg); border-color: var(--primary-bg); }
.history-pagination span.current-page { background-color: var(--primary-bg); color: #fff; border-color: var(--primary-bg); font-weight: bold; }
.history-pagination span.dots { border: none; background: none; }
.language-selector-container { position: relative; }
.loader { border: 5px solid #f3f3f3; border-top: 5px solid var(--accent-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
.mobile-menu { display: flex; position: fixed; top: 70px; right: 0; bottom: 0; width: 90%; max-width: 350px; background: var(--bg-color); z-index: 1002; padding: 30px; overflow-y: auto; flex-direction: column; align-items: center; gap: 30px; transform: translateX(100%); transition: transform 0.3s ease-in-out; visibility: hidden; }
.modal-actions { display: flex; gap: 15px; }
.mode-switcher button.active { background-color: var(--tertiary-bg); color: var(--text-color); }
.preview-panel .placeholder-icon { font-size: 4em; color: var(--tertiary-bg); }
.preview-panel .placeholder-text { color: var(--text-secondary-color); margin-top: 15px; font-size: 1.1em; }
.preview-panel video { width: 100%; height: auto; border-radius: 8px; }
.preview-panel { background-color: var(--primary-bg); border-radius: 12px; border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; min-height: 500px; flex-direction: column; }
.prompt-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.tab-switcher button.active { background-color: var(--tertiary-bg); color: var(--text-color); }
.tab-switcher button { flex: 1; background: transparent; border: none; color: var(--text-secondary-color); padding: 12px; border-radius: 6px; cursor: pointer; font-size: 1em; font-weight: 500; }
.tab-switcher { display: flex; background-color: var(--secondary-bg); border-radius: 8px; padding: 5px; margin-bottom: 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 900px){
.main-container { padding: 40px 20px; }
header { padding: 0 20px; height: 56px; }
}
