用户:南鸢晨星/Index/style.css
来自EaseCation Wiki
更多操作
/* User:南鸢晨星/Index/style.css */
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #ff9900;
--success-color: #27ae60;
--danger-color: #e74c3c;
--light-bg: #f5f7fa;
--card-bg: #ffffff;
--border-color: #e1e8ed;
--text-primary: #2c3e50;
--text-secondary: #7f8c8d;
}
.index-container {
display: flex;
gap: 20px;
margin: 20px 0;
}
.index-sidebar-left {
width: 220px;
flex-shrink: 0;
}
.index-main-content {
flex: 1;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.index-sidebar-right {
width: 300px;
flex-shrink: 0;
}
.index-card {
background: var(--card-bg);
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 20px;
margin-bottom: 20px;
transition: transform 0.3s, box-shadow 0.3s;
}
.index-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.index-card-title {
color: var(--primary-color);
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2px solid var(--accent-color);
font-size: 1.2em;
font-weight: bold;
display: flex;
align-items: center;
}
.index-card-title::before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
background: var(--accent-color);
border-radius: 50%;
margin-right: 10px;
}
.index-card-content {
line-height: 1.6;
}
.index-link-list {
list-style: none;
padding-left: 10px;
}
.index-link-list a {
display: block;
padding: 5px 0;
color: var(--text-primary);
text-decoration: none;
transition: color 0.3s;
}
.index-link-list a:hover {
color: var(--accent-color);
}
.index-docs-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-top: 10px;
}
.index-doc-item {
display: flex;
align-items: center;
padding: 10px;
background: var(--light-bg);
border-radius: 4px;
transition: background 0.3s;
}
.index-doc-item:hover {
background: #e9ecef;
}
.index-doc-icon {
width: 40px;
height: 40px;
background: var(--accent-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
font-weight: bold;
flex-shrink: 0;
}
.index-rules-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-top: 10px;
}
.index-rule-item {
text-align: center;
padding: 15px 5px;
background: var(--light-bg);
border-radius: 4px;
transition: transform 0.3s;
}
.index-rule-item:hover {
transform: scale(1.05);
}
.index-rule-icon {
width: 50px;
height: 50px;
background: var(--secondary-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 10px;
font-weight: bold;
font-size: 1.2em;
}
.index-game-list {
margin-top: 10px;
}
.index-game-item {
display: flex;
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid var(--border-color);
}
.index-game-item:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.index-game-icon {
width: 80px;
height: 80px;
background: var(--light-bg);
border-radius: 8px;
margin-right: 15px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
font-weight: bold;
font-size: 1.1em;
}
.index-game-desc {
color: var(--text-secondary);
font-size: 0.9em;
margin-top: 3px;
}
.index-highlight-box {
background: linear-gradient(135deg, #e6f0ff, #f0f5ff);
border-left: 4px solid var(--accent-color);
padding: 15px;
margin: 15px 0;
border-radius: 4px;
font-size: 0.95em;
}
.index-card-footer {
text-align: center;
margin-top: 15px;
padding-top: 10px;
border-top: 1px solid var(--border-color);
}
.index-card-footer a {
display: inline-block;
padding: 8px 15px;
background: var(--accent-color);
color: white;
text-decoration: none;
border-radius: 4px;
font-weight: bold;
transition: background 0.3s;
}
.index-card-footer a:hover {
background: #e68a00;
text-decoration: none;
}
.index-help-box {
text-align: center;
padding: 20px 10px;
}
.index-help-icon {
width: 60px;
height: 60px;
background: var(--accent-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 15px;
font-weight: bold;
font-size: 1.5em;
}
.index-changes-list {
list-style: none;
margin-top: 10px;
}
.index-change-item {
padding: 10px 0;
border-bottom: 1px solid var(--border-color);
}
.index-change-item:last-child {
border-bottom: none;
}
.index-change-time {
color: var(--text-secondary);
font-size: 0.9em;
margin-right: 10px;
display: inline-block;
width: 50px;
}
.index-change-desc {
color: var(--text-secondary);
font-size: 0.9em;
margin-left: 60px;
margin-top: 2px;
}
.index-diff-pos {
color: var(--success-color);
font-weight: bold;
margin-left: 5px;
display: inline-block;
min-width: 30px;
}
.index-diff-neg {
color: var(--danger-color);
font-weight: bold;
margin-left: 5px;
display: inline-block;
min-width: 30px;
}
.index-diff-zero {
color: var(--text-secondary);
font-weight: bold;
margin-left: 5px;
display: inline-block;
min-width: 30px;
}
.wel-cards-container {
display: flex;
gap: 10px;
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
border-radius: 8px;
overflow: hidden;
}
.wel-card-left {
background: linear-gradient(135deg, #e6f0ff, #f0f5ff);
flex: 1;
padding: 20px;
border-left: 5px solid var(--accent-color);
}
.wel-card-right {
background: linear-gradient(135deg, #d4edda, #c3e6cb);
flex: 1;
padding: 15px;
text-align: center;
}
.wel-card_title {
font-weight: bold;
margin-bottom: 15px;
font-size: 1.3em;
color: var(--primary-color);
display: flex;
align-items: center;
}
.wel-card_title::before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
background: var(--accent-color);
border-radius: 50%;
margin-right: 10px;
}
.stat-row {
margin: 12px 0;
}
.stat-num {
font-size: 24px;
font-weight: bold;
color: var(--primary-color);
display: block;
}
.stat-label {
font-size: 14px;
color: var(--text-secondary);
}
@media (max-width: 1200px) {
.index-container {
flex-direction: column;
}
.index-sidebar-left,
.index-sidebar-right {
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.index-main-content {
grid-template-columns: 1fr;
}
.index-card {
height: 100%;
}
}
@media (max-width: 768px) {
.index-container {
display: block;
}
.index-sidebar-left,
.index-sidebar-right {
grid-template-columns: 1fr;
}
.index-rules-grid,
.index-docs-grid {
grid-template-columns: 1fr;
}
.wel-cards-container {
flex-direction: column;
}
.wel-card-left,
.wel-card-right {
width: 100%;
}
}