【实况足球手游】最强普通精选两米裤袜来袭!平民门将又多一选择-周五西甲黄卡投资建议-多数球员不值得抽取
/* 西甲下拉菜单容器 */
.la-liga-select-wrapper {
position: relative;
display: inline-block;
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
/* 下拉框主体 - 西甲经典红金配色 */
.la-liga-select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
width: 220px;
padding: 12px 40px 12px 16px;
font-size: 14px;
font-weight: 500;
color: #1a1a2e;
background: linear-gradient(135deg, #fff8e7 0%, #ffefc2 100%);
border: 2px solid #c9a227;
border-radius: 8px;
cursor: pointer;
outline: none;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
}
/* 悬停效果 */
.la-liga-select:hover {
background: linear-gradient(135deg, #fff3d4 0%, #ffe8a0 100%);
border-color: #a67c00;
box-shadow: 0 4px 16px rgba(201, 162, 39, 0.25);
}
/* 聚焦状态 */
.la-liga-select:focus {
border-color: #8b0000;
box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1), 0 4px 16px rgba(201, 162, 39, 0.2);
}
/* 自定义下拉箭头 */
.la-liga-select-wrapper::after {
content: '⚽';
position: absolute;
right: 14px;
top: 50%;
transform: translateY(-50%);
font-size: 12px;
color: #8b0000;
pointer-events: none;
transition: transform 0.3s ease;
}
/* 展开时箭头旋转 */
.la-liga-select-wrapper:focus-within::after {
transform: translateY(-50%) rotate(180deg);
}
/* 下拉选项样式 */
.la-liga-select option {
padding: 10px 16px;
font-size: 14px;
color: #1a1a2e;
background: #fffef5;
}
/* 选项分组标题 */
.la-liga-select optgroup {
font-weight: 600;
color: #8b0000;
background: #fff8e7;
}
/* 选项悬停/选中状态 */
.la-liga-select option:hover,
.la-liga-select option:checked {
background: linear-gradient(90deg, #8b0000 0%, #a52a2a 100%);
color: #fff;
}
/* 禁用状态 */
.la-liga-select:disabled {
opacity: 0.6;
cursor: not-allowed;
background: #f0f0f0;
border-color: #ccc;
}
/* 响应式适配 */
@media (max-width: 768px) {
.la-liga-select {
width: 100%;
font-size: 16px; /* 防止iOS缩放 */
}
}
/* 动画关键帧 - 入场微动效 */
@keyframes laLigaFadeIn {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.la-liga-select-wrapper {
animation: laLigaFadeIn 0.4s ease-out;
}
HTML结构:
<div class="la-liga-select-wrapper">
<select class="la-liga-select" name="la-liga-topic">
<option value="" disabled selected>🏆 西甲专属</option>
<option value="basque-lion">🦁 巴斯克雄狮</option>
<option value="el-clasico">⚔️ 国家德比</option>
<option value="laliga-org">🏛️ 西甲联盟</option>
<option value="non-eu">🌍 非欧名额</option>
<option value="lamasia">🔵🔴 拉玛西亚</option>
</select>
</div>
设计亮点: | 元素 | 说明 | |:---|:---| | 配色 | 红金主调(#8b0000深红 + #c9a227金),呼应西甲徽标 | | 足球箭头 | 用⚽替代传统箭头,强化足球属性 | | 渐变背景 | 米金渐变营造伊比利亚阳光质感 | | 微交互 | 悬停/聚焦/展开均有细腻过渡 |
