/* 默认样式 */
body {
    background-color:f5f5f5;
      font-family: "LXGW Neo XiHei";
    background-image: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06),
        rgba(0, 0, 0, 0.06) 1px,
        transparent 1px,
        transparent 25px
    ),
    repeating-linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.06),
        rgba(0, 0, 0, 0.06) 1px,
        transparent 1px,
        transparent 25px
    );
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    border-bottom: 1px solid #e7e7e7;
}

.logo {
    display: flex;
    align-items: center;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.header-right a {
    color: #007bff;
    text-decoration: none;
}

.header-right a:hover {
    text-decoration: underline;
}

.content {
    padding: 20px;
}

.search-bar {
    margin: 20px;
    width: 80%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.button-bar {
    margin: 10px;
}

.button-bar button {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #6c757d;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-bar button.active {
    background-color: #007bff;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 800px;
    margin: 20px 0;
}

.tool-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background-color: #e9ecef;
}

.tool-card img {
    max-width: 50px;
    margin-right: 15px;
}

.tool-card-content {
    text-align: left;
}

.tool-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.tool-card p {
    color: #666;
    font-size: 14px;
}

.footer {
    margin: 20px;
    font-size: 14px;
}

.fixed-size-image {
    width: 30px;
    height: 45px;
}

.footer {
    display: flex;
    align-items: center;
}

.footer a,
.footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 96px;
    height: 48px;
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.footer a:hover,
.footer div:hover {
    border-color: #007bff;
}

.footer img {
    width: 96px;
    height: auto;
}

/* 深色模式样式 */
body.dark-mode {
  font-family: "LXGW Neo XiHei";
    background-color: #202124; /* Google 风格的深灰 */
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 25px
    ),
    repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 25px
    );
    color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color:transparent;
    border-bottom: 1px solid #444;
}

body.dark-mode .logo {
    display: flex;
    align-items: center;
    color: #f8f9fa;
}

body.dark-mode .logo img {
    height: 40px;
    margin-right: 10px;
}

body.dark-mode .header-right a {
    color: #1e90ff;
    text-decoration: none;
}

body.dark-mode .header-right a:hover {
    text-decoration: underline;
}

body.dark-mode .content {
    padding: 20px;
}

body.dark-mode .search-bar {
    margin: 20px;
    width: 80%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

body.dark-mode .search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: #f8f9fa;
}

body.dark-mode .button-bar {
    margin: 10px;
}

body.dark-mode .button-bar button {
    padding: 8px 16px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.dark-mode .button-bar button.active {
    background-color: #1e90ff;
}

body.dark-mode .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 80%;
    max-width: 800px;
    margin: 20px 0;
}

body.dark-mode .tool-card {
    background-color: #282828;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

body.dark-mode .tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    background-color: #333;
}

body.dark-mode .tool-card img {
    max-width: 50px;
    margin-right: 15px;
}

body.dark-mode .tool-card-content {
    text-align: left;
}

body.dark-mode .tool-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #f8f9fa;
}

body.dark-mode .tool-card p {
    color: #aaa;
    font-size: 14px;
}

body.dark-mode .footer {
    margin: 20px;
    font-size: 14px;
    color: #aaa;
}

body.dark-mode .footer a,
.footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 96px;
    height: 48px;
    padding: 5px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #282828;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

body.dark-mode .footer a:hover,
body.dark-mode .footer div:hover {
    border-color: #1e90ff;
}

body.dark-mode .footer img {
    width: 96px;
    height: auto;
}

body.dark-mode .fixed-size-image {
    width: 30px;
    height: 45px;
}

/* 圆形切换按钮样式 */
.dark-mode-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--button-bg-color);
    color: var(--text-color);
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.dark-mode-toggle:hover {
    background-color: var(--button-hover-bg-color);
    transform: scale(1.1);
}

.dark-mode-toggle:active {
    background-color: var(--button-active-bg-color);
    transform: scale(0.95);
}

.dark-mode .footer img {
    filter: brightness(200%);
}

.dark-mode a {
    color: #f8f9fa;
}

.dark-mode .logo {
    filter: brightness(150%);
}

/* 时钟样式 */
#clock {
    color: #007bff;
    font-size: 16px;
    margin-right: 20px;
}

body.dark-mode #clock {
    color: #1e90ff;
}