/* 配色變數 */
:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-purple: #BB91FF;
    --color-blue: #497BFF;
    --color-orange: #FFBD80;
}

/* 基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 標題區域 */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-black);
    opacity: 0.7;
}

/* 工具網格 */
main {
    flex: 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 工具卡片 */
.tool-card {
    background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tool-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tool-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    font-weight: 600;
}

.tool-card p {
    font-size: 1rem;
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-block;
    background-color: var(--color-orange);
    color: var(--color-black);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.card-link:hover {
    background-color: var(--color-white);
    transform: scale(1.05);
}

/* 頁尾 */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-black);
    opacity: 0.6;
    margin-top: auto;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .tool-card h2 {
        font-size: 1.5rem;
    }
}

