/* ===== 专业打击乐编排器样式 ===== */
/* 文件名: professional-drum-machine.css */

/* 基础变量定义 */
:root {
--primary-color: #ff6b35;
--secondary-color: #1e88e5;
--accent-color: #ffd54f;
--dark-bg: #121212;
--darker-bg: #0a0a0a;
--card-bg: #1e1e1e;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--success-color: #4caf50;
--warning-color: #ff9800;
--danger-color: #f44336;
--border-radius: 12px;
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
--glow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* 基础重置与字体 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
padding: 20px;
}

/* 容器样式 */
.drum-machine-container {
max-width: 1200px;
margin: 0 auto;
background: rgba(30, 30, 30, 0.8);
backdrop-filter: blur(10px);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 头部样式 */
.drum-machine-header {
background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
padding: 25px 30px;
text-align: center;
position: relative;
overflow: hidden;
}

.drum-machine-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
background-size: cover;
}

.drum-machine-title {
font-size: 2.8rem;
font-weight: 700;
margin-bottom: 8px;
position: relative;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.drum-machine-subtitle {
font-size: 1.1rem;
opacity: 0.9;
font-weight: 400;
position: relative;
}

/* 鼓组音色选择区域 */
.drum-sounds-section {
padding: 25px 30px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}

.section-title::before {
content: '';
display: block;
width: 4px;
height: 20px;
background: var(--primary-color);
border-radius: 2px;
}

.drum-pads-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 15px;
}

.drum-pad {
background: linear-gradient(145deg, #252525, #1a1a1a);
border: none;
border-radius: var(--border-radius);
padding: 20px 15px;
color: var(--text-primary);
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
box-shadow: 5px 5px 10px #0d0d0d, -5px -5px 10px #2a2a2a;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}

.drum-pad::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
opacity: 0;
transition: var(--transition);
}

.drum-pad:hover {
transform: translateY(-5px);
box-shadow: 8px 8px 16px #0a0a0a, -8px -8px 16px #2e2e2e;
}

.drum-pad:hover::before {
opacity: 1;
}

.drum-pad.active {
background: linear-gradient(145deg, var(--primary-color), #e55a2b);
box-shadow: inset 5px 5px 10px #cc5526, inset -5px -5px 10px #ff7144;
}

.drum-pad.playing {
animation: pulse 0.3s ease;
box-shadow: var(--glow);
}

@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

.drum-icon {
font-size: 1.8rem;
margin-bottom: 5px;
}

/* 节奏编排器 */
.sequencer-section {
padding: 25px 30px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sequencer-container {
background: rgba(0, 0, 0, 0.3);
border-radius: var(--border-radius);
padding: 20px;
overflow-x: auto;
}

.sequencer-grid {
display: grid;
grid-template-columns: 120px repeat(16, 1fr);
gap: 8px;
min-width: 900px;
}

.step-label {
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
padding: 12px 8px;
font-size: 0.9rem;
}

.drum-row-label {
display: flex;
align-items: center;
justify-content: flex-start;
font-weight: 500;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
padding: 12px 15px;
font-size: 0.9rem;
gap: 8px;
}

.drum-row-label::before {
content: '';
display: block;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--primary-color);
}

.step-cell {
height: 50px;
background: rgba(255, 255, 255, 0.05);
border-radius: 8px;
cursor: pointer;
transition: var(--transition);
border: 2px solid transparent;
position: relative;
overflow: hidden;
}

.step-cell:hover {
background: rgba(255, 255, 255, 0.1);
transform: scale(1.05);
}

.step-cell.active {
background: var(--primary-color);
border-color: rgba(255, 255, 255, 0.3);
box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.step-cell.playing {
background: var(--secondary-color);
border-color: rgba(255, 255, 255, 0.5);
box-shadow: 0 0 15px rgba(30, 136, 229, 0.5);
}

.step-cell.active.playing {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
box-shadow: 0 0 20px rgba(255, 107, 53, 0.7);
}

/* 控制面板 */
.controls-section {
padding: 25px 30px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}

.control-btn {
padding: 14px 20px;
background: linear-gradient(145deg, #252525, #1a1a1a);
color: var(--text-primary);
border: none;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: var(--transition);
box-shadow: 5px 5px 10px #0d0d0d, -5px -5px 10px #2a2a2a;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}

.control-btn:hover {

Next
Pg.: 1 2 3


Back to home | File page

Subscribe | Register | Login | N