* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: #f5f5f5;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

/* 语言导航样式 */
.language-nav {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.language-nav select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.language-nav select:focus {
    outline: none;
    border-color: #007bff;
}

/* 控制面板样式 */
.control-panel {
    width: 300px;
    background: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.control-panel h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 20px;
}

.input-section, .style-section {
    margin-bottom: 25px;
}

.input-section label, .style-section label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

#welcomeText {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
}

#subtitleText {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

/* 帮助链接样式 */
.help-link {
    font-size: 11px;
    color: #007bff;
    text-decoration: none;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s;
}

.help-link:hover {
    background: rgba(0,123,255,0.1);
    color: #0056b3;
}

.help-link::before {
    content: "?";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    font-size: 10px;
    font-weight: bold;
}

.help-link:hover::before {
    background: #0056b3;
}

/* 帮助弹窗样式 */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.help-modal.show {
    display: flex;
}

.help-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.help-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.help-close:hover {
    color: #000;
}

.help-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.help-content h4 {
    color: #555;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.help-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.help-content li {
    margin: 5px 0;
    line-height: 1.5;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.style-btn {
    padding: 10px 15px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.style-btn:hover {
    background: #f0f0f0;
}

.style-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.actions button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

#generateBtn {
    background: #28a745;
    color: white;
    display: none;
}

#generateBtn:hover {
    background: #218838;
}

#fullscreenBtn {
    background: #007bff;
    color: white;
}

#fullscreenBtn:hover {
    background: #0056b3;
}

/* 欢迎屏幕样式 */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    text-align: center;
    padding: 60px;
    border-radius: 20px;
    min-width: 70%;
    min-height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.welcome-content::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 18px;
    background: inherit;
    z-index: -1;
}

.welcome-text {
    position: relative;
    z-index: 2;
}

.welcome-content h2 {
    font-size: 4em;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 300;
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: currentColor;
    margin: 20px auto;
    border-radius: 2px;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.decorative-line::before {
    left: -15px;
}

.decorative-line::after {
    right: -15px;
}

/* 商务风格 */
.business-style {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
    color: white;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.business-style::before {
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

/* 优雅风格 */
.elegant-style {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #333;
    box-shadow: 
        0 20px 40px rgba(255,154,158,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.elegant-style::before {
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

/* 现代风格 */
.modern-style {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    box-shadow: 
        0 20px 40px rgba(102,126,234,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.modern-style::before {
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%),
                linear-gradient(-120deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
}

/* 传统风格 */
.traditional-style {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff8a80 100%);
    color: #5d4e75;
    box-shadow: 
        0 20px 40px rgba(255,138,128,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.traditional-style::before {
    background: radial-gradient(ellipse at 25% 25%, rgba(255,255,255,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 75% 75%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

/* 动画效果 */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.welcome-content h2 {
    animation: gentleFloat 4s ease-in-out infinite;
}

/* 简约背景效果 */
.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.02) 50%, transparent 70%);
    background-size: 100px 100px, 100px 100px;
    background-position: 0 0, 50px 50px;
    pointer-events: none;
}

/* 全屏模式 */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    background-size: 150px 150px, 150px 150px;
    background-position: 0 0, 75px 75px;
    pointer-events: none;
}

.fullscreen-mode .welcome-content {
    width: 90vw;
    height: 90vh;
    min-width: unset;
    min-height: unset;
    padding: 80px;
    max-width: none;
    max-height: none;
}

.fullscreen-mode .welcome-content h2 {
    font-size: 6em;
}

.fullscreen-mode .subtitle {
    font-size: 1.8em;
}

.fullscreen-mode .decorative-line {
    width: 200px;
    height: 4px;
}

/* 全屏背景样式 */
.fullscreen-mode.business-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%);
}

.fullscreen-mode.elegant-bg {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.fullscreen-mode.modern-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.fullscreen-mode.traditional-bg {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff8a80 100%);
}

/* 全屏控制按钮 */
.fullscreen-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
}

.fullscreen-controls.show {
    display: block;
}

#exitFullscreenBtn {
    padding: 10px 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#exitFullscreenBtn:hover {
    background: rgba(0,0,0,0.9);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .control-panel {
        width: 100%;
        height: auto;
    }
    
    .welcome-screen {
        height: 400px;
    }
    
    .welcome-content h2 {
        font-size: 2em;
    }
}