<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>Form</class>
 <widget class="QWidget" name="Form">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>735</width>
    <height>484</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>Form</string>
  </property>
  <property name="styleSheet">
   <string notr="true">

/* ==================== QTextEdit - 翻译内容展示与输入区 ==================== */
QTextEdit {
    background-color: #ffffff;
    border: 2px solid #dce3ed;
    border-radius: 12px;
    padding: 12px 16px;
    selection-background-color: #a8c8ff;
    font-size: 15px;
    line-height: 1.6;
}

/* 鼠标悬停与聚焦时的边框高亮效果 */
QTextEdit:hover {
    border-color: #b0c8e0;
}

QTextEdit:focus {
    border-color: #4a90d9;
    background-color: #fafcff;
}

/* ==================== QComboBox - 语言选择下拉框 ==================== */
QComboBox {
    background-color: #ffffff;
    border: 2px solid #dce3ed;
    border-radius: 10px;
    padding: 8px 16px 8px 16px;
    min-height: 28px;
    color: #1e2a3a;
    /* 下拉箭头使用自定义图标或保持默认，这里微调间距 */
}

/* 下拉框悬停与聚焦 */
QComboBox:hover {
    border-color: #b0c8e0;
}

QComboBox:focus, QComboBox:on {
    border-color: #4a90d9;
}

