/* FBA费用计算器 - 样式文件 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 主容器 */
.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #34495e;
    font-size: 1.5em;
    margin: 30px 0 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 20px 0 15px;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    color: #5a6c7d;
}

/* 版本信息 */
.version-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
    text-align: left;
}

.version-info p {
    font-size: 1.1em;
    margin: 8px 0;
}

.version-info strong {
    color: #667eea;
}

/* 服务器信息 */
.server-info {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #5b86e5;
    text-align: left;
}

.server-info p {
    font-size: 1.1em;
    margin: 8px 0;
    word-break: break-all;
}

.server-info strong {
    color: #5b86e5;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* 操作按钮组 */
.action-buttons {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* 功能卡片 */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.feature-card p {
    color: #6c757d;
    font-size: 1em;
}

/* 更新日志 */
.update-log {
    text-align: left;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    border-left: 4px solid #667eea;
}

.update-log ul {
    list-style: none;
    padding-left: 0;
}

.update-log li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 20px;
    transition: all 0.2s ease;
}

.update-log li:hover {
    padding-left: 25px;
    color: #667eea;
}

.update-log li:before {
    content: "✓";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.update-log li:last-child {
    border-bottom: none;
}

/* 版本历史页面样式 */
.version-history {
    margin: 30px 0;
}

.version-item {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.version-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.version-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    color: white;
    font-size: 1.3em;
}

.version-date {
    font-size: 0.9em;
    opacity: 0.9;
}

.version-details {
    padding: 20px;
    text-align: left;
}

.version-details ul {
    padding-left: 20px;
    margin: 15px 0;
}

.version-details li {
    margin: 8px 0;
    color: #6c757d;
}

.version-details .btn {
    margin-top: 15px;
}

/* 通知样式 */
#notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 页脚 */
footer {
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 0.9em;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .version-header {
        flex-direction: column;
        text-align: center;
    }
    
    .version-date {
        margin-top: 5px;
    }
    
    .server-info,
    .version-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .update-log,
    .version-details {
        padding: 15px;
    }
}