css
ai {
display: flex;
flex-direction: column;
gap: 12px;
max-width: 700px;
margin: 0 auto;
padding: 15px;
background: #fdfcfc;
border-radius: 18px;
box-shadow: 0 8px 30px rgba(166, 77, 121, 0.1);
font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #333;
line-height: 1.6;
}
ai hd {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding: 12px 18px;
background: linear-gradient(45deg, #A64D79, #D5A6BD);
border-radius: 12px;
color: white;
font-size: 0.95em;
margin-bottom: 10px;
box-shadow: 0 4px 15px rgba(166, 77, 121, 0.3);
}
ai hd d {
flex-basis: 30%;
text-align: center;
margin: 5px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
ai hd d:nth-child(1) { flex-basis: 40%; text-align: left; }
ai hd d:nth-child(2) { flex-basis: 20%; text-align: center; }
ai hd d:nth-child(3) { flex-basis: 40%; text-align: right; }
ai article {
background: #fff;
padding: 20px;
border-radius: 15px;
box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
margin-bottom: 15px;
line-height: 1.8;
font-size: 1em;
color: #333;
text-align: justify;
border: 1px solid #f0f0f0;
}
ai article p { margin-bottom: 1em; }
ai details {
background: #fff;
border: 1px solid #EAD1DC;
border-radius: 15px;
margin-bottom: 10px;
box-shadow: 0 2px 15px rgba(166, 77, 121, 0.08);
transition: all 0.3s ease;
}
ai details[open] {
background: #fff8fb;
border-color: #D5A6BD;
box-shadow: 0 4px 20px rgba(166, 77, 121, 0.15);
}
ai summary {
padding: 15px 20px;
font-weight: bold;
color: #741B47;
cursor: pointer;
outline: none;
user-select: none;
position: relative;
list-style: none;
display: flex;
align-items: center;
font-size: 1.05em;
}
ai summary::before {
content: '▶';
display: inline-block;
width: 1em;
height: 1em;
margin-right: 10px;
transition: transform 0.2s;
transform-origin: center;
color: #A64D79;
font-size: 0.8em;
}
ai details[open] summary::before {
content: '▼';
transform: rotate(0deg);
}
ai summary::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: linear-gradient(to right, #D5A6BD, transparent);
opacity: 0.7;
}
ai details p {
padding: 8px 20px;
margin: 0;
font-size: 0.95em;
color: #555;
display: flex;
flex-wrap: wrap;
align-items: center;
border-bottom: 1px dashed #f0e0e0;
}
ai details p:last-of-type { border-bottom: none; }
ai details p f {
font-weight: bold;
color: #A64D79;
margin-right: 8px;
min-width: 45px;
display: inline-block;
}
ai details summary + p { padding-top: 15px; }
ai details table {
width: calc(100% - 40px);
margin: 10px 20px 15px 20px;
border-collapse: collapse;
font-size: 0.9em;
background: #fff;
border-radius: 8px;
overflow: hidden;
border: 1px solid #f0e0e0;
}
ai details th, ai details td {
padding: 10px 15px;
text-align: left;
border-bottom: 1px solid #f5e8ed;
}
ai details th {
background: #EAD1DC;
color: #741B47;
font-weight: bold;
text-align: center;
font-size: 0.95em;
}
ai details tr:last-child td { border-bottom: none; }
ai details q {
display: block;
padding: 10px 20px;
margin: 0 0 5px 0;
background: #fefefe;
border-left: 4px solid #D5A6BD;
color: #555;
font-style: italic;
font-size: 0.95em;
transition: background 0.2s;
}
ai details q:hover {
background: #fff0f5;
border-left-color: #A64D79;
}
ai font[color="#1E90FF"] { color: #1E90FF; font-weight: bold; }
ai font[color="#FF2A6D"] { color: #FF2A6D; font-weight: bold; }
ai font[color="#b2bec3"] { color: #b2bec3; font-weight: bold; }
@media (max-width: 600px) {
ai {
padding: 10px;
gap: 10px;
}
ai hd {
padding: 8px 12px;
font-size: 0.85em;
flex-direction: column;
align-items: flex-start;
}
ai hd d {
flex-basis: 100%;
text-align: left;
margin: 2px 0;
}
ai article {
padding: 15px;
font-size: 0.9em;
}
ai summary {
padding: 12px 15px;
font-size: 1em;
}
ai details p {
padding: 6px 15px;
font-size: 0.9em;
flex-direction: column;
align-items: flex-start;
}
ai details p f {
min-width: auto;
margin-bottom: 2px;
}
ai details table {
width: calc(100% - 30px);
margin: 8px 15px 12px 15px;
}
ai details th, ai details td {
padding: 8px 10px;
}
ai details q {
padding: 8px 15px;
font-size: 0.9em;
}
}