/*
Theme Name: Xuanwu Theme
Description: A modern WordPress theme for the Xuanwu app landing page featuring a clean design with red accent colors and mobile-responsive layout.
Author: Your Name
Version: 1.0
Text Domain: xuanwu-theme
*/

/* CSS Variables for consistent colors */
:root {
    --primary-red: #cc2936;
    --bg-color: #ffffff;
    --card-bg: rgba(251, 242, 243, 1); /* Light warm gray for cards */
    --text-dark: #333333;
    --text-light: #666666;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

html {
  font-size: 100%;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
	display: block;
    unicode-bidi: isolate;
	margin-top: 5em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    /*padding: 0 20px;*/
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1em;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #a8202b;
    color: white;
}

.btn-large {
    padding: 1em 3em;
    font-size: 24px;
	padding-top: 24px;
    padding-right: 40px;
    padding-left: 30px;
    padding-bottom: 24px;
    width: 280px;
    height: 82px;
    /*margin: 20px 0;*/
}

.btn-header {
	font-size: 18px;
}

.btn-phone-max {
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
	position: fixed;
	width: 100%;
    background: white;
    top: 0;
    height: 5em;
	max-width: 1440px;
	z-index: 99;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 0;
    gap: 0px;
	background: var(--Palettes-Primary-99, #FFFBFB);
	width: 100vw;
  	margin-left: calc(50% - 50vw);
}

.hero-content {
    flex: 1;
	max-width: 345px;
	display: flex;
    flex-direction: column; /* 子元素垂直排列 */
    align-items: center;    /* 水平置中 */
    justify-content: center;/* 垂直置中（需有高度） */
    gap: 8px;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 10px;
}

.hero-p1 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-div {
	display: inline-flex;
	position: relative;
	left: 50px;
}

.app-icon-large {
    width: 11.875rem;
    height: 11.875rem;
    border-radius: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.supported-platforms {
    color: var(--text-light);
    font-size: 20px;
    /*margin-top: 10px;*/
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-dl-svg {
	width: 32px;
	height: 32px;
}

.under-header {
	display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
	position: fixed;
    background: white;
    top: 0;
    height: 5em;
	z-index: 98;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
}

@media (max-width: 768px) {
	html {
  		font-size: 77%;
	}
	.features {
		grid-template-columns: 1fr;
	}
			
			/* Add this to reset the spans on small screens */
			.feature-card {
				grid-column: span 1 !important;
			}
			
			/* ... rest of your mobile CSS ... */
		}
		
        /* Updated Features Grid */
		.features {
			display: grid;
			/* Create a 3-column grid instead of 2 */
			grid-template-columns: repeat(3, 1fr);
			gap: 30px;
			padding: 30px 20px;
		}

		/* 1st card takes up 2 columns (twice the size) */
		.feature-card:nth-child(1) {
			grid-column: span 2;
		}

		/* 2nd card takes 1 column */
		.feature-card:nth-child(2) {
			grid-column: span 1;
		}

		/* Optional: Reverse the pattern for the bottom row for a balanced look */
		.feature-card:nth-child(3) {
			grid-column: span 1;
		}

		.feature-card:nth-child(4) {
			grid-column: span 2;
			padding: 0px;
		}
		.feature-card:nth-child(4) h3 {
			color: var(--primary-red);
			font-size: 1.5em;
			margin-bottom: 10px;
			padding: 40px;
			padding-bottom: 0px;
		}
		.feature-card:nth-child(4) p {
			color: var(--text-light);
			margin-bottom: 20px;
			padding: 40px;
			padding-top: 0px;
			padding-bottom: 0px;
		}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 40px;
	padding-bottom: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    color: var(--primary-red);
    font-size: 28px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
	font-size: 20px;
    margin-bottom: 20px;
}

.feature-img-wrapper {
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
}


/* Benefits Row (Icons) */
.benefits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.benefit-item img {
    height: 40px;
    margin: 0 auto 10px auto;
}

.benefit-item span {
    font-size: 20px;
    color: var(--text-light);
}

/* Bottom CTA Section */
.bottom-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: clamp(20px, 4vw, 70px);
	background: linear-gradient(172deg, #FEFBFB 43.65%, #FFEBED 141.61%);
	width: 100vw;
  	margin-left: calc(50% - 50vw);
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 44px;
    margin-bottom: 16px;
}

.cta-text p {
    color: var(--text-light);
    margin-bottom: 40px;
	font-size: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 16px;
}

/* WordPress specific styles */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.hide-phone {
	
}

.show-phone {
	display: none;
}

@media (max-width: 1000px) {
	.cta-text h2 {
		font-size: clamp(30px, 4vw, 40px);
		margin-bottom: 16px;
	}
	.cta-text p {
		font-size: clamp(16px, 2.5vw, 18px);
		color: var(--text-light);
		margin-bottom: 20px;
	}
	.cta-text a {
		font-size: clamp(18px, 2.5vw, 24px);
		width: 240px;
		height: 72px;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
	.hero h1 {
		font-size: 42px;
		margin-bottom: 10px;
	}
	.hero-p1 {
		font-size: 20px;
		color: var(--text-light);
		margin-bottom: 0px;
	}
	.supported-platforms {
		color: var(--text-light);
		font-size: 16px;
		/*margin-top: 10px;*/
	}
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .features {
        grid-template-columns: 1fr;
		gap: 16px;
    }
    .bottom-cta {
        flex-direction: column;
        text-align: center;
		padding: 40px 20px;
    }
    .cta-left {
        flex-direction: column;
        text-align: center;
    }
    .benefits {
        justify-content: center;
		gap: 1px;
    }
    .benefit-item {
        flex: 0 0 30%;
        margin-bottom: 20px;
    }
	.btn-phone-max {
		width: 90%;
	}
}

@media (max-width: 430px) {
	
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
		width: auto;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .features {
        grid-template-columns: 1fr;
		gap: 16px;
		padding: 20px 24px;
    }
    .bottom-cta {
        flex-direction: column;
        text-align: center;
		padding: 40px 20px;
		width: auto;
    }
    .cta-left {
        flex-direction: column;
        text-align: center;
    }
    .benefits {
        justify-content: center;
		gap: 1px;
		padding: 20px 0;
    }
    .benefit-item {
        flex: 0 0 30%;
        margin-bottom: 20px;
    }
	.hide-phone {
		display: none !important;
	}
	.show-phone {
		display: block;
	}
	.btn-phone-max {
		width: 90%;
	}
	.cta-text h2 {
		font-size: 28px;
		margin-bottom: 10px;
	}

	.cta-text p {
		font-size: 16px;
		color: var(--text-light);
		margin-bottom: 20px;
	}
	.btn-large {
		padding: 1em 3em;
		font-size: 16px;
		height: 54px;
		/*margin: 20px 0;*/
	}
	.feature-card h3 {
		color: var(--primary-red);
		font-size: 20px;
		margin-bottom: 10px;
	}
	.feature-card p {
		color: var(--text-light);
		font-size: 16px;
		margin-bottom: 20px;
	}
	.benefit-item span {
		font-size: 16px;
		color: var(--text-light);
	}
	.btn-header {
		font-size: 14px;
	}
	.hero-dl-svg {
		width: 22px;
		height: 22px;
	}
	.feature-card {
		background-color: var(--card-bg);
		border-radius: var(--border-radius-lg);
		padding: 20px;
		padding-bottom: 0px;
		overflow: hidden;
		display: flex;
		flex-direction: column;
	}
	.hero-div {
		display: inline-flex;
		position: relative;
		left: 0px;
	}
	footer {
		text-align: center;
		padding: 30px 0;
		color: #999;
		font-size: 12px;
	}
}