* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.input-section {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accounts-section {
    flex: 2;
    min-width: 300px;
}

h2 {
    color: #1a2980;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #26d0ce;
}

h3 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #26d0ce;
    outline: none;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-btn {
    background-color: #1a2980;
    color: white;
    flex: 1;
}

.add-btn:hover {
    background-color: #0d1a66;
    transform: translateY(-2px);
}

.clear-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
    flex: 1;
}

.clear-btn:hover {
    background-color: #e9ecef;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.in-use {
    background-color: #ff4757;
}

.available {
    background-color: #2ed573;
}

.stats {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2980;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.refresh-btn {
    background-color: #26d0ce;
    color: white;
    padding: 10px 20px;
}

.refresh-btn:hover {
    background-color: #1db9b7;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-box input {
    padding-right: 40px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.account-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: 3px solid #2ed573;
}

.account-card.in-use {
    border-color: #ff4757;
    background-color: #fff5f5;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.account-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2980;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.account-info {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 600;
    width: 80px;
    color: #555;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    word-break: break-all;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.show-password {
    background: none;
    border: none;
    color: #26d0ce;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 5px;
    margin-left: 5px;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.start-btn {
    background-color: #ff4757;
    color: white;
    flex: 1;
}

.start-btn:hover {
    background-color: #ff3742;
}

.pause-btn {
    background-color: #2ed573;
    color: white;
    flex: 1;
}

.pause-btn:hover {
    background-color: #25c965;
}

.delete-btn {
    background-color: #f8f9fa;
    color: #ff4757;
    border: 2px solid #ff4757;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.delete-btn:hover {
    background-color: #ff4757;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding-bottom: 20px;
}

/* ===== 使用者标签及按钮禁用状态 ===== */
.user-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #1e90ff;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-badge.available {
    background-color: #95a5a6;
}

.user-badge i {
    margin-right: 5px;
}

.start-btn:disabled,
.pause-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.start-btn:disabled:hover,
.pause-btn:disabled:hover {
    transform: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}