@import "css/global.css";

/*Header*/
#header {
    background: url("../../images/header-background.jpg") no-repeat fixed center;
    min-width: 100%;
    min-height: 400px;
    height: 30vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#header .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 150px;
    width: 100%;
}

#header .content .info {
    display: flex;
    flex-direction: column;
}

#header .content .info .minecraft-server-ip {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .info .title span {
    color: var(--main-color);
}

#header .content .description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

/*Contacts*/
#contacts .content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#contacts .content .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#contacts .content .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#contacts .content .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#contacts .content .columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 100px;
}

#contacts .content .columns .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 2;
}

#contacts .content .columns .contact-form .row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

#contacts .content .columns .contact-form .row label {
    color: var(--description-color);
    font-size: 15px;
    line-height: 1.6;
}

.row input {
    background: var(--stats-background);
    border: none;
    padding: 20px 25px;
    font-size: 17px;
    color: var(--white-color);
    outline: none;
    border-radius: 5px;
    transition: 0.2s;
}

.row textarea {
    background: var(--stats-background);
    padding: 15px 20px;
    font-size: 15px;
    outline: none;
    line-height: 1.6;
    border-radius: 5px;
    color: var(--white-color);
    font-family: var(--main-font);
    border: none;
    transition: 0.2s;
    resize: vertical;
    overflow-y: auto;
    min-height: 200px;
    max-height: 350px;
    min-width: 100px;
    justify-content: center;
}

.row input:focus, .row textarea:focus, .row input:hover, .row textarea:hover {
    background: var(--how-to-join-button-background);
}

#contacts .content .columns .contact-form .form-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}
#contacts .content .columns .contact-form .form-footer button {
    background: var(--copy-ip-button-background);
    border: 2px solid var(--main-color);
    border-radius: 3px;
    padding: 10px 30px;
    color: var(--white-color);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    gap: 10px;
}

#contacts .content .columns .contact-form .form-footer button:hover {
    opacity: 0.8;
}

#contacts .content .columns .contact-form .form-footer .alert {
    color: var(--description-color);
    font-size: 15px;
}


#contacts .content .columns .url {
    text-decoration: none;
    height: fit-content;
}

#contacts .content .columns .url:hover .link .link-description .icon {
    transform: scale(1.1);
}

#contacts .content .columns .link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--stats-background);
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
}

#contacts .content .columns .link h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
}

#contacts .content .columns .link .link-description {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 50px;
}

#contacts .content .columns .link .link-description .description {
    color: var(--description-color);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

#contacts .content .columns .link .link-description .description .qq-group-number {
    color: var(--green-color);
}

#contacts .content .columns .link .link-description .icon {
    border-radius: 5px;
    background: var(--stat-icon-background-2);
    padding: 10px;
    transition: 0.2s ease-in-out;
}

#contacts .content .columns .link .link-description .icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5px;
}

/*Footer*/
#footer {
    background: var(--stats-background);
}

/*Responsive*/
/*Header*/
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        flex-direction: column;
        padding: 120px 90px;
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 150px 30px;
    }

    #header .content .info .minecraft-server-ip {
        font-size: 15px;
    }

    #header .content .info .title {
        font-size: 40px;
    }

    #header .content .info .description {
        font-size: 16px;
    }
}

@media screen and (max-width: 530px) {
    #header .content {
        justify-content: start;
        align-items: start;
    }

    #header .content .info .title {
        font-size: 30px;
    }
}

/*Contacts*/
@media screen and (max-width: 1148px) {
    #contacts .content .columns {
        flex-direction: column;
    }

    #contacts .content .columns .url .link {
        max-width: 100%;
    }

    #contacts .content .columns .link .link-description {
        justify-content: space-between;
    }
}

@media screen and (max-width: 540px) {
    #contacts .content .columns .contact-form .form-footer {
        flex-direction: column;
        align-items: start;
        width: 100%;
    }

    #contacts .content .columns .contact-form .form-footer button {
        width: 100%;
        justify-content: center;
        align-self: flex-start;
    }
}

/* 加载动画样式 */
.loading-spinner {
  display: none;
  text-align: center;
  margin-top: 15px;
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--main-color);
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: var(--main-color);
  font-size: 14px;
  margin: 0;
}

/* 全屏加载动画样式 */
.fullscreen-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loader-content {
  text-align: center;
  animation: fadeIn 0.5s;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top: 5px solid var(--main-color);
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fullscreen-loader p {
  color: var(--white-color);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}