用户:常荣棉/styles.css
来自EaseCation Wiki
更多操作
< 用户:常荣棉
.cotton-root {
position: relative;
box-sizing: border-box;
width: 100%;
margin: 0;
min-height: 100vh;
padding: 20px 22px 48px;
overflow: hidden;
color: #dfe6ff;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
background: radial-gradient(ellipse at 30% 20%, rgba(20,40,80,.6), transparent 50%),
radial-gradient(ellipse at 70% 60%, rgba(40,20,80,.4), transparent 50%),
radial-gradient(ellipse at 50% 80%, rgba(10,50,70,.3), transparent 50%),
linear-gradient(180deg, #050510 0%, #0a0a20 40%, #080818 70%, #020208 100%);
border-radius: 0;
cursor: url("https://bbs.nyasama.com/data/attachment/album/202608/16/143513bc8l8jorwwm7jhok.png"), auto;
}
.cotton-hero {
text-align: center;
padding: 80px 0;
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
animation: cotton-fadeup 0.9s ease both;
}
.cotton-name {
margin: 0;
font-size: 80px;
font-weight: 900;
letter-spacing: 0.08em;
line-height: 1.15;
color: #c4b5fd;
text-shadow:
0 0 20px rgba(167, 139, 250, 0.5),
0 0 60px rgba(103, 232, 249, 0.2),
0 0 120px rgba(167, 139, 250, 0.1);
transition: transform 0.4s ease;
}
.cotton-name:hover {
transform: scale(1.02);
}
.cotton-content {
max-width: 1100px;
margin: 0 auto;
padding: 0 10px;
}
.cotton-row {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.cotton-col-half {
flex: 0 0 calc(50% - 10px);
max-width: calc(50% - 10px);
}
.cotton-col-third {
flex: 0 0 calc(33.333% - 14px);
max-width: calc(33.333% - 14px);
}
.cotton-col-twothird {
flex: 0 0 calc(66.666% - 14px);
max-width: calc(66.666% - 14px);
}
.cotton-col-quarter {
flex: 0 0 calc(25% - 15px);
max-width: calc(25% - 15px);
}
.cotton-col-threequarter {
flex: 0 0 calc(75% - 15px);
max-width: calc(75% - 15px);
}
.cotton-block {
border: 1px solid rgba(167, 139, 250, 0.25);
background: rgba(10, 12, 30, 0.6);
backdrop-filter: blur(10px);
padding: 22px 28px;
border-radius: 16px;
margin: 24px 0;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cotton-block:hover {
border-color: rgba(167, 139, 250, 0.6);
box-shadow: 0 0 40px rgba(167, 139, 250, 0.06);
}
.cotton-content .cotton-block:nth-child(1) { animation: cotton-fadeup 0.9s ease 0.05s both; }
.cotton-content .cotton-block:nth-child(2) { animation: cotton-fadeup 0.9s ease 0.10s both; }
.cotton-content .cotton-block:nth-child(3) { animation: cotton-fadeup 0.9s ease 0.15s both; }
.cotton-content .cotton-block:nth-child(4) { animation: cotton-fadeup 0.9s ease 0.20s both; }
.cotton-content .cotton-block:nth-child(5) { animation: cotton-fadeup 0.9s ease 0.25s both; }
.cotton-content .cotton-block:nth-child(6) { animation: cotton-fadeup 0.9s ease 0.30s both; }
.cotton-content .cotton-block:nth-child(7) { animation: cotton-fadeup 0.9s ease 0.35s both; }
.cotton-content .cotton-block:nth-child(8) { animation: cotton-fadeup 0.9s ease 0.40s both; }
.cotton-content .cotton-block:nth-child(9) { animation: cotton-fadeup 0.9s ease 0.45s both; }
.cotton-content .cotton-block:nth-child(10) { animation: cotton-fadeup 0.9s ease 0.50s both; }
.cotton-content .cotton-block:nth-child(11) { animation: cotton-fadeup 0.9s ease 0.55s both; }
.cotton-content .cotton-block:nth-child(12) { animation: cotton-fadeup 0.9s ease 0.60s both; }
.cotton-block a,
.cotton-block-text a,
.cotton-block table a,
.cotton-block ul li a,
.cotton-block ol li a {
color: #7dd3fc;
text-decoration: none;
border-bottom: 1px solid rgba(125, 211, 252, 0.3);
transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}
.cotton-block a:hover,
.cotton-block-text a:hover,
.cotton-block table a:hover,
.cotton-block ul li a:hover,
.cotton-block ol li a:hover {
color: #f0abfc;
border-color: rgba(240, 171, 252, 0.6);
text-shadow: 0 0 20px rgba(240, 171, 252, 0.3);
}
.cotton-block-title {
font-size: 20px;
font-weight: 700;
color: #c4b5fd;
margin-bottom: 12px;
letter-spacing: 0.05em;
padding-bottom: 10px;
text-shadow: 0 0 20px rgba(167, 139, 250, 0.15), 0 0 60px rgba(167, 139, 250, 0.05);
position: relative;
border-bottom: 1px solid rgba(167, 139, 250, 0.15);
box-shadow: 0 1px 0 rgba(167, 139, 250, 0.08);
}
.cotton-block-title::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
height: 2px;
background: #a78bfa;
border-radius: 2px;
opacity: 0.5;
}
.cotton-block-text {
color: #c3cbe8;
font-size: 15px;
line-height: 1.9;
}
.cotton-block-text p {
margin: 8px 0;
}
.cotton-block ul {
list-style: none;
padding-left: 0;
}
.cotton-block ul li {
padding-left: 22px;
position: relative;
}
.cotton-block ul li::before {
content: "✦";
position: absolute;
left: 0;
color: #7dd3fc;
font-size: 14px;
line-height: 1.9;
}
.cotton-block table {
width: 100%;
border-collapse: collapse;
background: transparent;
color: #c3cbe8;
font-size: 14px;
border: 1px solid rgba(167, 139, 250, 0.15);
border-radius: 12px;
overflow: hidden;
}
.cotton-block table th {
background: rgba(167, 139, 250, 0.12);
color: #c4b5fd;
font-weight: 700;
padding: 10px 14px;
border: 1px solid rgba(167, 139, 250, 0.1);
text-align: center;
}
.cotton-block table td {
padding: 10px 14px;
border: 1px solid rgba(167, 139, 250, 0.08);
background: rgba(255, 255, 255, 0.02);
color: #c3cbe8;
}
.cotton-block table td:first-child {
font-weight: 600;
color: #aab6e4;
}
.cotton-block table tr:hover td {
background: rgba(167, 139, 250, 0.06);
}
.cotton-block .mw-collapsible {
border: none !important;
background: transparent !important;
margin: 8px 0;
}
.cotton-block .mw-collapsible td {
background: rgba(255, 255, 255, 0.015);
color: #c3cbe8;
padding: 10px 16px;
border: 1px solid rgba(167, 139, 250, 0.05);
}
.cotton-block .mw-collapsible td:first-child {
font-weight: 600;
color: #aab6e4;
}
.cotton-block .mw-collapsible .mw-collapsible-toggle {
color: #7dd3fc !important;
font-weight: 600;
cursor: pointer;
user-select: none;
padding: 4px 0;
background: transparent !important;
border: none !important;
text-decoration: none;
}
.cotton-block .mw-collapsible .mw-collapsible-toggle:hover {
color: #f0abfc !important;
}
.cotton-block .mw-collapsible .mw-collapsible-text {
color: #7dd3fc !important;
}
.cotton-block .mw-collapsible .mw-collapsible-text:hover {
color: #f0abfc !important;
}
.cotton-block-link {
color: #7dd3fc;
text-decoration: none;
border-bottom: 1px solid rgba(125, 211, 252, 0.25);
transition: color 0.25s ease, border-color 0.25s ease;
}
.cotton-block-link:hover {
color: #f0abfc;
border-color: rgba(240, 171, 252, 0.5);
}
.cotton-block-highlight {
color: #67e8f9;
font-weight: 700;
}
.cotton-block-accent {
color: #fcd34d;
font-weight: 700;
}
.cotton-block-pink {
color: #f0abfc;
font-weight: 700;
}
.cotton-block-success {
color: #34d399;
font-weight: 700;
}
.cotton-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 14px;
margin: 20px 0 10px;
}
.cotton-stat {
text-align: center;
padding: 18px 10px 14px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.045);
border: 1px solid rgba(255, 255, 255, 0.09);
transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.cotton-stat:hover {
transform: translateY(-4px);
border-color: rgba(103, 232, 249, 0.55);
box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}
.cotton-stat b {
display: block;
font-size: 27px;
font-weight: 800;
color: #67e8f9;
text-shadow: 0 0 14px rgba(103, 232, 249, 0.45);
}
.cotton-stat span {
font-size: 12px;
color: #8b96c8;
letter-spacing: 0.22em;
}
@keyframes cotton-fadeup {
from { opacity: 0; transform: translateY(18px); }
to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
.cotton-root { padding: 96px 14px 36px; }
.cotton-block {
padding: 16px 16px;
margin: 16px 0;
border-radius: 12px;
}
.cotton-block-title {
font-size: 17px;
}
.cotton-block table td,
.cotton-block table th {
padding: 6px 10px;
font-size: 13px;
}
}
@media (max-width: 768px) {
.cotton-col-half,
.cotton-col-third,
.cotton-col-twothird,
.cotton-col-quarter,
.cotton-col-threequarter {
flex: 0 0 100%;
max-width: 100%;
}
}
.fumo {
display: inline-block;
animation: wobble 1.25s ease-in-out infinite;
}
.fumo:hover {
animation: buzz 1.5s linear infinite;
}
@keyframes buzz {
10% { transform: translateX(3px) rotate(2deg); }
20% { transform: translateX(-3px) rotate(-2deg); }
30% { transform: translateX(3px) rotate(2deg); }
40% { transform: translateX(-3px) rotate(-2deg); }
50% { transform: translateX(2px) rotate(1deg); }
60% { transform: translateX(-2px) rotate(-1deg); }
70% { transform: translateX(2px) rotate(1deg); }
80% { transform: translateX(-2px) rotate(-1deg); }
90% { transform: translateX(1px) rotate(0); }
100% { transform: translateX(-1px) rotate(0); }
}
@keyframes wobble {
50% { transform: translateY(12px) scale(1.02, 0.95); }
60% { transform: translateY(-6px); }
70% { transform: translateY(4px); }
80% { transform: translateY(-2px); }
90% { transform: translateY(1px); }
100% { transform: translateY(0); }
}
.fumo-rainbow {
animation: wobble 1.25s ease-in-out infinite, colorCycle 5s linear infinite;
}
.fumo-rainbow:hover {
animation: buzz 1.5s linear infinite, colorCycle 5s linear infinite;
}
@keyframes colorCycle {
0% { filter: hue-rotate(0deg); }
20% { filter: hue-rotate(60deg); }
40% { filter: hue-rotate(120deg); }
60% { filter: hue-rotate(180deg); }
80% { filter: hue-rotate(240deg); }
100% { filter: hue-rotate(300deg); }
}
.bagua-wrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 20px auto;
}
.bagua {
width: 120px;
height: 120px;
position: relative;
border-radius: 50%;
background: linear-gradient(to right, #fff 50%, #e74c3c 50%);
animation: bagua-rotate 3s linear infinite;
box-shadow: 0 0 30px rgba(231, 76, 60, 0.5);
}
.bagua::before,
.bagua::after {
content: '';
position: absolute;
border-radius: 50%;
}
.bagua::before {
width: 60px;
height: 60px;
top: 0;
left: 30px;
background: #e74c3c;
}
.bagua::after {
width: 60px;
height: 60px;
bottom: 0;
left: 30px;
background: #fff;
}
.bagua-inner::before,
.bagua-inner::after {
content: '';
position: absolute;
border-radius: 50%;
z-index: 1;
}
.bagua-inner::before {
width: 20px;
height: 20px;
top: 20px;
left: 50px;
background: #fff;
}
.bagua-inner::after {
width: 20px;
height: 20px;
bottom: 20px;
left: 50px;
background: #e74c3c;
}
@keyframes bagua-rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.bagua-text {
color: #fff;
font-size: 18px;
font-weight: bold;
text-shadow: 0 0 5px #e74c3c, 0 0 10px #e74c3c;
letter-spacing: 3px;
text-align: center;
margin-top: 20px;
}