/* css/icons.css - 自定义图标样式 */

/* 按钮图标 */
.download-icon {
    background: url('../images/icons/download.svg') no-repeat center;
    background-size: contain;
    width: 16px;
    height: 16px;
}

.apple-icon {
    background: url('../images/icons/apple.svg') no-repeat center;
    background-size: contain;
    width: 20px;
    height: 20px;
}

.android-icon {
    background: url('../images/icons/android.svg') no-repeat center;
    background-size: contain;
    width: 20px;
    height: 20px;
}

.windows-icon {
    background: url('../images/icons/windows.svg') no-repeat center;
    background-size: contain;
    width: 20px;
    height: 20px;
}

/* 下拉菜单图标 */
.dropdown-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('../images/icons/chevron-down.svg') no-repeat center;
    background-size: contain;
    margin-left: 4px;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f8fafc;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.breadcrumb li {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url('../images/icons/chevron-right.svg') no-repeat center;
    background-size: contain;
    margin-left: 10px;
    opacity: 0.5;
}

.breadcrumb a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3a86ff;
}

.breadcrumb span {
    color: #718096;
}

/* 页面标题区 */
.page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a202c;
    background: linear-gradient(90deg, #3a86ff, #2667d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* 通用卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #3a86ff;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 文本工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.bg-light {
    background-color: #f8fafc;
}

.bg-white {
    background-color: white;
}

/* 间距工具类 */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* 显示/隐藏工具类 */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.inline {
    display: inline !important;
}

.inline-block {
    display: inline-block !important;
}

.flex {
    display: flex !important;
}

/* 弹性盒子工具类 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* 动画工具类 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3a86ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1a202c;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    margin-bottom: 8px;
}

.tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a202c;
    margin-bottom: 2px;
}