/* 下拉框中的下拉箭头区域 */
QComboBox::drop-down {
    border: none;
    width: 30px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* 下拉箭头图标（使用默认，但调整颜色） */
QComboBox::down-arrow {
    image: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #7a8a9e;
    margin-right: 8px;
}

/* 下拉弹出列表（QListView 或 QAbstractItemView） */
QComboBox QAbstractItemView {
    background-color: #ffffff;
    border: 2px solid #dce3ed;
    border-radius: 12px;
    padding: 8px 0;
    outline: none;
    selection-background-color: #e1ebf9;
    selection-color: #1e2a3a;
}

/* 下拉列表中的条目悬停效果 */
QComboBox QAbstractItemView::item {
    padding: 8px 16px;
    border-radius: 8px;
    margin: 2px 6px;
}

QComboBox QAbstractItemView::item:hover {
    background-color: #eef3fc;
}

/* ==================== QPushButton - 主要操作按钮 ==================== */
QPushButton {
    background-color: #ffffff;
    border: 2px solid #dce3ed;
    border-radius: 12px;
    color: #1e2a3a;
    font-weight: 500;
    /* 平滑过渡效果 */
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

/* 按钮悬停 */
QPushButton:hover {
    background-color: #eef3fc;
    border-color: #b0c8e0;
}

/* 按钮按下 */
QPushButton:pressed {
    background-color: #dce8f5;
    border-color: #8aafd0;
    transform: scale(0.97);
}


/* ==================== QLabel - 标签文字 ==================== */
QLabel {
    color: #2c3e50;
    font-weight: 500;
}

/* ==================== 滚动条（QTextEdit 内部） ==================== */
QScrollBar:vertical {
    background: #f0f2f5;
    width: 12px;
    border-radius: 6px;
    margin: 2px 0px;
}

QScrollBar::handle:vertical {
    background: #c8d2e0;
    border-radius: 6px;
    min-height: 30px;
}

QScrollBar::handle:vertical:hover {
    background: #a8b8cc;
}

QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
    height: 0px;
}

/* 水平滚动条（如有需要） */
QScrollBar:horizontal {
    background: #f0f2f5;
    height: 12px;
    border-radius: 6px;
    margin: 0px 2px;
}

QScrollBar::handle:horizontal {
    background: #c8d2e0;
    border-radius: 6px;
    min-width: 30px;
}

QScrollBar::handle:horizontal:hover {
    background: #a8b8cc;
}

QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
    width: 0px;
}
</string>
  </property>
  <widget class="QWidget" name="gridLayoutWidget">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
     <width>731</width>
     <height>481</height>
    </rect>
   </property>
   <layout class="QGridLayout" name="gridLayout_2">
    <item row="1" column="0" colspan="2">
     <widget class="QGroupBox" name="groupBox_3">
      <property name="maximumSize">
       <size>
        <width>16777215</width>
        <height>210</height>
       </size>
      </property>
      <property name="title">
       <string>API完整响应</string>
      </property>
      <widget class="QWidget" name="gridLayoutWidget_4">
       <property name="geometry">
        <rect>
         <x>-1</x>
         <y>19</y>
         <width>721</width>
         <height>191</height>
        </rect>
       </property>
       <layout class="QGridLayout" name="gridLayout_5">
        <item row="0" column="0">
         <spacer name="horizontalSpacer_3">
          <property name="orientation">
           <enum>Qt::Orientation::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Policy::Maximum</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>5</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="0" column="1">
         <widget class="QTextEdit" name="more">
          <property name="maximumSize">
           <size>
            <width>16777215</width>
            <height>99999</height>
           </size>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
     </widget>
    </item>
    <item row="0" column="0">
     <widget class="QGroupBox" name="groupBox">
      <property name="enabled">
       <bool>true</bool>
      </property>
      <property name="title">
       <string>在线翻译</string>
      </property>
      <widget class="QWidget" name="gridLayoutWidget_2">
       <property name="geometry">
        <rect>
         <x>-1</x>
         <y>19</y>
         <width>351</width>
         <height>231</height>
        </rect>
       </property>
       <layout class="QGridLayout" name="gridLayout_3">
        <item row="0" column="2">
         <widget class="QLabel" name="label">
          <property name="maximumSize">
           <size>
            <width>80</width>
            <height>16777215</height>
           </size>
          </property>
          <property name="font">
           <font>
            <pointsize>10</pointsize>
            <fontweight>Medium</fontweight>
           </font>
          </property>
          <property name="text">
           <string>      翻译至</string>
          </property>
         </widget>
        </item>
        <item row="0" column="1">
         <widget class="QComboBox" name="input_l">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="minimumSize">
           <size>
            <width>0</width>
            <height>48</height>
           </size>
          </property>
          <property name="maximumSize">
           <size>
            <width>16777215</width>
            <height>16777215</height>
           </size>
          </property>
          <item>
           <property name="text">
            <string>中文</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>英文</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>日语</string>
           </property>
          </item>
         </widget>
        </item>
        <item row="0" column="0">
         <spacer name="horizontalSpacer">
          <property name="orientation">
           <enum>Qt::Orientation::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Policy::Maximum</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>5</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="1" column="1" colspan="3">
         <widget class="QTextEdit" name="input_text">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Expanding" vsizetype="Maximum">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="maximumSize">
           <size>
            <width>350</width>
            <height>160</height>
           </size>
          </property>
         </widget>
        </item>
        <item row="0" column="4">
         <spacer name="horizontalSpacer_2">
          <property name="orientation">
           <enum>Qt::Orientation::Horizontal</enum>
          </property>
          <property name="sizeType">
           <enum>QSizePolicy::Policy::Maximum</enum>
          </property>
          <property name="sizeHint" stdset="0">
           <size>
            <width>5</width>
            <height>20</height>
           </size>
          </property>
         </spacer>
        </item>
        <item row="0" column="3">
         <widget class="QComboBox" name="output_r">
          <property name="sizePolicy">
           <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
            <horstretch>0</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
          </property>
          <property name="minimumSize">
           <size>
            <width>0</width>
            <height>48</height>
           </size>
          </property>
          <property name="maximumSize">
           <size>
            <width>16777215</width>
            <height>16777215</height>
           </size>
          </property>
          <item>
           <property name="text">
            <string>中文</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>英文</string>
           </property>
          </item>
          <item>
           <property name="text">
            <string>日语</string>
           </property>
          </item>
         </widget>
        </item>
        <item row="2" column="1" colspan="3">
         <widget class="QPushButton" name="pushButton1">
          <property name="minimumSize">
           <size>
            <width>0</width>
            <height>30</height>
           </size>
          </property>
          <property name="text">
           <string>翻译</string>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
     </widget>
    </item>
    <item row="0" column="1">
     <widget class="QGroupBox" name="groupBox_2">
      <property name="title">
       <string>翻译结果</string>
      </property>
      <widget class="QWidget" name="gridLayoutWidget_3">
       <property name="geometry">
        <rect>
         <x>-1</x>
         <y>19</y>
         <width>361</width>
         <height>231</height>
        </rect>
       </property>
       <layout class="QGridLayout" name="gridLayout_4">
        <item row="0" column="0">
         <widget class="QTextEdit" name="output_text">
          <property name="maximumSize">
           <size>
            <width>347</width>
            <height>16777215</height>
           </size>
          </property>
         </widget>
        </item>
       </layout>
      </widget>
     </widget>
    </item>
   </layout>
  </widget>
 </widget>
 <resources/>
 <connections/>
</ui>
