/* 现代化灰黑色酷炫风格CSS */

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

/* 全局平滑滚动 */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 120px; /* 为固定导航栏留出空间 */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 简化背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(64, 64, 64, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 96, 96, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 10s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(80, 80, 80, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: floatingBubbles 20s linear infinite;
}

/* 标题区域 - 现代化导航栏 */
div[name="title"] {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* 滚动时隐藏导航栏 */
div[name="title"].hidden {
    transform: translateY(-100%);
}

div[name="title"] h1 {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate, titleSlideIn 1s ease-out;
}

div[name="title"] h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #888, transparent);
    border-radius: 2px;
    animation: lineExpand 2s ease-out;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    to {
        text-shadow: 0 2px 20px rgba(136, 136, 136, 0.4), 0 0 10px rgba(136, 136, 136, 0.2);
    }
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}



/* 导航按钮网格布局 */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

div[name="title"] input[type="button"] {
    background: rgba(45, 45, 45, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    margin: 0 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
}

div[name="title"] input[type="button"]:hover {
    background: rgba(55, 55, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

div[name="title"] input[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero区域 - 酷炫的介绍部分 */
.hero-section {
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 16px;
    padding: 32px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: heroSlideIn 0.8s ease-out;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.1), rgba(60, 60, 60, 0.1));
    z-index: -1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.magic-text h2 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(75, 85, 99, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.magic-text .subtitle {
    color: #b0b0b0;
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.feature-cards {
    display: flex;
    justify-content: space-around;
    margin: 24px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.feature-card {
    background: rgba(35, 35, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    backdrop-filter: blur(8px);
    animation: cardSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(75, 85, 99, 0.3);
    border-color: rgba(75, 85, 99, 0.6);
}

.card-icon {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text {
    color: #e0e0e0;
    font-size: 0.9em;
    font-weight: 500;
}

.feature-card h3 {
    margin: 12px 0 8px 0;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
}

.feature-card p {
    color: #c0c0c0;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.cta-text {
    color: #e0e0e0;
    font-size: 1.3em;
    font-weight: 500;
    margin-top: 20px;
}

.content-container {
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(80, 80, 80, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: visible; /* 修改为visible以防止下拉菜单被截断 */
    animation: containerSlideIn 0.8s ease-out;
}

/* 表单内部装饰元素 - 静态版本 */
.content-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(100, 100, 100, 0.02),
        transparent
    );
    transform: rotate(45deg);
}

@keyframes containerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.5), transparent);
}

.content-container p {
    font-size: 18px;
    color: #b0b0b0;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-container p:last-of-type {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 30px;
}

/* 输入容器 */
.input-container {
    position: relative;
    margin-bottom: 15px;
}

/* 文本区域 - 更酷炫的样式 */
textarea[name="create"] {
    width: 100%;
    height: 120px;
    background: rgba(60, 60, 60, 0.7);
    color: #e0e0e0;
    border: 1px solid rgba(80, 80, 80, 0.5);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: inputFadeIn 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

textarea[name="create"]:focus {
    outline: none;
    background: rgba(70, 70, 70, 0.8);
    border-color: #888;
    box-shadow: 0 0 5px rgba(120, 120, 120, 0.5);
    transform: translateY(-2px);
}

textarea[name="create"]::placeholder {
    color: rgba(176, 176, 176, 0.6);
    font-style: italic;
    line-height: 1.6;
}

@keyframes inputFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加输入时的动态效果 */
textarea[name="create"]:not(:placeholder-shown) {
    border-color: rgba(55, 55, 56, 0.6);
    box-shadow: 
        inset 0 2px 15px rgba(0, 0, 0, 0.4),
        0 5px 25px rgba(75, 85, 99, 0.1);
}

/* 字符计数器 */
.char-counter {
    text-align: right;
    color: rgba(224, 224, 224, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* 紧凑的控制面板 */
.control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: visible; /* 确保下拉菜单不被裁剪 */
    position: relative; /* 为子元素提供定位上下文 */
    animation: panelSlideIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 0.8s;
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.control-panel:hover {
    border-color: rgba(75, 85, 99, 0.4);
    box-shadow: 0 8px 25px rgba(75, 85, 99, 0.1);
}

/* 紧凑的模型选择器 */
.model-selector-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    overflow: visible; /* 确保下拉菜单不被裁剪 */
    position: relative; /* 为下拉菜单提供定位上下文 */
}

.model-selector-compact label {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* 自定义下拉菜单样式 */
.custom-dropdown {
    position: relative;
    min-width: 200px;
    cursor: pointer;
    z-index: 10001;
}

.dropdown-selected {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.95));
    color: #e0e0e0;
    border: 2px solid rgba(62, 62, 63, 0.4);
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.dropdown-selected:hover {
    border-color: #3f3f3f;
    box-shadow: 
        0 0 20px rgba(128, 128, 128, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.98), rgba(15, 15, 15, 0.98));
}

.dropdown-arrow {
    color: #4b5563;
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98), rgba(25, 25, 25, 0.98));
    border: 2px solid rgba(80, 80, 81, 0.6);
    border-radius: 15px;
    margin-top: 5px;
    backdrop-filter: blur(8px); /* 减少模糊强度提升性能 */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(85, 86, 87, 0.15);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: 
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 100%;
    will-change: opacity, transform; /* 启用硬件加速 */
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-option {
    padding: 15px 20px;
    color: #e0e0e0;
    cursor: pointer;
    transition: 
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(75, 85, 99, 0.1);
    position: relative;
    will-change: background-color, color; /* 启用硬件加速 */
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: rgba(128, 128, 128, 0.1);
    color: #a0a0a0;
    transform: translateX(3px);
    text-shadow: 0 0 8px rgba(128, 128, 128, 0.4);
}

.dropdown-option.selected {
    background: rgba(128, 128, 128, 0.15);
    color: #a0a0a0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(128, 128, 128, 0.3);
}

.option-icon {
    margin-right: 10px;
    font-size: 16px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.dropdown-option:hover .option-icon {
    transform: scale(1.2) rotate(5deg);
}

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

/* 紧凑的提交按钮 */
.submit-button-compact {
    flex-shrink: 0;
}

.submit-button-compact input[type="button"] {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: buttonFadeIn 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
    white-space: nowrap;
}

.submit-button-compact input[type="button"]:hover {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 100, 100, 0.4);
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-button-compact input[type="button"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}



@keyframes gradientShift {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) translateY(0);
    }
    25% {
        opacity: 0.5;
        transform: translateX(-5px) translateY(-5px);
    }
    50% {
        opacity: 0.4;
        transform: translateX(5px) translateY(-5px);
    }
    75% {
        opacity: 0.5;
        transform: translateX(-5px) translateY(5px);
    }
}

@keyframes floatingBubbles {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* 几何装饰元素 - 动画版本 */
.decoration {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
}

.decoration-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid #555;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.decoration-2 {
    bottom: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    border: 2px solid #444;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s ease-in-out infinite;
}

.decoration-3 {
    top: 50%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #555, #333);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate 25s linear infinite reverse;
}

.decoration-4 {
    top: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    border: 2px solid #666;
    transform: rotate(45deg);
    animation: morph 18s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }
}

/* 粒子效果 - 动画版本 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(100, 100, 100, 0.3);
    border-radius: 50%;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 4px;
    height: 4px;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    width: 6px;
    height: 6px;
    animation: float 8s ease-in-out infinite reverse;
}

.particle:nth-child(3) {
    top: 40%;
    left: 20%;
    width: 3px;
    height: 3px;
    animation: float 10s ease-in-out infinite;
}

.particle:nth-child(4) {
    top: 80%;
    left: 60%;
    width: 5px;
    height: 5px;
    animation: float 7s ease-in-out infinite reverse;
}

.particle:nth-child(5) {
    top: 30%;
    left: 90%;
    width: 4px;
    height: 4px;
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-10px);
    }
    75% {
        transform: translateY(-10px) translateX(20px);
    }
}

/* 联系我区域 */
div[name="联系我"] {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    width: 80%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

div[name="联系我"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

div[name="联系我"] p {
    color: #e0e0e0;
    line-height: 2;
    font-size: 16px;
}

div[name="联系我"] a {
    color: #4d4e4f;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

div[name="联系我"] a:hover {
    background: rgba(75, 85, 99, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 85, 99, 0.2);
}

div[name="联系我"] input[type="button"] {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(60, 60, 60, 0.8) 100%);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

div[name="联系我"] input[type="button"]:hover {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.9) 0%, rgba(80, 80, 80, 0.9) 100%);
    border-color: rgba(46, 46, 46, 0.3);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    div[name="title"] h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 0 15px;
    }
    
    div[name="title"] input[type="button"] {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .content-container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    textarea[name="create"] {
        height: 250px;
        padding: 15px;
    }
    
    input[type="button"][value="提交"] {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 180px;
    }
    
    /* 控制面板移动端优化 */
    .control-panel {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .model-selector-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .model-selector-compact label {
        font-size: 14px;
    }
    
    .custom-dropdown {
        min-width: 100%;
        width: 100%;
    }
    
    .dropdown-selected {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .submit-button-compact {
        width: 100%;
    }
    
    .submit-button-compact input[type="button"] {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* 下拉菜单移动端优化 */
    .dropdown-options {
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    }
    
    .dropdown-option {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 44px; /* 触摸友好的最小高度 */
        display: flex;
        align-items: center;
    }
    
    .dropdown-option:hover {
        /* 移动端禁用hover效果，避免触摸问题 */
        background: rgba(128, 128, 128, 0.1);
    }
    
    /* 触摸设备优化 */
    @media (hover: none) and (pointer: coarse) {
        .dropdown-option:hover {
            background: transparent;
        }
        
        .dropdown-option:active {
            background: rgba(128, 128, 128, 0.2);
            transform: scale(0.98);
        }
    }
}

@media screen and (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    div[name="title"] h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .content-container p {
        font-size: 16px;
    }
    
    div[name="联系我"] a {
        display: block;
        margin: 5px 0;
    }
    
    /* 控制面板小屏幕优化 */
    .control-panel {
        padding: 12px;
        gap: 12px;
    }
    
    .model-selector-compact {
        gap: 6px;
    }
    
    .model-selector-compact label {
        font-size: 13px;
    }
    
    .dropdown-selected {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .dropdown-option {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .submit-button-compact input[type="button"] {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4e4e4f, #252525);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4e4f4f, #171818);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-content {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 0.95));
    border: 1px solid rgba(80, 80, 80, 0.5);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    color: #e0e0e0;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-body {
    margin-bottom: 25px;
}

.modal-label {
    display: block;
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(80, 80, 80, 0.5);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: rgba(75, 85, 99, 0.8);
    box-shadow: 0 0 15px rgba(75, 85, 99, 0.3);
    background: rgba(35, 35, 35, 0.9);
}

.modal-input::placeholder {
    color: rgba(176, 176, 176, 0.6);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-btn-primary:hover {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modal-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.modal-btn-secondary {
    background: rgba(60, 60, 60, 0.7);
    color: #e0e0e0;
    border: 1px solid rgba(80, 80, 80, 0.5);
}

.modal-btn-secondary:hover {
    background: rgba(70, 70, 70, 0.8);
    border-color: #888;
    box-shadow: 0 0 5px rgba(120, 120, 120, 0.5);
}

.modal-btn-secondary:active {
    transform: translateY(1px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .modal-btn {
        width: 100%;
        padding: 12px;
    }
}

/* 系统通知框样式 */
.system-notification-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.05);
    animation: slideInUp 0.5s ease-out;
    user-select: none;
    pointer-events: auto;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
}

#notificationText {
    flex: 1;
    margin-right: 15px;
    word-wrap: break-word;
    user-select: none;
    pointer-events: none;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.notification-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
}

.notification-close-btn:active {
    transform: scale(0.95);
}

/* 通知框动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
}

.system-notification-box.slide-out {
    animation: slideOutDown 0.3s ease-in forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .system-notification-box {
        bottom: 15px;
        width: 95%;
        max-width: none;
    }
    
    .notification-content {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    #notificationText {
        margin-right: 10px;
    }
    
    .notification-close-btn {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
}

/* 通知优先级样式 */
.system-notification-box.priority-urgent {
    border: 2px solid #ff1744;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 23, 68, 0.3),
        0 0 40px rgba(255, 23, 68, 0.1);
    animation: urgentPulse 2s infinite;
}

.system-notification-box.priority-high {
    border: 2px solid #ff5722;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 87, 34, 0.2);
}

.system-notification-box.priority-medium {
    border: 2px solid #2196f3;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(33, 150, 243, 0.15);
}

.system-notification-box.priority-low {
    border: 2px solid #4caf50;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(76, 175, 80, 0.1);
}

/* 紧急通知脉冲动画 */
@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 23, 68, 0.3),
            0 0 40px rgba(255, 23, 68, 0.1);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 23, 68, 0.5),
            0 0 60px rgba(255, 23, 68, 0.2);
    }
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #2d2d2d;
    border: 2px solid #555555;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamburger-menu:hover {
    background: #3a3a3a;
    border-color: #666666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 侧边菜单样式 */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    border-left: 2px solid #555555;
    z-index: 1000;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    padding: 30px 20px 20px;
    border-bottom: 2px solid #444444;
    background: rgba(45, 45, 45, 0.8);
}

.side-menu-title {
    font-size: 20px;
    font-weight: bold;
    color: #e0e0e0;
    margin: 0;
    text-align: center;
}

.side-menu-nav {
    padding: 20px 0;
}

.side-menu-item {
    display: block;
    width: 100%;
    padding: 15px 25px;
    margin: 2px 0;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.side-menu-item:hover {
    background: rgba(96, 96, 96, 0.3);
    border-left-color: #888888;
    color: #ffffff;
}

.side-menu-item:active {
    background: rgba(128, 128, 128, 0.4);
}

/* 遮罩层样式 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端显示汉堡菜单，隐藏原导航 */
@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .nav-grid {
        display: none !important;
    }
    
    .side-menu {
        width: 100vw;
        right: -100vw;
    }
    
    .side-menu.active {
        right: 0;
    }
}

@media screen and (max-width: 480px) {
    .hamburger-menu {
        top: 15px;
        right: 15px;
        padding: 8px;
    }
    
    .hamburger-icon {
        width: 20px;
        height: 15px;
    }
    
    .hamburger-line {
        height: 2px;
    }
    
    .side-menu-header {
        padding: 25px 15px 15px;
    }
    
    .side-menu-title {
        font-size: 18px;
    }
    
    .side-menu-item {
        padding: 12px 20px;
        font-size: 15px;
    }
}

