 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
 }
 
 body {
    background-image: url(../images/19.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
}

 body {
     background-color: #f5f7fa;
     color: #333;
     display: flex;
     min-height: 100vh;
 }

 /* 左侧导航 */
 .left {
     width: 220px;
     background-color: #fff;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
     padding: 20px 0;
     display: flex;
     flex-direction: column;
     z-index: 10;
 }

 .logo {
     display: flex;
     align-items: center;
     padding: 0 20px 20px;
     margin-bottom: 20px;
     border-bottom: 1px solid #eee;
 }

 .logo img {
     width: 32px;
     height: 32px;
     margin-right: 10px;
 }

 .logo span {
     font-size: 24px;
     color: #3d7eff;
     font-weight: bold;
     letter-spacing: 2px;
 }

 .nav-links {
     list-style: none;
     flex-grow: 1;
 }

 .nav-links li {
     margin: 5px 0;
     position: relative;
 }

 .nav-links>li>a {
     display: block;
     padding: 12px 25px;
     text-decoration: none;
     color: #555;
     font-size: 16px;
     transition: all 0.3s;
     position: relative;
 }

 .nav-links>li>a:hover {
     background-color: #f0f5ff;
     color: #3d7eff;
 }

 .nav-links>li>a.active {
     background-color: #f0f5ff;
     color: #3d7eff;
     font-weight: 500;
 }

 .nav-links>li>a.active::before {
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     height: 100%;
     width: 4px;
     background-color: #3d7eff;
     border-radius: 0 2px 2px 0;
 }

 .submenu {
     list-style: none;
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.3s ease-out;
 }

 .nav-links li.active .submenu {
     max-height: 500px;
 }

 .submenu li a {
     display: block;
     padding: 10px 25px 10px 50px;
     text-decoration: none;
     color: #666;
     font-size: 14px;
     transition: all 0.3s;
 }

 .submenu li a:hover {
     background-color: #f0f5ff;
     color: #3d7eff;
 }

 /* 右侧内容区域 */
 .right {
     flex: 1;
     padding: 30px;
     display: flex;
     flex-direction: column;
 }

 .top-bar {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 30px;
 }

 .page-title {
     font-size: 24px;
     font-weight: 600;
     color: #2c3e50;
 }

 .user-info {
     display: flex;
     align-items: center;
 }

 .user-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background-color: #3d7eff;
     color: white;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-left: 15px;
     font-weight: bold;
 }

 /* 首页内容 */
 .home-container {
     background-color: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     padding: 40px;
     flex: 1;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
 }

 .welcome-title {
     font-size: 32px;
     font-weight: 600;
     color: #2c3e50;
     margin-bottom: 20px;
 }

 .welcome-subtitle {
     font-size: 18px;
     color: #7a8aa0;
     margin-bottom: 40px;
     max-width: 600px;
 }

 .cloud-tag {
     background: linear-gradient(135deg, #3d7eff, #6c8eff);
     color: white;
     padding: 10px 25px;
     border-radius: 50px;
     font-weight: 500;
     margin-top: 30px;
 }

 /* 文生图界面 */
 .design-container {
     background-color: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     padding: 30px;
     flex: 1;
     display: none;
 }

 .design-layout {
     display: flex;
     gap: 30px;
     height: 100%;
 }

 .input-panel {
     flex: 1;
     display: flex;
     flex-direction: column;
 }

 .output-panel {
     flex: 1;
     background-color: #f9fbfe;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #7a8aa0;
     font-size: 16px;
 }

 .input-title {
     font-size: 18px;
     font-weight: 600;
     color: #2c3e50;
     margin-bottom: 15px;
 }

 .text-input {
     width: 100%;
     min-height: 120px;
     padding: 15px;
     border: 1px solid #dce3f0;
     border-radius: 8px;
     resize: vertical;
     font-size: 15px;
     margin-bottom: 20px;
 }

 .text-input:focus {
     outline: none;
     border-color: #3d7eff;
 }

 .upload-area {
     border: 2px dashed #dce3f0;
     border-radius: 10px;
     padding: 30px;
     text-align: center;
     margin-bottom: 20px;
     cursor: pointer;
     transition: all 0.3s;
 }

 .upload-area:hover {
     border-color: #3d7eff;
     background-color: #f9fbfe;
 }

 .upload-icon {
     font-size: 40px;
     color: #3d7eff;
     margin-bottom: 15px;
 }

 .upload-text {
     color: #7a8aa0;
     margin-bottom: 10px;
 }

 .upload-note {
     font-size: 13px;
     color: #aab7c5;
 }

 .generate-btn {
     padding: 12px 25px;
     background-color: #3d7eff;
     color: white;
     border: none;
     border-radius: 6px;
     font-size: 16px;
     font-weight: 500;
     cursor: pointer;
     transition: background-color 0.3s;
     align-self: flex-start;
 }

 .generate-btn:hover {
     background-color: #2c6ae6;
 }

 /* 款式库组件 */
 .component-container {
     background-color: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
     padding: 30px;
     flex: 1;
     display: none;
 }

 .category-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     gap: 20px;
 }

 .category-item {
     background-color: #f9fbfe;
     border-radius: 10px;
     padding: 20px;
     text-align: center;
     cursor: pointer;
     transition: all 0.3s;
     border: 1px solid #e6eeff;
 }

 .category-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 5px 15px rgba(61, 126, 255, 0.15);
     border-color: #3d7eff;
 }

 .category-icon {
     width: 60px;
     height: 60px;
     background: linear-gradient(135deg, #3d7eff, #6c8eff);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-size: 24px;
     margin: 0 auto 15px;
 }

 .category-name {
     font-weight: 500;
     color: #2c3e50;
 }

 /* 响应式设计 */
 @media (max-width: 768px) {
     body {
         flex-direction: column;
     }

     .left {
         width: 100%;
         padding: 10px 0;
     }

     .nav-links {
         display: flex;
         overflow-x: auto;
         padding: 0 10px;
     }

     .nav-links li {
         margin: 0 5px;
     }

     .nav-links>li>a {
         padding: 10px 15px;
         white-space: nowrap;
     }

     .nav-links>li>a.active::before {
         width: 100%;
         height: 3px;
         top: auto;
         bottom: 0;
         border-radius: 3px 3px 0 0;
     }

     .submenu {
         position: absolute;
         background: white;
         width: 100%;
         z-index: 100;
         box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
     }

     .design-layout {
         flex-direction: column;
     }
 }