/*
Theme Name: 我的空白主题
Theme URI: https://wgsnho.cn
Description: 完全自定义的空白主题，无任何预设样式
Author: wsh
Author URI: https://wgsnho.cn
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
title：wsh
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    background-color: #f0f7ff;
    background-image: 
        radial-gradient(#4096ff10 1px, transparent 1px),
        radial-gradient(#4096ff10 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    padding: clamp(15px, 4vw, 30px) clamp(10px, 3vw, 20px);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.title {
    text-align: center;
    color: #333;
    margin-bottom: clamp(20px, 5vw, 40px);
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 600;
    position: relative;
    padding-bottom: clamp(10px, 2.5vw, 15px);
    margin-top: clamp(10px, 3vw, 20px);
    width: 100%;
    word-wrap: break-word;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 15vw, 100px);
    height: 3px;
    background: #4096ff;
    border-radius: 3px;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(15px, 4vw, 25px);
    justify-items: center;
    max-width: 450px;
    margin: 0 auto clamp(30px, 8vw, 60px) auto;
    padding: 0 clamp(10px, 2.5vw, 20px);
    width: 100%;
    box-sizing: border-box;
}

.tool-card {
    width: clamp(120px, 40vw, 180px);
    height: clamp(120px, 40vw, 180px);
    background: white;
    border-radius: clamp(10px, 2.5vw, 15px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.5vw, 15px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(64, 150, 255, 0.15);
}

.tool-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(64, 150, 255, 0.1);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.tool-card:hover::before {
    left: 120%;
}

.tool-icon {
    font-size: clamp(26px, 6vw, 40px);
    color: #4096ff;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-name {
    font-size: clamp(14px, 3vw, 18px);
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-name {
    color: #4096ff;
}

.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: clamp(15px, 4vw, 30px);
    box-sizing: border-box;
}

.modal-container {
    background: white;
    border-radius: clamp(10px, 2.5vw, 15px);
    padding: clamp(20px, 5vw, 30px);
    width: min(90%, 500px);
    max-width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.modal-title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: clamp(15px, 4vw, 25px);
    padding-bottom: clamp(8px, 2vw, 10px);
    border-bottom: 1px solid #eee;
}

.modal-mask.fullscreen-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 99999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-container.fullscreen-container {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: #fff !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.modal-close {
    display: block;
    width: 100%;
    padding: clamp(10px, 2.5vw, 14px);
    border: none;
    border-radius: clamp(6px, 1.5vw, 8px);
    background: #f0f0f0;
    color: #666;
    font-size: clamp(14px, 3vw, 16px);
    cursor: pointer;
    transition: background 0.3s;
}

.modal-close:hover {
    background: #e5e5e5;
}

@media (max-width: 768px) {
    body {
        padding: clamp(15px, 5vw, 30px) clamp(10px, 3vw, 15px);
        background-size: 30px 30px;
    }
    
    .title {
        margin-bottom: clamp(25px, 6vw, 40px);
        font-size: clamp(20px, 6vw, 26px);
    }
    
    .tool-card {
        width: clamp(100px, 28vw, 130px);
        height: clamp(100px, 28vw, 130px);
        margin: clamp(8px, 2vw, 10px);
    }
    
    .tool-icon {
        font-size: clamp(24px, 6vw, 30px);
    }
    
    .tool-name {
        font-size: clamp(12px, 3vw, 16px);
    }
}

@media (max-width: 480px) {
    body {
        padding: clamp(10px, 4vw, 15px);
    }
    
    .tools-container {
        justify-content: space-around;
    }
    
    .tool-card {
        width: clamp(90px, 38vw, 110px);
        height: clamp(90px, 38vw, 110px);
        margin: clamp(5px, 2vw, 8px);
        border-radius: clamp(8px, 2vw, 12px);
    }
    
    .tool-icon {
        font-size: clamp(22px, 7vw, 26px);
    }
    
    .tool-name {
        font-size: clamp(11px, 3.5vw, 14px);
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    body {
        padding: clamp(10px, 3vh, 20px);
    }
    
    .title {
        margin-bottom: clamp(15px, 5vh, 25px);
        margin-top: 0;
    }
    
    .tool-card {
        width: clamp(90px, 20vw, 120px);
        height: clamp(90px, 20vw, 120px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    body {
        background: white;
        background-image: none;
    }
}
