* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
    display: flex;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid #e8eaed;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 2em;
}

.logo-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #5f6368;
}

.menu-title {
    padding: 0 20px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #9aa0a6;
    font-weight: 500;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #5f6368;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: #f1f3f4;
}

.menu-item.active {
    background: #e8f0fe;
    color: #1967d2;
    border-right: 3px solid #1967d2;
}

.menu-icon {
    font-size: 1.2em;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 40px;
}

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

/* 标题区域 */
header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #202124;
    font-weight: 500;
}

.subtitle {
    font-size: 0.95em;
    color: #5f6368;
    line-height: 1.6;
}

/* 添加账户区域 */
.add-account-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
}

.add-account-section h2 {
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #202124;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.input-field {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    color: #333;
    transition: all 0.3s ease;
}

.textarea-field {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
    font-size: 1em;
    color: #202124;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.textarea-field:focus {
    outline: none;
    border-color: #1967d2;
    box-shadow: 0 0 0 1px #1967d2;
}

.textarea-field::placeholder {
    color: #80868b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.input-field:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.input-field::placeholder {
    color: #999;
}

.btn-primary {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    background: #1967d2;
    color: white;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: #1557b0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background: #1557b0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* 提示信息 */
.tips {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #5f6368;
    border-left: 3px solid #1967d2;
}

.tips p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tips p:last-child {
    margin-bottom: 0;
}

.test-key {
    margin-top: 10px;
}

.test-key code {
    background: #e8f0fe;
    color: #1967d2;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-key code:hover {
    background: #d2e3fc;
}

.auto-refresh {
    font-size: 0.85em;
    opacity: 0.8;
}

/* 账户列表区域 */
.accounts-section {
    margin-bottom: 30px;
}

.accounts-section h2 {
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #202124;
    font-weight: 500;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #5f6368;
}

.empty-hint {
    font-size: 0.9em;
    color: #80868b;
}

/* 账户卡片 - 列表模式 */
.account-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 1.5fr) minmax(200px, 2fr) minmax(100px, 0.8fr) minmax(200px, 1fr);
    gap: 25px;
    align-items: center;
}

.account-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #dadce0;
}

.account-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #202124;
}

.account-secret {
    font-size: 0.85em;
    font-family: 'Courier New', monospace;
    color: #5f6368;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: all;
}

.account-secret:hover {
    color: #1967d2;
    text-decoration: underline;
}

.code-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code {
    font-size: 2em;
    font-weight: 600;
    letter-spacing: 6px;
    font-family: 'Courier New', monospace;
    color: #1967d2;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1967d2;
    transition: width 1s linear;
    border-radius: 3px;
}

.time-remaining {
    font-size: 0.9em;
    color: #5f6368;
    white-space: nowrap;
}

.account-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-action {
    padding: 10px 20px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #fff;
    color: #1967d2;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: #1967d2;
}

.delete-btn {
    background: #fff;
    border: 1px solid #dadce0;
    color: #d93025;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.delete-btn:hover {
    background: #fce8e6;
    border-color: #d93025;
}

/* 使用指南区域 */
.guide-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8eaed;
}

.guide-section h2 {
    font-size: 1.3em;
    color: #202124;
    font-weight: 500;
    margin-bottom: 20px;
}

.guide-content {
    color: #5f6368;
    line-height: 1.8;
}

.guide-content p {
    margin-bottom: 15px;
}

.guide-steps {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.guide-steps h3 {
    font-size: 1.1em;
    color: #202124;
    margin-bottom: 15px;
    font-weight: 500;
}

.guide-steps ol {
    margin-left: 20px;
}

.guide-steps li {
    margin-bottom: 8px;
}

.guide-notice {
    padding: 15px;
    background: #e8f0fe;
    border-left: 3px solid #1967d2;
    border-radius: 4px;
    color: #174ea6;
}


/* 响应式设计 */
@media (max-width: 1024px) {
    .account-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .account-header {
        border-bottom: 1px solid #e8eaed;
        padding-bottom: 15px;
    }
    
    .code-display {
        text-align: center;
    }
    
    .code {
        font-size: 2.5em;
        letter-spacing: 6px;
    }
    
    .account-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .time-remaining {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e8eaed;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-field {
        min-width: 100%;
    }
    
    .code {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .delete-btn {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card {
    animation: fadeIn 0.5s ease;
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #188038;
    color: white;
    padding: 16px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 2s ease;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}


